This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

allow for .cpp suffixes


This updates the makefile generator so that it can cope with C++ files
that use a .cpp suffix instead of .cxx. It can be useful when turning
existing code into an eCos package.

Bart

2005-07-09  Bart Veer  <bartv@ecoscentric.com>

	* common/common/build.cxx: add support for C++ files that use a
	.cpp suffix

Index: common/common/build.cxx
===================================================================
RCS file: /cvs/ecos/ecos/host/tools/configtool/common/common/build.cxx,v
retrieving revision 1.17
diff -u -r1.17 build.cxx
--- common/common/build.cxx	13 Aug 2003 08:31:58 -0000	1.17
+++ common/common/build.cxx	9 Jul 2005 16:11:54 -0000
@@ -450,6 +450,7 @@
 		}
 
 		fprintf (stream, "\nOBJECTS := $(COMPILE:.cxx=.o.d)\n");
+		fprintf (stream, "OBJECTS := $(OBJECTS:.cpp=.o.d)\n");
 		fprintf (stream, "OBJECTS := $(OBJECTS:.c=.o.d)\n");
 		fprintf (stream, "OBJECTS := $(OBJECTS:.S=.o.d)\n\n");
 		fprintf (stream, "$(LIBRARY).stamp: $(OBJECTS)\n");




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]