Mercurial > hg > Game > Cerium
annotate example/word_count/Makefile.macosx @ 2048:6796d85f3d6b draft
remove error
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 28 Jan 2016 00:05:49 +0900 |
parents | ce7a3887d09b |
children |
rev | line source |
---|---|
393 | 1 include ./Makefile.def |
2 | |
3 SRCS_TMP = $(wildcard *.cc) | |
1052 | 4 SRCS_EXCLUDE = # 除外するファイルを書く |
393 | 5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) |
6 OBJS = $(SRCS:.cc=.o) | |
7 | |
8 TASK_DIR = ppe | |
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
10 TASK_SRCS_EXCLUDE = | |
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) | |
12 TASK_OBJS = $(TASK_SRCS:.cc=.o) | |
13 | |
2034
ce7a3887d09b
remove TCmalloc option
Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
parents:
2030
diff
changeset
|
14 LIBS += -lFifoManager `sdl-config --libs` |
2030 | 15 CC += -m$(ABIBIT) -g |
393 | 16 |
17 .SUFFIXES: .cc .o | |
18 | |
19 .cc.o: | |
20 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
21 | |
22 all: $(TARGET) | |
23 | |
24 $(TARGET): $(OBJS) $(TASK_OBJS) | |
25 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
26 | |
27 link: | |
28 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
29 | |
30 debug: $(TARGET) | |
31 sudo gdb ./$(TARGET) | |
32 | |
2003
7dc90c83a787
change set_last(t to next). run test at compilation time
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1083
diff
changeset
|
33 test: |
7dc90c83a787
change set_last(t to next). run test at compilation time
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1083
diff
changeset
|
34 ./$(TARGET) -file c.txt -cpu 1 |
7dc90c83a787
change set_last(t to next). run test at compilation time
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1083
diff
changeset
|
35 ./$(TARGET) -file c.txt -cpu 4 |
7dc90c83a787
change set_last(t to next). run test at compilation time
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1083
diff
changeset
|
36 ./$(TARGET) -file c.txt -cpu 4 -i |
393 | 37 clean: |
38 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
39 rm -f *~ \#* | |
40 rm -f ppe/*~ ppe/\#* | |
41 rm -f spe/*~ spe/\#* |