next up previous contents index
Next: 6.4 Extending NEMO environment Up: 6.3 Building NEMO programs Previous: 6.3.2 Makefiles   Contents   Index

6.3.3 An example NEMO program

Under Table [*] below you can find a listing of a very minimal NEMO program, ``hello.c'':


Table: $NEMO/src/tutor/hello/hello.c
\begin{table}\small\verbatimlisting{hello.src}
\normalsize\end{table}


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.


Table: Sample makefile - cf. $NEMOLIB/Makefile
\begin{table}\footnotesize\verbatimlisting{makefile.src}
\normalsize\end{table}


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.


next up previous contents index
Next: 6.4 Extending NEMO environment Up: 6.3 Building NEMO programs Previous: 6.3.2 Makefiles   Contents   Index
(c) Peter Teuben