annotate example/Null/Makefile.macosx @ 1299:f0e805c09ed6 draft

minor fix xml_walk and pickup_float, not work yet.
author Yutaka_Kinjyo <yutaka@cr.ie.u-ryukyu.ac.jp>
date Sun, 04 Dec 2011 18:50:53 +0900
parents e38a4f3e238d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1285
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 include ./Makefile.def
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 SRCS_TMP = $(wildcard *.cc)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 SRCS_EXCLUDE = # 除外するファイルを書く
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 OBJS = $(SRCS:.cc=.o)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 TASK_DIR = ppe
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 TASK_SRCS_EXCLUDE =
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 LIBS += -lFifoManager `sdl-config --libs`
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 .SUFFIXES: .cc .o
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 .cc.o:
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 all: $(TARGET)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 $(TARGET): $(OBJS) $(TASK_OBJS)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 link:
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 debug: $(TARGET)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 sudo gdb ./$(TARGET)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 clean:
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 rm -f *~ \#*
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 rm -f ppe/*~ ppe/\#*
e38a4f3e238d add NullTask
Daichi Toma <toma@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 rm -f spe/*~ spe/\#*