What's the possible reason that makefile would skip making one executable? -
i try execute exact same compilation command skipped file , being correctly compiled. when put in make file skipped. every other file generated.
without seeing makefile
(which haven't provided), can guess (though i'd think it's educated guess).
since make
works checking file timestamps see if need rebuilding, that's 1 thing at. if timestamp of target later of dependencies, target won't built.
the other ensure top level rule has dependency on you're trying build, somewhere in hierarchy. mean ruleset:
all: xyzzy xyzzy: touch xyzzy plugh: touch plugh
with command make all
never touch plugh
because it's not in dependency hierarchy off all
.
and make
provides command line options debugging (like -d
flag in gnu make) tell why it's making decisions it's making. if want understand what's happening, should use them,a s makes easier debug makefile
.
Comments
Post a Comment