Mercurial > hg > Game > Cerium
annotate example/get_segment/Makefile.macosx @ 2069:26aa08c9a1de draft default tip
cuda example fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 12 Feb 2017 10:04:55 +0900 |
parents | 8ff6aa0c311d |
children |
rev | line source |
---|---|
354 | 1 include ./Makefile.def |
2 | |
625
94d82f2c842f
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
619
diff
changeset
|
3 CC += -m64 |
2043 | 4 CFLAGS += -Wno-int-to-pointer-cast |
619 | 5 |
354 | 6 SRCS_TMP = $(wildcard *.cc) |
1052 | 7 SRCS_EXCLUDE = # 除外するファイルを書く |
354 | 8 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) |
9 OBJS = $(SRCS:.cc=.o) | |
10 | |
11 TASK_DIR = ppe | |
12 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
13 TASK_SRCS_EXCLUDE = | |
14 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
15 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
16 | |
17 LIBS += -lFifoManager `sdl-config --libs` | |
18 | |
19 .SUFFIXES: .cc .o | |
20 | |
21 .cc.o: | |
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
23 | |
24 all: $(TARGET) | |
25 | |
26 $(TARGET): $(OBJS) $(TASK_OBJS) | |
27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
28 | |
29 link: | |
30 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
31 | |
32 debug: $(TARGET) | |
33 sudo gdb ./$(TARGET) | |
34 | |
35 clean: | |
36 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
37 rm -f *~ \#* | |
38 rm -f ppe/*~ ppe/\#* | |
39 rm -f spe/*~ spe/\#* |