Mercurial > hg > Members > kono > Cerium
comparison example/Pipeline/Makefile.cell @ 963:86e50572561c
SgChange
author | tkaito |
---|---|
date | Thu, 05 Aug 2010 22:47:38 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
962:9f9b2bbc9a10 | 963:86e50572561c |
---|---|
1 include ./Makefile.def | |
2 | |
3 ABIBIT = 32 | |
4 | |
5 SRCS_TMP = $(wildcard *.cc) | |
6 SRCS_EXCLUDE = # 除外するファイルを書く | |
7 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
8 OBJS = $(SRCS:.cc=.o) | |
9 | |
10 TASK_DIR = ppe | |
11 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
12 TASK_SRCS_EXCLUDE = | |
13 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
14 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
15 | |
16 CFLAGS += -m$(ABIBIT) | |
17 LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections | |
18 | |
19 .SUFFIXES: .cc .o | |
20 | |
21 .cc.o: | |
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
23 | |
24 all: $(TARGET) speobject | |
25 | |
26 $(TARGET): $(OBJS) $(TASK_OBJS) | |
27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
28 | |
29 speobject: | |
30 cd spe; $(MAKE) ABIBIT=$(ABIBIT) | |
31 | |
32 link: | |
33 $(CC) -m$(ABIBIT) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
34 | |
35 debug: $(TARGET) | |
36 sudo ppu-gdb ./$(TARGET) | |
37 | |
38 clean: | |
39 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
40 rm -f *~ \#* | |
41 rm -f ppe/*~ ppe/\#* | |
42 cd spe; $(MAKE) clean |