annotate example/basic/Makefile.macosx @ 839:1001c4bea1a0 draft

if unnecessary
author Yutaka_Kinjyo
date Fri, 28 May 2010 03:24:52 +0900
parents 0605f27ba7d9
children a0ea7d9b6faf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 include ./Makefile.def
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 SRCS_TMP = $(wildcard *.cc)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 SRCS_EXCLUDE = # 除外するファイルを書く
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 OBJS = $(SRCS:.cc=.o)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 TASK_DIR = ppe
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 TASK_SRCS_EXCLUDE =
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13
115
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
14 LIBS += -lFifoManager `sdl-config --libs`
641
0605f27ba7d9 Regression on Mac OS X
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 625
diff changeset
15 CC += -m$(ABIBIT)
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17 .SUFFIXES: .cc .o
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 .cc.o:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22 all: $(TARGET)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24 $(TARGET): $(OBJS) $(TASK_OBJS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
25 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
26
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
27 link:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
28 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30 debug: $(TARGET)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
31 sudo gdb ./$(TARGET)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
32
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
33 clean:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
34 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
35 rm -f *~ \#*
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
36 rm -f ppe/*~ ppe/\#*
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
37 rm -f spe/*~ spe/\#*