annotate example/Pipeline/Makefile.cell @ 1199:e55b9d2cb33e draft

add regex
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Thu, 14 Jul 2011 18:16:23 +0900
parents a0ea7d9b6faf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
963
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
1 include ./Makefile.def
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
2
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
3 ABIBIT = 32
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
4
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
5 SRCS_TMP = $(wildcard *.cc)
1052
a0ea7d9b6faf Makefile utf-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 963
diff changeset
6 SRCS_EXCLUDE = # 除外するファイルを書く
963
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
7 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
8 OBJS = $(SRCS:.cc=.o)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
9
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
10 TASK_DIR = ppe
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
11 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
12 TASK_SRCS_EXCLUDE =
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
13 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
14 TASK_OBJS = $(TASK_SRCS:.cc=.o)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
15
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
16 CFLAGS += -m$(ABIBIT)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
17 LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
18
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
19 .SUFFIXES: .cc .o
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
20
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
21 .cc.o:
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
22 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
23
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
24 all: $(TARGET) speobject
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
25
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
26 $(TARGET): $(OBJS) $(TASK_OBJS)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
27 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
28
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
29 speobject:
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
30 cd spe; $(MAKE) ABIBIT=$(ABIBIT)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
31
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
32 link:
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
33 $(CC) -m$(ABIBIT) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
34
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
35 debug: $(TARGET)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
36 sudo ppu-gdb ./$(TARGET)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
37
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
38 clean:
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
39 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
40 rm -f *~ \#*
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
41 rm -f ppe/*~ ppe/\#*
62b72c6199f3 SgChange
tkaito
parents:
diff changeset
42 cd spe; $(MAKE) clean