312
|
1 include ./Makefile.def
|
|
2
|
619
|
3 CC += -m32
|
|
4
|
312
|
5 SRCS_TMP = $(wildcard *.cc)
|
|
6 SRCS_EXCLUDE = # 除外するファイルを書く
|
|
7 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
|
|
8 OBJS = $(SRCS:.cc=.o)
|
|
9
|
|
10 TASK_DIR = ppe
|
|
11 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
|
|
12 TASK_SRCS_EXCLUDE =
|
|
13 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
|
|
14 TASK_OBJS = $(TASK_SRCS:.cc=.o)
|
|
15
|
|
16 LIBS += -lFifoManager `sdl-config --libs`
|
|
17
|
|
18 .SUFFIXES: .cc .o
|
|
19
|
|
20 .cc.o:
|
|
21 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
|
|
22
|
|
23 all: $(TARGET)
|
|
24
|
|
25 $(TARGET): $(OBJS) $(TASK_OBJS)
|
|
26 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
|
|
27
|
|
28 link:
|
|
29 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
|
|
30
|
|
31 debug: $(TARGET)
|
|
32 sudo gdb ./$(TARGET)
|
|
33
|
|
34 clean:
|
|
35 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
|
|
36 rm -f *~ \#*
|
|
37 rm -f ppe/*~ ppe/\#*
|
|
38 rm -f spe/*~ spe/\#*
|