Mercurial > hg > Game > Cerium
annotate example/many_task/Makefile.gpu @ 1518:940ffd32e5bd draft
add many_task/Makefile.gpu
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 10 Nov 2012 11:15:00 +0900 |
parents | |
children | 9a5f87f4b60f |
rev | line source |
---|---|
1518
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
1 include ./Makefile.def |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
2 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
3 SRCS_TMP = $(wildcard *.cc) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
4 SRCS_EXCLUDE = # 除外するファイルを書く |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
6 OBJS = $(SRCS:.cc=.o) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
7 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 TASK_DIR = ppe |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 TASK_SRCS_EXCLUDE = sort_test.cc |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 TASK_OBJS = $(TASK_SRCS:.cc=.o) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
13 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 LIBS += -lGpuManager -framework opencl `sdl-config --libs` |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 .SUFFIXES: .cc .o |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
17 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
18 .cc.o: |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
21 all: $(TARGET) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
22 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
23 $(TARGET): $(OBJS) $(TASK_OBJS) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
24 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
25 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
26 link: |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
27 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
28 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
29 |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
30 clean: |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
31 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
32 rm -f *~ \#* |
940ffd32e5bd
add many_task/Makefile.gpu
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
33 rm -f ppe/*~ ppe/\#* |