6 INCLUDES=-I/usr/include/directx/
7 FLAGS=-D__WINDOWS_DS__ -D__WINDOWS_PTHREAD__ $(INCLUDES) -O3 -c
8 LIBS=-ldsound -ldxguid -lwinmm -lstdc++ -lm
11 #-----------------------------------------------------------------------------
12 # by default, ChucK uses a pre-configured libsndfile...
13 # uncomment the next 3 lines to use libsndfile on your system
14 #-----------------------------------------------------------------------------
15 #FLAGS+= -D__CK_SNDFILE_NATIVE__
19 OBJS=chuck.tab.o chuck.yy.o chuck_main.o chuck_errmsg.o chuck_utils.o \
20 chuck_symbol.o chuck_table.o chuck_temp.o chuck_absyn.o chuck_type.o \
21 chuck_emit.o chuck_frame.o chuck_instr.o chuck_vm.o chuck_ugen.o \
22 chuck_bbq.o chuck_dl.o chuck_otf.o digiio_rtaudio.o rtaudio.o \
23 midiio_win32.o ugen_osc.o ugen_xxx.o ugen_filter.o ugen_stk.o \
24 ulib_machine.o ulib_math.o ulib_net.o ulib_std.o util_buffers.o \
25 util_math.o util_network.o util_raw.o util_thread.cpp util_xforms.o \
29 $(CC) -o chuck $(OBJS) $(LIBS)
31 chuck_main.o: chuck_main.cpp chuck_errmsg.h chuck_utils.h
32 $(CC) $(FLAGS) chuck_main.cpp
34 chuck_emit.o: chuck_emit.cpp chuck_emit.h
35 $(CC) $(FLAGS) chuck_emit.cpp
37 chuck_ugen.o: chuck_ugen.cpp chuck_ugen.h
38 $(CC) $(FLAGS) chuck_ugen.cpp
40 chuck_temp.o: chuck_temp.h chuck_temp.cpp
41 $(CC) $(FLAGS) chuck_temp.cpp
43 chuck_frame.o: chuck_frame.h chuck_frame.cpp
44 $(CC) $(FLAGS) chuck_frame.cpp
46 chuck_vm.o: chuck_vm.h chuck_vm.cpp
47 $(CC) $(FLAGS) chuck_vm.cpp
49 chuck_instr.o: chuck_instr.h chuck_instr.cpp
50 $(CC) $(FLAGS) chuck_instr.cpp
52 chuck_type.o: chuck_type.cpp chuck_type.h
53 $(CC) $(FLAGS) chuck_type.cpp
55 chuck_absyn.o: chuck_absyn.cpp chuck_absyn.h chuck_utils.h
56 $(CC) $(FLAGS) chuck_absyn.cpp
58 chuck_symbol.o: chuck_symbol.cpp chuck_symbol.h
59 $(CC) $(FLAGS) chuck_symbol.cpp
61 chuck_table.o: chuck_table.cpp chuck_table.h
62 $(CC) $(FLAGS) chuck_table.cpp
64 chuck.tab.o: chuck.tab.c
65 $(CC) $(FLAGS) chuck.tab.c
68 $(YACC) -dv -b chuck chuck.y
70 chuck.tab.h: chuck.tab.c
71 echo "chuck.tab.h was created at the same time as chuck.tab.c"
73 chuck_errmsg.o: chuck_errmsg.cpp chuck_errmsg.h chuck_utils.h
74 $(CC) $(FLAGS) chuck_errmsg.cpp
76 chuck.yy.o: chuck.yy.c chuck.tab.h chuck_errmsg.h chuck_utils.h
77 $(CC) $(FLAGS) chuck.yy.c
80 $(LEX) -ochuck.yy.c chuck.lex
82 chuck_utils.o: chuck_utils.cpp chuck_utils.h
83 $(CC) $(FLAGS) chuck_utils.cpp
85 chuck_bbq.o: chuck_bbq.cpp chuck_bbq.h midiio_win32.h
86 $(CC) $(FLAGS) chuck_bbq.cpp
88 chuck_otf.o: chuck_otf.h chuck_otf.cpp
89 $(CC) $(FLAGS) chuck_otf.cpp
91 digiio_rtaudio.o: digiio_rtaudio.h digiio_rtaudio.cpp
92 $(CC) $(FLAGS) digiio_rtaudio.cpp
94 rtaudio.o: rtaudio.h rtaudio.cpp rterror.h
95 $(CC) $(FLAGS) rtaudio.cpp
97 midiio_win32.o: midiio_win32.cpp midiio_win32.h
98 $(CC) $(FLAGS) midiio_win32.cpp
100 chuck_dl.o: chuck_dl.h chuck_dl.cpp
101 $(CC) $(FLAGS) chuck_dl.cpp
103 ugen_osc.o: ugen_osc.h ugen_osc.cpp
104 $(CC) $(FLAGS) ugen_osc.cpp
106 ugen_xxx.o: ugen_xxx.h ugen_xxx.cpp
107 $(CC) $(FLAGS) ugen_xxx.cpp
109 ugen_filter.o: ugen_filter.h ugen_filter.cpp
110 $(CC) $(FLAGS) ugen_filter.cpp
112 ugen_stk.o: ugen_stk.h ugen_stk.cpp
113 $(CC) $(FLAGS) ugen_stk.cpp
115 ulib_machine.o: ulib_machine.h ulib_machine.cpp
116 $(CC) $(FLAGS) ulib_machine.cpp
118 ulib_math.o: ulib_math.h ulib_math.cpp
119 $(CC) $(FLAGS) ulib_math.cpp
121 ulib_net.o: ulib_net.h ulib_net.cpp
122 $(CC) $(FLAGS) ulib_net.cpp
124 ulib_std.o: ulib_std.h ulib_std.cpp
125 $(CC) $(FLAGS) ulib_std.cpp
127 util_buffers.o: util_buffers.h util_buffers.cpp
128 $(CC) $(FLAGS) util_buffers.cpp
130 util_math.o: util_math.h util_math.c
131 $(CC) $(FLAGS) util_math.c
133 util_network.o: util_network.h util_network.c
134 $(CC) $(FLAGS) util_network.c
136 util_raw.o: util_raw.h util_raw.c
137 $(CC) $(FLAGS) util_raw.c
139 util_sndfile.o: util_sndfile.h util_sndfile.c
140 $(CC) $(FLAGS) util_sndfile.c
142 util_thread.o: util_thread.h util_thread.cpp
143 $(CC) $(FLAGS) utiL_thread.cpp
145 util_xforms.o: util_xforms.h util_xforms.c
146 $(CC) $(FLAGS) util_xforms.c
149 rm -f chuck *~ *.o chuck.output chuck.tab.h chuck.tab.c chuck.yy.c