dslinux/user/rtest Makefile rtest.c rtest.cxx
amadeus
dslinux_amadeus at user.in-berlin.de
Thu Oct 12 23:29:16 CEST 2006
Update of /cvsroot/dslinux/dslinux/user/rtest
In directory antilope:/tmp/cvs-serv24669/user/rtest
Modified Files:
Makefile
Added Files:
rtest.cxx
Removed Files:
rtest.c
Log Message:
c++ test
Index: Makefile
===================================================================
RCS file: /cvsroot/dslinux/dslinux/user/rtest/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile 19 Aug 2006 20:14:07 -0000 1.1
+++ Makefile 12 Oct 2006 21:29:13 -0000 1.2
@@ -10,6 +10,9 @@
# includes
INCS =
+CXXFLAGS += -Wno-deprecated
+CXX := arm-linux-elf-g++
+
# libraries to link with
# LDLIBS +=
@@ -21,9 +24,12 @@
# enters this directory and wants to build the program.
all: $(EXEC)
-# This is the rule that build the mad player.
+%.o: %.cxx
+ $(CXX) -c $(CXXFLAGS) -o $@ $<
+
+# This is the rule that build the executable.
$(EXEC): $(OBJS)
- $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
+ $(CXX) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS)
# The romfs target is also phony. It is used to copy your app
# into the DSLinux filesystem image.
--- NEW FILE: rtest.cxx ---
#include <iostream.h>
int main()
{
// Dies ist das Hello-World-Programm
cout<<"Hello, world!"<<endl;
return 0;
};
--- rtest.c DELETED ---
More information about the dslinux-commit
mailing list