Mercurial > hg > Members > kono > Cerium
annotate example/many_task/Makefile.macosx @ 932:f4d7cf77ec3d
sort test (add swap())
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 31 Jul 2010 00:57:46 +0900 |
parents | 45ddb28c592d |
children |
rev | line source |
---|---|
109 | 1 include ./Makefile.def |
2 | |
619 | 3 |
109 | 4 SRCS_TMP = $(wildcard *.cc) |
932
f4d7cf77ec3d
sort test (add swap())
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
675
diff
changeset
|
5 SRCS_EXCLUDE = # 除外するファイルを書く |
109 | 6 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) |
7 OBJS = $(SRCS:.cc=.o) | |
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 | |
15 CC = g++ | |
675 | 16 CC += -m32 |
932
f4d7cf77ec3d
sort test (add swap())
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
675
diff
changeset
|
17 # CFLAGS = -g -Wall# -O9 #-DDEBUG |
109 | 18 |
19 INCLUDE = -I${CERIUM}/include/TaskManager -I. -I.. | |
302 | 20 LIBS = -L${CERIUM}/TaskManager -lFifoManager `sdl-config --libs` |
109 | 21 |
22 .SUFFIXES: .cc .o | |
23 | |
24 .cc.o: | |
25 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
26 | |
27 all: $(TARGET) | |
28 | |
29 $(TARGET): $(OBJS) $(TASK_OBJS) | |
30 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
31 | |
32 link: | |
33 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
34 | |
35 debug: $(TARGET) | |
36 sudo gdb ./$(TARGET) | |
37 | |
38 clean: | |
39 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
40 rm -f *~ \#* | |
41 rm -f ppe/*~ ppe/\#* | |
42 rm -f spe/*~ spe/\#* |