Mercurial > hg > Game > Cerium
annotate example/fft/Makefile.macosx @ 1717:5d68a55d5561 draft
fix profile
author | Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Oct 2013 17:29:37 +0900 |
parents | 8e0305989829 |
children | 2e8931baef7f |
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 | |
1717 | 9 #GPU_TASK_DIR = gpu |
1551 | 10 TASK_DIR = ppe |
11 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
|
12 TASK_SRCS_EXCLUDE = |
1717 | 13 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP)) |
1551 | 14 TASK_OBJS = $(TASK_SRCS:.cc=.o) |
15 | |
16 CC = clang++ | |
17 CC += $(ABI) | |
18 # CFLAGS = -g -Wall# -O9 #-DDEBUG | |
19 | |
1704 | 20 INCLUDE = -I. -I.. -I${CERIUM}/include/TaskManager |
1551 | 21 LIBS = -L${CERIUM}/TaskManager -lFifoManager `sdl-config --libs` |
22 | |
23 .SUFFIXES: .cc .o | |
24 | |
25 .cc.o: | |
26 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | |
27 | |
28 all: $(TARGET) | |
29 | |
30 $(TARGET): $(OBJS) $(TASK_OBJS) | |
31 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS) | |
32 | |
33 link: | |
34 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS) | |
35 | |
1675 | 36 hoge: |
1689 | 37 cpus=0;./$(TARGET) -file lena512.pgm -cpu $$cpus |
38 cpus=1;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
39 cpus=2;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
40 cpus=3;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
41 cpus=4;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
42 cpus=5;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
43 cpus=6;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
44 cpus=7;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
45 cpus=8;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
46 cpus=9;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
47 cpus=10;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
48 cpus=11;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
49 cpus=12;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
50 cpus=13;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
51 cpus=14;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
52 cpus=15;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
53 cpus=16;./$(TARGET) -file lena512.pgm -cpu $$cpus | |
1675 | 54 |
1551 | 55 debug: $(TARGET) |
56 sudo gdb ./$(TARGET) | |
57 | |
58 clean: | |
59 rm -f $(TARGET) $(OBJS) $(TASK_OBJS) | |
60 rm -f *~ \#* | |
61 rm -f ppe/*~ ppe/\#* | |
62 rm -f spe/*~ spe/\#* | |
63 rm -f gpu/*~ gpu/\#* |