annotate example/multiply/Makefile.cell @ 1994:727e896269e9 draft

commit
author Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
date Mon, 21 Apr 2014 00:02:11 +0900
parents f71632373220
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1556
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 include ./Makefile.def
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 SRCS_TMP = $(wildcard *.cc)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 SRCS_EXCLUDE = # 除外するファイルを書く
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 OBJS = $(SRCS:.cc=.o)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 TASK_DIR = ppe
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 TASK_SRCS_EXCLUDE =
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 LIBS += -lCellManager -lspe2 -lpthread -Wl,--gc-sections
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 .SUFFIXES: .cc .o
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 .cc.o:
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 all: $(TARGET) speobject
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 $(TARGET): $(OBJS) $(TASK_OBJS)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 speobject:
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 cd spe; $(MAKE)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 link:
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 debug: $(TARGET)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 sudo ppu-gdb ./$(TARGET)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 clean:
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 rm -f *~ \#*
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 rm -f ppe/*~ ppe/\#*
f71632373220 add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 cd spe; $(MAKE) clean