comparison example/fileread/Makefile.macosx @ 1721:797e3ec1ca74 draft

add fileread only example
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Mon, 28 Oct 2013 13:35:17 +0900 (2013-10-28)
parents
children d1212026e2a0
comparison
equal deleted inserted replaced
1720:a07d4773012d 1721:797e3ec1ca74
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
16 .SUFFIXES: .cc .o
17
18 .cc.o:
19 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
20
21 all: $(TARGET)
22
23 $(TARGET): $(OBJS) $(TASK_OBJS)
24 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
25
26 link:
27 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
28
29 debug: $(TARGET)
30 sudo gdb ./$(TARGET)
31
32 clean:
33 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
34 rm -f *~ \#*
35 rm -f ppe/*~ ppe/\#*
36 rm -f spe/*~ spe/\#*