[En-Nut-Discussion] Hoe to add dependency on included files?

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Mon Dec 12 13:55:06 CET 2011


Hello,

working with the devnit_m3n tree, please forgive if already fixed in
trunk...

../nut/os/nutinit.c

includes e.g.
#elif defined(__arm__) && defined(__CORTEX__)
#include "../arch/cm3/os/nutinit_cm3.c"

Changing "../arch/cm3/os/nutinit_cm3.c" and running "make" in the build tree
doesn't rebuild nutinit.o. I workaround by deleting os/nutinit.o and
rebuilding.

Is there an easy way to add the included files to the dependancy? Or, as
there is no code in nut/os/nutinit.c, but only includes, could we drop this
wrapper file and use the included files direct?

Thanks

-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list