This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
allow for .cpp suffixes
- From: Bart Veer <bartv at ecoscentric dot com>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Sat, 9 Jul 2005 17:14:10 +0100 (BST)
- Subject: 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");