annotate example/Pipeline/Makefile.macosx @ 1012:bba03a6843ba

fix HelloWorld
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Mon, 01 Nov 2010 18:27:19 +0900
parents 86e50572561c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
963
86e50572561c SgChange
tkaito
parents:
diff changeset
1 include ./Makefile.def
86e50572561c SgChange
tkaito
parents:
diff changeset
2
86e50572561c SgChange
tkaito
parents:
diff changeset
3 SRCS_TMP = $(wildcard *.cc)
86e50572561c SgChange
tkaito
parents:
diff changeset
4 SRCS_EXCLUDE = # 除外するファイルを書く
86e50572561c SgChange
tkaito
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
86e50572561c SgChange
tkaito
parents:
diff changeset
6 OBJS = $(SRCS:.cc=.o)
86e50572561c SgChange
tkaito
parents:
diff changeset
7
86e50572561c SgChange
tkaito
parents:
diff changeset
8 TASK_DIR = ppe
86e50572561c SgChange
tkaito
parents:
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
86e50572561c SgChange
tkaito
parents:
diff changeset
10 TASK_SRCS_EXCLUDE =
86e50572561c SgChange
tkaito
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
86e50572561c SgChange
tkaito
parents:
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
86e50572561c SgChange
tkaito
parents:
diff changeset
13
86e50572561c SgChange
tkaito
parents:
diff changeset
14 LIBS += -lFifoManager `sdl-config --libs`
86e50572561c SgChange
tkaito
parents:
diff changeset
15 CC += -m32
86e50572561c SgChange
tkaito
parents:
diff changeset
16
86e50572561c SgChange
tkaito
parents:
diff changeset
17 .SUFFIXES: .cc .o
86e50572561c SgChange
tkaito
parents:
diff changeset
18
86e50572561c SgChange
tkaito
parents:
diff changeset
19 .cc.o:
86e50572561c SgChange
tkaito
parents:
diff changeset
20 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
86e50572561c SgChange
tkaito
parents:
diff changeset
21
86e50572561c SgChange
tkaito
parents:
diff changeset
22 all: $(TARGET)
86e50572561c SgChange
tkaito
parents:
diff changeset
23
86e50572561c SgChange
tkaito
parents:
diff changeset
24 $(TARGET): $(OBJS) $(TASK_OBJS)
86e50572561c SgChange
tkaito
parents:
diff changeset
25 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) $(OPT)
86e50572561c SgChange
tkaito
parents:
diff changeset
26
86e50572561c SgChange
tkaito
parents:
diff changeset
27 link:
86e50572561c SgChange
tkaito
parents:
diff changeset
28 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
86e50572561c SgChange
tkaito
parents:
diff changeset
29
86e50572561c SgChange
tkaito
parents:
diff changeset
30 debug: $(TARGET)
86e50572561c SgChange
tkaito
parents:
diff changeset
31 sudo gdb ./$(TARGET)
86e50572561c SgChange
tkaito
parents:
diff changeset
32
86e50572561c SgChange
tkaito
parents:
diff changeset
33 clean:
86e50572561c SgChange
tkaito
parents:
diff changeset
34 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
86e50572561c SgChange
tkaito
parents:
diff changeset
35 rm -f *~ \#*
86e50572561c SgChange
tkaito
parents:
diff changeset
36 rm -f ppe/*~ ppe/\#*
86e50572561c SgChange
tkaito
parents:
diff changeset
37 rm -f spe/*~ spe/\#*