annotate example/synthesizer/Makefile.gpu @ 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 6849865f96eb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2020
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 include ./Makefile.def
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 SRCS_TMP = $(wildcard *.cc)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 SRCS_EXCLUDE = # 除外するファイルを書く
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 SRCS = $(filter-out $(SRCS_EXCLUDE),$(SRCS_TMP))
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 OBJS = $(SRCS:.cc=.o)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 TASK_DIR1 = ppe
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 TASK_DIR2 = gpu
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 TASK_SRCS_TMP = $(wildcard $(TASK_DIR2)/*.cc $(TASK_DIR1)/*.cc)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 TASK_SRCS_EXCLUDE = # Exec.cc
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 TASK_SRCS = $(filter-out $(TASK_DIR1)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 TASK_OBJS = $(TASK_SRCS:.cc=.o)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 CC += $(ABI)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 CFLAGS += -D__CERIUM_GPU__
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 INCLUDE = -I${CERIUM}/include/TaskManager -I. -I..
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 LIBS = -L${CERIUM}/TaskManager -DUSE_SIMPLE_TASK -lGpuManager -framework opencl `sdl-config --libs`
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 .SUFFIXES: .cc .o
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 .cc.o:
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 all: $(TARGET)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 $(TARGET): $(OBJS) $(TASK_OBJS)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 link:
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 debug: $(TARGET)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 sudo lldb -- ./$(TARGET) -file c.txt -gpu -g
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 test :
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 ./$(TARGET) -file c.txt -gpu -g
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 clean:
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 rm -f *~ \#*
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 rm -f ppe/*~ ppe/\#*
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 rm -f spe/*~ spe/\#*
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 rm -f gpu/*~ gpu/\#*
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
46
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62