Mercurial > hg > Game > Cerium
annotate example/fft/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 | 7dc90c83a787 |
children |
rev | line source |
---|---|
1551 | 1 include ./Makefile.def |
2 | |
3 | |
4 SRCS_TMP = $(wildcard *.cc) | |
1558
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1551
diff
changeset
|
5 SRCS_EXCLUDE = # 除外するファイルを書く |
1551 | 6 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP)) |
7 OBJS = $(SRCS:.cc=.o) | |
8 | |
9 TASK_DIR = ppe | |
10 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc) | |
1558
69ded0c49aef
add fft ppe example
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1551
diff
changeset
|
11 TASK_SRCS_EXCLUDE = |
1717 | 12 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) |
1551 | 13 TASK_OBJS = $(TASK_SRCS:.cc=.o) |
14 | |
15 CC = clang++ | |
16 CC += $(ABI) | |
17 # CFLAGS = -g -Wall# -O9 #-DDEBUG | |
18 | |
1704 | 19 INCLUDE = -I. -I.. -I${CERIUM}/include/TaskManager |
1551 | 20 LIBS = -L${CERIUM}/TaskManager -lFifoManager `sdl-config --libs` |
21 | |
22 .SUFFIXES: .cc .o | |
23 | |
24 .cc.o: | |
25 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
26 | |
27 all: $(TARGET) | |
28 | |
29 $(TARGET): $(OBJS) $(TASK_OBJS) | |
30 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
31 | |
32 link: | |
33 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
34 | |
1675 | 35 hoge: |
1689 | 36 cpus=0;./$(TARGET) -file lena512.pgm -cpu $$cpus |
37 cpus=1;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
38 cpus=2;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
39 cpus=3;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
40 cpus=4;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
41 cpus=5;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
42 cpus=6;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
43 cpus=7;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
44 cpus=8;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
45 cpus=9;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
46 cpus=10;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
47 cpus=11;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
48 cpus=12;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
49 cpus=13;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
50 cpus=14;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
51 cpus=15;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
52 cpus=16;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
1675 | 53 |
1551 | 54 debug: $(TARGET) |
55 sudo gdb ./$(TARGET) | |
56 | |
2003
7dc90c83a787
change set_last(t to next). run test at compilation time
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1730
diff
changeset
|
57 test: |
7dc90c83a787
change set_last(t to next). run test at compilation time
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1730
diff
changeset
|
58 ./$(TARGET) -file lena512.pgm -cpu 1 |
7dc90c83a787
change set_last(t to next). run test at compilation time
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
1730
diff
changeset
|
59 ./$(TARGET) -file lena512.pgm -cpu 4 |
1551 | 60 clean: |
61 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
62 rm -f *~ \#* | |
63 rm -f ppe/*~ ppe/\#* | |
64 rm -f spe/*~ spe/\#* | |
65 rm -f gpu/*~ gpu/\#* |