cvsuser 03/10/14 04:08:21
Modified: config/gen/makefiles root.in
Log:
Remove the pattern rules (which are not present in BSD make) and add
the directory of the target to the list of includes via -I$(@D)
It was tested on MS nmake, BSD make, gmake.
Courtesy of "Nick Kostirya" <[EMAIL PROTECTED]>
Revision Changes Path
1.146 +1 -3 parrot/config/gen/makefiles/root.in
Index: root.in
===================================================================
RCS file: /cvs/public/parrot/config/gen/makefiles/root.in,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -w -r1.145 -r1.146
--- root.in 13 Oct 2003 13:36:08 -0000 1.145
+++ root.in 14 Oct 2003 11:08:21 -0000 1.146
@@ -240,7 +240,7 @@
MAKE_C = ${make_c}
.c$(O) :
- @$(PERL) tools/dev/cc_flags.pl ./CFLAGS $(CC) $(CFLAGS) ${cc_o_out}$@ -c $<
+ @$(PERL) tools/dev/cc_flags.pl ./CFLAGS $(CC) $(CFLAGS) -I$(@D) ${cc_o_out}$@
-c $<
all : flags_dummy $(TEST_PROG) docs
@@ -608,8 +608,6 @@
$(IMCC_O_FILES) : $(IMCC_H_FILES) $(ALL_H_FILES)
-$(IMCC_DIR)/%${o} : $(IMCC_DIR)/%.c
- $(PERL) tools/dev/cc_flags.pl ./CFLAGS $(CC) -I$(IMCC_DIR) $(CFLAGS)
${cc_o_out}$@ -c $<
################ docs, test and maintainer targets