6 FLAGS=-D__LINUX_ALSA__ -O3 -c
7 LIBS=-lasound -lstdc++ -ldl -lm
10 #-----------------------------------------------------------------------------
11 # by default, ChucK uses a pre-configured libsndfile...
12 # uncomment the next 3 lines to use libsndfile on your system
13 #-----------------------------------------------------------------------------
14 #FLAGS+= -D__CK_SNDFILE_NATIVE__
18 OBJS=chuck.tab.o chuck.yy.o chuck_main.o chuck_errmsg.o chuck_utils.o \
19 chuck_symbol.o chuck_table.o chuck_temp.o chuck_absyn.o chuck_type.o \
20 chuck_emit.o chuck_frame.o chuck_instr.o chuck_vm.o chuck_ugen.o \
21 chuck_bbq.o chuck_dl.o chuck_otf.o digiio_rtaudio.o rtaudio.o \
22 midiio_alsa.o ugen_osc.o ugen_xxx.o ugen_filter.o ugen_stk.o \
23 ulib_machine.o ulib_math.o ulib_net.o ulib_std.o util_buffers.o \
24 util_math.o util_network.o util_raw.o util_thread.o util_xforms.o \
28 $(CC) -o chuck $(OBJS) $(LIBS)
30 chuck_main.o: chuck_main.cpp chuck_errmsg.h chuck_utils.h
31 $(CC) $(FLAGS) chuck_main.cpp
33 chuck_emit.o: chuck_emit.cpp chuck_emit.h
34 $(CC) $(FLAGS) chuck_emit.cpp
36 chuck_ugen.o: chuck_ugen.cpp chuck_ugen.h
37 $(CC) $(FLAGS) chuck_ugen.cpp
39 chuck_temp.o: chuck_temp.h chuck_temp.cpp
40 $(CC) $(FLAGS) chuck_temp.cpp
42 chuck_frame.o: chuck_frame.h chuck_frame.cpp
43 $(CC) $(FLAGS) chuck_frame.cpp
45 chuck_vm.o: chuck_vm.h chuck_vm.cpp
46 $(CC) $(FLAGS) chuck_vm.cpp
48 chuck_instr.o: chuck_instr.h chuck_instr.cpp
49 $(CC) $(FLAGS) chuck_instr.cpp
51 chuck_type.o: chuck_type.cpp chuck_type.h
52 $(CC) $(FLAGS) chuck_type.cpp
54 chuck_absyn.o: chuck_absyn.cpp chuck_absyn.h chuck_utils.h
55 $(CC) $(FLAGS) chuck_absyn.cpp
57 chuck_symbol.o: chuck_symbol.cpp chuck_symbol.h
58 $(CC) $(FLAGS) chuck_symbol.cpp
60 chuck_table.o: chuck_table.cpp chuck_table.h
61 $(CC) $(FLAGS) chuck_table.cpp
63 chuck.tab.o: chuck.tab.c
64 $(CC) $(FLAGS) chuck.tab.c
67 $(YACC) -dv -b chuck chuck.y
69 chuck.tab.h: chuck.tab.c
70 echo "chuck.tab.h was created at the same time as chuck.tab.c"
72 chuck_errmsg.o: chuck_errmsg.cpp chuck_errmsg.h chuck_utils.h
73 $(CC) $(FLAGS) chuck_errmsg.cpp
75 chuck.yy.o: chuck.yy.c chuck.tab.h chuck_errmsg.h chuck_utils.h
76 $(CC) $(FLAGS) chuck.yy.c
79 $(LEX) -ochuck.yy.c chuck.lex
81 chuck_utils.o: chuck_utils.cpp chuck_utils.h
82 $(CC) $(FLAGS) chuck_utils.cpp
84 chuck_bbq.o: chuck_bbq.cpp chuck_bbq.h midiio_alsa.h
85 $(CC) $(FLAGS) chuck_bbq.cpp
87 chuck_otf.o: chuck_otf.h chuck_otf.cpp
88 $(CC) $(FLAGS) chuck_otf.cpp
90 digiio_rtaudio.o: digiio_rtaudio.h digiio_rtaudio.cpp
91 $(CC) $(FLAGS) digiio_rtaudio.cpp
93 rtaudio.o: rtaudio.h rtaudio.cpp rterror.h
94 $(CC) $(FLAGS) rtaudio.cpp
96 midiio_alsa.o: midiio_alsa.cpp midiio_alsa.h
97 $(CC) $(FLAGS) midiio_alsa.cpp
99 chuck_dl.o: chuck_dl.h chuck_dl.cpp
100 $(CC) $(FLAGS) chuck_dl.cpp
102 ugen_osc.o: ugen_osc.h ugen_osc.cpp
103 $(CC) $(FLAGS) ugen_osc.cpp
105 ugen_xxx.o: ugen_xxx.h ugen_xxx.cpp
106 $(CC) $(FLAGS) ugen_xxx.cpp
108 ugen_filter.o: ugen_filter.h ugen_filter.cpp
109 $(CC) $(FLAGS) ugen_filter.cpp
111 ugen_stk.o: ugen_stk.h ugen_stk.cpp
112 $(CC) $(FLAGS) ugen_stk.cpp
114 ulib_machine.o: ulib_machine.h ulib_machine.cpp
115 $(CC) $(FLAGS) ulib_machine.cpp
117 ulib_math.o: ulib_math.h ulib_math.cpp
118 $(CC) $(FLAGS) ulib_math.cpp
120 ulib_net.o: ulib_net.h ulib_net.cpp
121 $(CC) $(FLAGS) ulib_net.cpp
123 ulib_std.o: ulib_std.h ulib_std.cpp
124 $(CC) $(FLAGS) ulib_std.cpp
126 util_buffers.o: util_buffers.h util_buffers.cpp
127 $(CC) $(FLAGS) util_buffers.cpp
129 util_math.o: util_math.h util_math.c
130 $(CC) $(FLAGS) util_math.c
132 util_network.o: util_network.h util_network.c
133 $(CC) $(FLAGS) util_network.c
135 util_raw.o: util_raw.h util_raw.c
136 $(CC) $(FLAGS) util_raw.c
138 util_sndfile.o: util_sndfile.h util_sndfile.c
139 $(CC) $(FLAGS) util_sndfile.c
141 util_thread.o: util_thread.h util_thread.cpp
142 $(CC) $(FLAGS) util_thread.cpp
144 util_xforms.o: util_xforms.h util_xforms.c
145 $(CC) $(FLAGS) util_xforms.c
148 rm -f chuck *~ *.o chuck.output chuck.tab.h chuck.tab.c chuck.yy.c