364
|
1 include ./Makefile.def
|
|
2
|
|
3 SRCS_TMP = $(wildcard *.cc)
|
373
|
4 SRCS_EXCLUDE =
|
364
|
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
|
369
|
6 OBJS = $(SRCS:.cc=.o)
|
364
|
7
|
|
8 TASK_DIR = ppe
|
|
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
|
373
|
10 TASK_SRCS_EXCLUDE =
|
364
|
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
|
|
16 .SUFFIXES: .cc .o
|
|
17
|
|
18 .cc.o:
|
|
19 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
|
|
20
|
373
|
21 all: $(TARGET)
|
368
|
22
|
373
|
23 #MemList.o: ${CERIUM}/kernel/memory/MemList.cc
|
|
24
|
364
|
25
|
|
26 $(TARGET): $(OBJS) $(TASK_OBJS)
|
|
27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
|
|
28
|
|
29 link:
|
|
30 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
|
|
31
|
|
32 debug: $(TARGET)
|
373
|
33 sudo gdb ./$(TARGET)
|
364
|
34
|
|
35 clean:
|
|
36 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
|
|
37 rm -f *~ \#*
|