Mercurial > hg > Game > Cerium
annotate example/basic/Makefile.macosx @ 1240:cdd04411b8a4 draft
did'nt moved
author | Daichi Toma <amothic@gmail.com> |
---|---|
date | Wed, 26 Oct 2011 09:16:18 +0900 |
parents | a0ea7d9b6faf |
children |
rev | line source |
---|---|
109 | 1 include ./Makefile.def |
2 | |
3 SRCS_TMP = $(wildcard *.cc) | |
1052 | 4 SRCS_EXCLUDE = # 除外するファイルを書く |
109 | 5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) |
6 OBJS = $(SRCS:.cc=.o) | |
1240 | 7 ABIBIT=64 |
109 | 8 |
9 TASK_DIR = ppe | |
10 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
11 TASK_SRCS_EXCLUDE = | |
12 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
13 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
14 | |
115 | 15 LIBS += -lFifoManager `sdl-config --libs` |
641
0605f27ba7d9
Regression on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
625
diff
changeset
|
16 CC += -m$(ABIBIT) |
109 | 17 |
18 .SUFFIXES: .cc .o | |
19 | |
20 .cc.o: | |
21 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
22 | |
23 all: $(TARGET) | |
24 | |
25 $(TARGET): $(OBJS) $(TASK_OBJS) | |
26 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
27 | |
28 link: | |
29 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
30 | |
31 debug: $(TARGET) | |
32 sudo gdb ./$(TARGET) | |
33 | |
34 clean: | |
35 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
36 rm -f *~ \#* | |
37 rm -f ppe/*~ ppe/\#* | |
38 rm -f spe/*~ spe/\#* |