Mercurial > hg > Game > Cerium
annotate example/HelloWorld/Makefile.cell @ 439:13c6740ab15f draft
still overlay...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 25 Sep 2009 00:46:50 +0900 |
parents | 0c9c9906d777 |
children | 30dd8a3deb4a |
rev | line source |
---|---|
109 | 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 | |
115 | 14 LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections |
109 | 15 |
16 .SUFFIXES: .cc .o | |
17 | |
18 .cc.o: | |
19 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
20 | |
21 all: $(TARGET) speobject | |
22 | |
23 $(TARGET): $(OBJS) $(TASK_OBJS) | |
24 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
25 | |
26 speobject: | |
27 cd spe; $(MAKE) | |
28 | |
253
0c9c9906d777
usr_help_str is nessesary for example
tkaito@localhost.localdomain
parents:
115
diff
changeset
|
29 run: |
0c9c9906d777
usr_help_str is nessesary for example
tkaito@localhost.localdomain
parents:
115
diff
changeset
|
30 ./$(TARGET) -cpu 6 |
0c9c9906d777
usr_help_str is nessesary for example
tkaito@localhost.localdomain
parents:
115
diff
changeset
|
31 |
109 | 32 link: |
33 $(CC) -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 |