Mercurial > hg > Members > kono > Cerium
annotate example/task_queue/Makefile.macosx @ 647:7c9ded1ea750
MailManager rewrite. not yet worked.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 21 Nov 2009 16:18:47 +0900 |
parents | 60aa3f241b10 |
children | 19c6cdeb23d6 |
rev | line source |
---|---|
492 | 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 | |
8 TASK_DIR = ppe | |
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
10 TASK_SRCS_EXCLUDE = | |
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
12 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
13 | |
14 LIBS += -lFifoManager `sdl-config --libs` | |
625
60aa3f241b10
64bit mode worked on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
619
diff
changeset
|
15 CC += -m64 |
492 | 16 |
17 .SUFFIXES: .cc .o | |
18 | |
19 .cc.o: | |
20 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
21 | |
22 all: $(TARGET) | |
23 | |
24 $(TARGET): $(OBJS) $(TASK_OBJS) | |
25 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
26 | |
27 link: | |
28 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
29 | |
30 debug: $(TARGET) | |
31 sudo gdb ./$(TARGET) | |
32 | |
33 clean: | |
34 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
35 rm -f *~ \#* | |
36 rm -f ppe/*~ ppe/\#* | |
37 rm -f spe/*~ spe/\#* |