Mercurial > hg > Game > Cerium
annotate example/MemList/Makefile.cell @ 839:1001c4bea1a0 draft
if unnecessary
author | Yutaka_Kinjyo |
---|---|
date | Fri, 28 May 2010 03:24:52 +0900 |
parents | 839e34d0cc3c |
children | a0ea7d9b6faf |
rev | line source |
---|---|
364 | 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 LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections | |
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 | |
29 run: | |
30 ./$(TARGET) -cpu 6 | |
31 | |
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 *~ \#* | |
467
839e34d0cc3c
fix all examples. test_render is not working now.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
373
diff
changeset
|
41 cd spe; $(MAKE) clean |