Mercurial > hg > Members > yutaka > manager
comparison Makefile @ 0:68a98d68d62a
commit
author | yutaka@localhost.localdomain |
---|---|
date | Sun, 28 Mar 2010 19:47:00 +0900 |
parents | |
children | dcd83cefb980 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:68a98d68d62a |
---|---|
1 PPETARGET = main | |
2 SPETARGET = spe-main | |
3 | |
4 .SUFFIXES:.cc .o .h | |
5 | |
6 PPECC = g++ | |
7 PPELIB = -lspe2 | |
8 SPECC = spu-g++ | |
9 SPELIB = | |
10 | |
11 INC = -I include | |
12 | |
13 PPESRC = $(shell ls ppe/*.cc) | |
14 SPESRC = $(shell ls spe/*.cc) | |
15 | |
16 #PPEOBJ = $(PPESRC:.cc=.o) | |
17 #SPEOBJ = $(SPESRC:.cc=.o) | |
18 | |
19 all: $(PPETARGET) $(SPETARGET) | |
20 | |
21 $(PPETARGET): $(PPEOBJ) | |
22 $(PPECC) $(PPELIB) $(INC) $(PPESRC) -o $@ | |
23 | |
24 $(SPETARGET): $(SPEOBJ) | |
25 $(SPECC) $(INC) $(SPESRC) -o $@ | |
26 | |
27 clean: | |
28 rm -f $(PPETARGET) $(SPETARGET) | |
29 rm -f ppe/*.o spe/*.o | |
30 rm -f ppe/*~ spe/*~ ppe/*.~ spe/*.~ |