Mercurial > hg > Game > Cerium
comparison example/bm_search/Makefile.cell @ 1976:a8f4227d6a21 draft
rename regex_mas to bm_search
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 03 Mar 2014 19:12:02 +0900 |
parents | example/regex_mas/Makefile.cell@0f94d9d580f9 |
children |
comparison
equal
deleted
inserted
replaced
1975:4cf85b48ab9e | 1976:a8f4227d6a21 |
---|---|
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 link: | |
30 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
31 | |
32 debug: $(TARGET) | |
33 sudo ppu-gdb ./$(TARGET) | |
34 | |
35 clean: | |
36 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
37 rm -f *~ \#* | |
38 rm -f ppe/*~ ppe/\#* | |
39 cd spe; $(MAKE) clean |