diff Makefile @ 0:68a98d68d62a

commit
author yutaka@localhost.localdomain
date Sun, 28 Mar 2010 19:47:00 +0900
parents
children dcd83cefb980
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Sun Mar 28 19:47:00 2010 +0900
@@ -0,0 +1,30 @@
+PPETARGET = main
+SPETARGET = spe-main
+
+.SUFFIXES:.cc .o .h
+
+PPECC  = g++
+PPELIB = -lspe2
+SPECC  = spu-g++
+SPELIB =
+
+INC = -I include
+
+PPESRC = $(shell ls ppe/*.cc)
+SPESRC = $(shell ls spe/*.cc)
+
+#PPEOBJ = $(PPESRC:.cc=.o)
+#SPEOBJ = $(SPESRC:.cc=.o)
+
+all: $(PPETARGET) $(SPETARGET)
+
+$(PPETARGET): $(PPEOBJ)
+	$(PPECC) $(PPELIB) $(INC) $(PPESRC) -o $@
+
+$(SPETARGET): $(SPEOBJ)
+	$(SPECC) $(INC) $(SPESRC) -o $@
+
+clean:
+	rm -f $(PPETARGET) $(SPETARGET)
+	rm -f ppe/*.o spe/*.o
+	rm -f ppe/*~ spe/*~ ppe/*.~ spe/*.~ 
\ No newline at end of file