Mercurial > hg > Members > kono > Cerium
annotate example/mainMem/Makefile.macosx @ 638:671fca057ad3
hmmmm
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 18:18:20 +0900 |
parents | 60aa3f241b10 |
children | 2b167196cb27 |
rev | line source |
---|---|
312 | 1 include ./Makefile.def |
2 | |
625
60aa3f241b10
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
619
diff
changeset
|
3 CC += -m64 |
619 | 4 |
312 | 5 SRCS_TMP = $(wildcard *.cc) |
6 SRCS_EXCLUDE = # 除外するファイルを書く | |
7 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) | |
8 OBJS = $(SRCS:.cc=.o) | |
9 | |
10 TASK_DIR = ppe | |
11 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
12 TASK_SRCS_EXCLUDE = | |
13 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
14 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
15 | |
16 LIBS += -lFifoManager `sdl-config --libs` | |
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/\#* |