comparison example/share_task/Makefile.ps3 @ 109:5c194c71eca8

Cerium cvs version
author gongo@gendarme.local
date Wed, 12 Nov 2008 17:39:33 +0900
parents
children 44e3bf914155
comparison
equal deleted inserted replaced
108:6f3b3dd3c095 109:5c194c71eca8
1 include ./Makefile.def
2
3 SRCS_TMP = $(wildcard *.cc)
4 SRCS_EXCLUDE = # 除外するファイルを書く
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
6 OBJS = $(SRCS:.cc=.o)
7
8 TASK_DIR = ppe
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
10 TASK_SRCS_EXCLUDE =
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
13
14 CC = g++
15 CFLAGS = -g -Wall# -O9 #-DDEBUG
16
17 INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
18 LIBS = -L${CERIUM}/TaskManager -lCellManager -lspe2 -lpthread
19
20 .SUFFIXES: .cc .o
21
22 .cc.o:
23 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
24
25 all: $(TARGET) speobject
26
27 $(TARGET): $(OBJS) $(TASK_OBJS)
28 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
29
30 speobject:
31 cd spe; $(MAKE)
32
33 link:
34 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
35
36 debug: $(TARGET)
37 sudo ppu-gdb ./$(TARGET)
38
39 clean:
40 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
41 rm -f *~ \#*
42 rm -f ppe/*~ ppe/\#*
43 cd spe; $(MAKE) clean