Hi,
in DCE, you can use the directory "myscript". Just put your source code there.
Another option is to integrate it in Waf. In this case you need to update the file
wscript, adding few lines. This may give you more flexibility. For example, the following lines in wscript add the reference to
dce-wifi-ccnx example:
module.add_example(needed = ['core', 'internet', 'dce', 'point-to-point', 'netanim', 'mobility', 'wifi', 'network'],
target='bin/dce-wifi-ccnx',
source=['example/ccnx/dce-wifi-ccnx.cc'])
In your case, it could be:
module.add_example(needed = ['core', 'internet', 'dce', 'point-to-point', 'netanim', 'mobility', 'wifi', 'network'],
target='bin/wifi-simple-adhoc-grid',
source=['example/wifi-simple-adhoc-grid.cc'])