Mercurial > hg > Game > Cerium
annotate example/multiply/Makefile.macosx @ 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 | f71632373220 |
children | cb1e5f6177b9 |
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 ABIBIT=64 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
8 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
9 TASK_DIR = ppe |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
10 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
11 TASK_SRCS_EXCLUDE = |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
12 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
|
13 TASK_OBJS = $(TASK_SRCS:.cc=.o) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
14 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
15 LIBS += -lFifoManager `sdl-config --libs` |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
16 CC += -m$(ABIBIT) |
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 .SUFFIXES: .cc .o |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
19 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
20 .cc.o: |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
21 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ |
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 all: $(TARGET) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
24 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
25 $(TARGET): $(OBJS) $(TASK_OBJS) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
26 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
27 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
28 link: |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
29 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
30 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
31 debug: $(TARGET) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
32 sudo gdb ./$(TARGET) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
33 |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
34 clean: |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
35 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
36 rm -f *~ \#* |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
37 rm -f ppe/*~ ppe/\#* |
f71632373220
add multiply ppe example.
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
diff
changeset
|
38 rm -f spe/*~ spe/\#* |