7 FLAGS=-D__MACOSX_CORE__ -D__MACOSX_UB__ -c -arch ppc -arch i386 \
8 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
9 LIBS=-framework CoreAudio -framework CoreMIDI -framework CoreFoundation \
10 -framework IOKit -framework Carbon -lstdc++ -lm \
11 -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
14 ifneq ($(CHUCK_STAT),)
15 FLAGS+= -D__CHUCK_STAT_TRACK__
18 ifneq ($(CHUCK_DEBUG),)
24 ifneq ($(CHUCK_STRICT),)
28 #-----------------------------------------------------------------------------
29 # by default, ChucK uses a pre-configured libsndfile...
30 # uncomment the next 3 lines to use libsndfile on your system
31 #-----------------------------------------------------------------------------
32 #FLAGS+= -D__CK_SNDFILE_NATIVE__
36 OBJS= chuck.tab.o chuck.yy.o chuck_absyn.o chuck_parse.o chuck_errmsg.o \
37 chuck_frame.o chuck_symbol.o chuck_table.o chuck_utils.o \
38 chuck_vm.o chuck_instr.o chuck_scan.o chuck_type.o chuck_emit.o \
39 chuck_compile.o chuck_dl.o chuck_oo.o chuck_lang.o chuck_ugen.o \
40 chuck_main.o chuck_otf.o chuck_stats.o chuck_bbq.o chuck_shell.o \
41 chuck_console.o chuck_globals.o digiio_rtaudio.o hidio_sdl.o \
42 midiio_rtmidi.o rtaudio.o rtmidi.o ugen_osc.o ugen_filter.o \
43 ugen_stk.o ugen_xxx.o ulib_machine.o ulib_math.o ulib_std.o \
44 ulib_opsc.o util_buffers.o util_console.o util_math.o util_network.o \
45 util_raw.o util_string.o util_thread.o util_xforms.o util_opsc.o \
46 util_hid.o uana_xform.o uana_extract.o $(SF_OBJ)
49 $(CXX_LINK) -o chuck $(OBJS) $(LIBS)
51 chuck.tab.o: chuck.tab.c
52 $(CXX) $(FLAGS) chuck.tab.c
55 $(YACC) -dv -b chuck chuck.y
57 chuck.tab.h: chuck.tab.c
58 echo "chuck.tab.h was created at the same time as chuck.tab.c"
60 chuck.yy.o: chuck.yy.c chuck.tab.h chuck_errmsg.h chuck_utils.h
61 $(CXX) $(FLAGS) chuck.yy.c
64 $(LEX) -ochuck.yy.c chuck.lex
66 chuck_absyn.o: chuck_absyn.cpp chuck_absyn.h chuck_utils.h chuck_symbol.h
67 $(CXX) $(FLAGS) chuck_absyn.cpp
69 chuck_parse.o: chuck_parse.h chuck_parse.cpp
70 $(CXX) $(FLAGS) chuck_parse.cpp
72 chuck_scan.o: chuck_type.h chuck_scan.h chuck_scan.cpp
73 $(CXX) $(FLAGS) chuck_scan.cpp
75 chuck_type.o: chuck_type.cpp chuck_type.h chuck_absyn.h chuck_oo.h chuck_vm.h chuck_instr.h
76 $(CXX) $(FLAGS) chuck_type.cpp
78 chuck_emit.o: chuck_emit.cpp chuck_emit.h chuck_type.h chuck_instr.h chuck_vm.h
79 $(CXX) $(FLAGS) chuck_emit.cpp
81 chuck_compile.o: chuck_compile.h chuck_compile.cpp
82 $(CXX) $(FLAGS) chuck_compile.cpp
84 chuck_symbol.o: chuck_symbol.cpp chuck_symbol.h chuck_table.h chuck_utils.h
85 $(CXX) $(FLAGS) chuck_symbol.cpp
87 chuck_frame.o: chuck_frame.h chuck_frame.cpp
88 $(CXX) $(FLAGS) chuck_frame.cpp
90 chuck_errmsg.o: chuck_errmsg.cpp chuck_errmsg.h chuck_utils.h
91 $(CXX) $(FLAGS) chuck_errmsg.cpp
93 chuck_utils.o: chuck_utils.cpp chuck_utils.h
94 $(CXX) $(FLAGS) chuck_utils.cpp
96 chuck_table.o: chuck_table.cpp chuck_table.h chuck_utils.h
97 $(CXX) $(FLAGS) chuck_table.cpp
99 chuck_instr.o: chuck_instr.h chuck_instr.cpp chuck_type.h chuck_vm.h
100 $(CXX) $(FLAGS) chuck_instr.cpp
102 chuck_vm.o: chuck_vm.h chuck_vm.cpp chuck_instr.h chuck_oo.h chuck_type.h
103 $(CXX) $(FLAGS) chuck_vm.cpp
105 chuck_oo.o: chuck_oo.h chuck_oo.cpp
106 $(CXX) $(FLAGS) chuck_oo.cpp
108 chuck_lang.o: chuck_lang.h chuck_lang.cpp chuck_oo.h
109 $(CXX) $(FLAGS) chuck_lang.cpp
111 chuck_ugen.o: chuck_ugen.cpp chuck_ugen.h chuck_def.h
112 $(CXX) $(FLAGS) chuck_ugen.cpp
114 chuck_dl.o: chuck_dl.h chuck_dl.cpp
115 $(CXX) $(FLAGS) chuck_dl.cpp
117 chuck_otf.o: chuck_otf.h chuck_otf.cpp
118 $(CXX) $(FLAGS) chuck_otf.cpp
120 chuck_stats.o: chuck_stats.h chuck_stats.cpp
121 $(CXX) $(FLAGS) chuck_stats.cpp
123 chuck_bbq.o: chuck_bbq.cpp chuck_bbq.h midiio_rtmidi.h
124 $(CXX) $(FLAGS) chuck_bbq.cpp
126 chuck_shell.o: chuck_shell.h chuck_shell.cpp
127 $(CXX) $(FLAGS) chuck_shell.cpp
129 chuck_console.o: chuck_console.h chuck_console.cpp
130 $(CXX) $(FLAGS) chuck_console.cpp
132 chuck_globals.o: chuck_globals.h chuck_globals.cpp
133 $(CXX) $(FLAGS) chuck_globals.cpp
135 chuck_main.o: chuck_main.cpp chuck_absyn.h chuck_type.h chuck_emit.h chuck_vm.h chuck_errmsg.h chuck_utils.h
136 $(CXX) $(FLAGS) chuck_main.cpp
138 digiio_rtaudio.o: digiio_rtaudio.h digiio_rtaudio.cpp rtaudio.h
139 $(CXX) $(FLAGS) digiio_rtaudio.cpp
141 hidio_sdl.o: hidio_sdl.h hidio_sdl.cpp
142 $(CXX) $(FLAGS) hidio_sdl.cpp
144 midiio_rtmidi.o: midiio_rtmidi.h midiio_rtmidi.cpp
145 $(CXX) $(FLAGS) midiio_rtmidi.cpp
147 rtaudio.o: rtaudio.h rtaudio.cpp rterror.h
148 $(CXX) $(FLAGS) rtaudio.cpp
150 rtmidi.o: rtmidi.h rtmidi.cpp
151 $(CXX) $(FLAGS) rtmidi.cpp
153 ugen_osc.o: ugen_osc.h ugen_osc.cpp
154 $(CXX) $(FLAGS) ugen_osc.cpp
156 ugen_xxx.o: ugen_xxx.h ugen_xxx.cpp
157 $(CXX) $(FLAGS) ugen_xxx.cpp
159 ugen_filter.o: ugen_filter.h ugen_filter.cpp
160 $(CXX) $(FLAGS) ugen_filter.cpp
162 ugen_stk.o: ugen_stk.h ugen_stk.cpp
163 $(CXX) $(FLAGS) ugen_stk.cpp
165 uana_xform.o: uana_xform.h uana_xform.cpp
166 $(CXX) $(FLAGS) uana_xform.cpp
168 uana_extract.o: uana_extract.h uana_extract.cpp
169 $(CXX) $(FLAGS) uana_extract.cpp
171 ulib_machine.o: ulib_machine.h ulib_machine.cpp
172 $(CXX) $(FLAGS) ulib_machine.cpp
174 ulib_math.o: ulib_math.h ulib_math.cpp
175 $(CXX) $(FLAGS) ulib_math.cpp
177 ulib_std.o: ulib_std.h ulib_std.cpp
178 $(CXX) $(FLAGS) ulib_std.cpp
180 ulib_opsc.o: ulib_opsc.h ulib_opsc.cpp
181 $(CXX) $(FLAGS) ulib_opsc.cpp
183 util_buffers.o: util_buffers.h util_buffers.cpp
184 $(CXX) $(FLAGS) util_buffers.cpp
186 util_console.o: util_console.h util_console.cpp chuck_shell.h
187 $(CXX) $(FLAGS) util_console.cpp
189 util_hid.o: util_hid.h util_hid.cpp
190 $(CXX) $(FLAGS) util_hid.cpp
192 util_math.o: util_math.h util_math.c
193 $(CXX) $(FLAGS) util_math.c
195 util_network.o: util_network.h util_network.c
196 $(CXX) $(FLAGS) util_network.c
198 util_opsc.o: util_opsc.h util_opsc.cpp
199 $(CXX) $(FLAGS) util_opsc.cpp
201 util_raw.o: util_raw.h util_raw.c
202 $(CXX) $(FLAGS) util_raw.c
204 util_string.o: util_string.h util_string.cpp
205 $(CXX) $(FLAGS) util_string.cpp
207 util_thread.o: util_thread.h util_thread.cpp
208 $(CXX) $(FLAGS) util_thread.cpp
210 util_xforms.o: util_xforms.h util_xforms.c
211 $(CXX) $(FLAGS) util_xforms.c
213 util_sndfile.o: util_sndfile.h util_sndfile.c
214 $(CXX) $(FLAGS) util_sndfile.c
217 rm -f chuck *~ *.o chuck.output chuck.tab.h chuck.tab.c chuck.yy.c