1598
|
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`
|
|
15 CC += -m$(ABIBIT)
|
|
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/\#*
|