Author: sebor
Date: Sat Nov 19 16:44:40 2005
New Revision: 345698
URL: http://svn.apache.org/viewcvs?rev=345698&view=rev
Log:
2005-11-19 Martin Sebor <[EMAIL PROTECTED]>
* makefile.rules: Disabled implicit rules for .c and .cc files in order
to prevent such files under the include/ directory (e.g., istream.c and
istream) form being compiled due to being listed as dependencies of .cpp
files.
Modified:
incubator/stdcxx/trunk/etc/config/makefile.rules
Modified: incubator/stdcxx/trunk/etc/config/makefile.rules
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/makefile.rules?rev=345698&r1=345697&r2=345698&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/makefile.rules (original)
+++ incubator/stdcxx/trunk/etc/config/makefile.rules Sat Nov 19 16:44:40 2005
@@ -204,6 +204,17 @@
endif # neq ($(DEPENDFLAGS),)
+# disable implicit rules from trying to compile .c and .cc files
+# under the include/ directory (e.g., istream.c to istream) due
+# to being listed as dependencies of .cpp files
+%: %.c
+
+%.o: %.c
+
+%: %.cc
+
+%.o: %.cc
+
# force the regeneration of all dependencies by removing them
dependclean:
rm -f $(DEPENDDIR)/*.d;
@@ -224,4 +235,5 @@
run run_all runall
# override the default set of suffixes with our own
-.SUFFIXES: .a .cpp .d .o .$(AS_EXT)
+.SUFFIXES: .a .c .cc .cpp .d .o .$(AS_EXT)
+