ChorusOS 4.0 Production Guide

Rebuilding a Makefile

You can have applications with multiple .mf files in your directory, particularly when using the mkmerge command to integrate specific or optional code. When a .mf file is created or changed, you must recreate the Makefile. To check this, create an empty directory, and put a .mf file, a.mf, in it. Type either make Makefiles or make mkmake and you will recreate the Makefile.

>> In <work_dir>/build-IOM/src/os/sys/sys/lib/gen makemk
<< In <work_dir>/build-IOM/src/os/iom/sys/sys/lib/gen makemk done

If the Makefile changes, the compilation options may have changed. Therefore all object files must be recompiled. When mkmake regenerates a Makefile, if the Makefile has changed, mkmake removes any object files which have been produced. Use the make command now to recompile the source code.