Mercurial > hg > Members > e085722 > Cerium
comparison example/many_task/Makefile.macosx @ 0:04e28d8d3c6f
first commit
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Nov 2010 01:23:25 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:04e28d8d3c6f |
---|---|
1 include ./Makefile.def | |
2 | |
3 | |
4 SRCS_TMP = $(wildcard *.cc) | |
5 SRCS_EXCLUDE = # 除外するファイルを書く | |
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++ | |
16 CC += -m32 | |
17 # CFLAGS = -g -Wall# -O9 #-DDEBUG | |
18 | |
19 INCLUDE = -I${CERIUM}/include/TaskManager -I. -I.. | |
20 LIBS = -L${CERIUM}/TaskManager -lFifoManager `sdl-config --libs` | |
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/\#* |