annotate example/synthesizer/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 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_DIR = ppe
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 TASK_SRCS_TMP = $(wildcard $(TASK_DIR)/*.cc)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 TASK_SRCS_EXCLUDE =
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 TASK_SRCS = $(filter-out $(TASK_DIR)/$(TASK_SRCS_EXCLUDE),$(TASK_SRCS_TMP))
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 TASK_OBJS = $(TASK_SRCS:.cc=.o)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 LIBS += -lFifoManager `sdl-config --libs`
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 CC += -m$(ABIBIT)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 .SUFFIXES: .cc .o
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 .cc.o:
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 all: $(TARGET)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 $(TARGET): $(OBJS) $(TASK_OBJS)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 $(CC) -o $@ $(OBJS) $(TASK_OBJS) $(LIBS)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 link:
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 $(CC) -o $(TARGET) $(OBJS) $(TASK_OBJS) $(LIBS)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 debug: $(TARGET)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 sudo gdb ./$(TARGET)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 test:
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 ./$(TARGET) -file c.txt -cpu 1
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 ./$(TARGET) -file c.txt -cpu 4
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 ./$(TARGET) -file c.txt -cpu 4 -i
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 clean:
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 rm -f $(TARGET) $(OBJS) $(TASK_OBJS)
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 rm -f *~ \#*
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 rm -f ppe/*~ ppe/\#*
6849865f96eb add synthesizer project
Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 rm -f spe/*~ spe/\#*