On Tue, 2012-11-13 at 18:01 +0200, adrian ilarion Ciobanu wrote: > %.o: %.c > $(CC) $(INC) $(CFLAGS) -DSFHASH -o $(OBJDIR)/$@ -c $<
This is an invalid rule. It violates one of my "rules of makefiles": http://make.mad-scientist.net/rules.html > using it for the first time: make does not rewrite gcc's input file paths: > using it second time in a row, it does: Classic. Don't feel bad, that's what EVERYONE does at first. That may well point out that VPATH is mis-designed (or that some other facility is needed). However, that's another conversation. This might help: http://make.mad-scientist.net/vpath.html Cheers! _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
