annotate example/many_task/Makefile.cell @ 1621:f907bbac14f2 draft

Implement Boyer-Moore String Search Algorithm.(But incomplete divided file point)
author Masa <e085726@ie.u-ryukyu.ac.jp>
date Tue, 21 May 2013 17:03:53 +0900
parents a0ea7d9b6faf
children
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)
1052
a0ea7d9b6faf Makefile utf-8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 932
diff changeset
4 SRCS_EXCLUDE = # 除外するファイルを書く
109
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
256
2c775d229cc6 fix examples
tkaito@localhost.localdomain
parents: 220
diff changeset
14 LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 .SUFFIXES: .cc .o
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 .cc.o:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 all: $(TARGET) speobject
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 $(TARGET): $(OBJS) $(TASK_OBJS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
25
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
26 speobject:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
27 cd spe; $(MAKE)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
28
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29 link:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
31
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
32 debug: $(TARGET)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
33 sudo ppu-gdb ./$(TARGET)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
34
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
35 clean:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
36 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
37 rm -f *~ \#*
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
38 rm -f ppe/*~ ppe/\#*
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
39 cd spe; $(MAKE) clean