Mercurial > hg > Applications > Grep
comparison regexParser/cerium/Makefile.gpu @ 266:e51cac73e42a
CeriumGrep start
author | masa |
---|---|
date | Thu, 28 Jan 2016 21:14:34 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
265:1e2c12ec25b7 | 266:e51cac73e42a |
---|---|
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_DIR1 = ppe | |
9 TASK_DIR2 = gpu | |
10 TASK_SRCS_TMP = $(wildcard $(TASK_DIR2)/*.cc $(TASK_DIR1)/*.cc) | |
11 TASK_SRCS_EXCLUDE = # Exec.cc | |
12 TASK_SRCS = $(filter-out $(TASK_DIR1)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
13 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
14 | |
15 CC += $(ABI) | |
16 CFLAGS += -D__CERIUM_GPU__ | |
17 | |
18 INCLUDE = -I${CERIUM}/include/TaskManager -I. -I.. | |
19 LIBS = -L${CERIUM}/TaskManager -DUSE_SIMPLE_TASK -lGpuManager -framework opencl `sdl-config --libs` | |
20 | |
21 .SUFFIXES: .cc .o | |
22 | |
23 .cc.o: | |
24 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
25 | |
26 all: $(TARGET) | |
27 | |
28 $(TARGET): $(OBJS) $(TASK_OBJS) | |
29 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
30 | |
31 link: | |
32 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
33 | |
34 debug: $(TARGET) | |
35 sudo lldb -- ./$(TARGET) -file c.txt -gpu -g | |
36 | |
37 test : | |
38 ./$(TARGET) -file c.txt -gpu -g | |
39 | |
40 clean: | |
41 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
42 rm -f *~ \#* | |
43 rm -f ppe/*~ ppe/\#* | |
44 rm -f spe/*~ spe/\#* | |
45 rm -f gpu/*~ gpu/\#* |