109
|
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 CC = g++
|
|
15 CFLAGS = -g -Wall# -O9 #-DDEBUG
|
|
16
|
|
17 INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
|
|
18 LIBS = -L${CERIUM}/TaskManager -lFifoManager
|
|
19
|
|
20 .SUFFIXES: .cc .o
|
|
21
|
|
22 .cc.o:
|
|
23 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
|
|
24
|
|
25 all: $(TARGET)
|
|
26
|
|
27 $(TARGET): $(OBJS) $(TASK_OBJS)
|
|
28 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
|
|
29
|
|
30 link:
|
|
31 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
|
|
32
|
|
33 debug: $(TARGET)
|
|
34 sudo gdb ./$(TARGET)
|
|
35
|
|
36 clean:
|
|
37 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
|
|
38 rm -f *~ \#*
|
|
39 rm -f ppe/*~ ppe/\#*
|
|
40 rm -f spe/*~ spe/\#*
|