Under Table below you can find a listing of a very minimal NEMO program, ``hello.c'':
and a corresponding example Makefile to install by user and nemo could look like the one shown under Table
Note that for this simple example the Makefile actually larger than the source code, hello.c, itself. Fortunately not every programs needs their own Makefile, in fact most programs can be compiled with a default rule, via the bake script. This generic makefile is used by the bake command, and is normally installed in $NEMOLIB/Makefile, but check out your bake command or alias.
Warning: The structure of this so-called 'standard' NEMO Makefiles is still under debate, and will probably drastically change in some future release. Best is to check some local Makefiles. A possible candidate is the GNU make facility.