Mercurial > hg > Game > Cerium
annotate example/fft/Makefile.gpu @ 1786:ba6ffc679a8f draft
minor fix
author | Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 30 Nov 2013 21:06:44 +0900 |
parents | 2e8931baef7f |
children | 9de57d13a386 |
rev | line source |
---|---|
1551 | 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 | |
1702
f52904f8f03e
fix example.run ANY_ANY
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
1551
diff
changeset
|
8 GPU_TASK_DIR = gpu |
1730 | 9 #TASK_DIR = ppe |
10 #TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
1551 | 11 TASK_SRCS_EXCLUDE = |
1730 | 12 TASK_SRCS = $(filter-out $(GPU_TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) $(wildcard $(GPU_TASK_DIR)/*.cc) |
1551 | 13 TASK_OBJS = $(TASK_SRCS:.cc=.o) |
14 | |
15 CC += $(ABI) | |
16 CFLAGS += -D__CERIUM_GPU__ | |
17 | |
18 LIBS = -L${CERIUM}/TaskManager -DUSE_SIMPLE_TASK -lGpuManager -framework opencl `sdl-config --libs` | |
19 | |
20 .SUFFIXES: .cc .o | |
21 | |
22 .cc.o: | |
23 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
24 | |
25 all: $(TARGET) | |
26 | |
27 $(TARGET): $(OBJS) $(TASK_OBJS) | |
28 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
29 | |
30 link: | |
31 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
32 | |
33 debug: $(TARGET) | |
34 sudo gdb ./$(TARGET) | |
35 | |
36 clean: | |
37 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
38 rm -f *~ \#* | |
39 rm -f ppe/*~ ppe/\#* | |
40 rm -f spe/*~ spe/\#* | |
41 rm -f gpu/*~ gpu/\#* |