[38] | 1 | # |
---|
| 2 | # Framsticks GDK makefile |
---|
| 3 | # |
---|
| 4 | |
---|
| 5 | CXX=g++ |
---|
| 6 | CC=gcc |
---|
| 7 | |
---|
| 8 | TARGETS=convtest gdktest genotest neurotest loadertest f0def.xml model.def convtestmw |
---|
| 9 | |
---|
| 10 | all: $(TARGETS) |
---|
| 11 | |
---|
| 12 | #CXXOPTS= -DNOCREATUREOBJECT -DEASYMAPDEBUG -O2 -Wno-parentheses -Wno-overloaded-virtual -Wno-format -Wunused |
---|
| 13 | CXXOPTS= -DNOCREATUREOBJECT -DEASYMAPDEBUG -g -Wno-parentheses -Wno-overloaded-virtual -Wno-format -Wunused |
---|
| 14 | # -DEASYMAPDEBUG is required for convtest |
---|
| 15 | |
---|
| 16 | AUTOGENERATED=defassign-f0_joint.h defassign-f0_part.h defassign-f0_neuro.h f0classes.h \ |
---|
| 17 | defassign-f0_neuroconn.h f0def.xml neurocls-library.h neurocls-factory.h model.def \ |
---|
| 18 | lemon conv_f8tof1_scanner.cpp conv_f8tof1_grammar.h conv_f8tof1_grammar.c \ |
---|
| 19 | conv_f8tof1_scanner.h |
---|
| 20 | |
---|
| 21 | CONVMODULES=conv_f1.o conv_f8tof1.o |
---|
| 22 | |
---|
| 23 | GDKOBJS=list.o advlist.o param.o sstring.o 3d.o model.o modelparts.o errmanager.o \ |
---|
| 24 | neurolibrary.o geno.o genoconv.o extvalue.o framsg.o callbacks.o syntparam.o \ |
---|
| 25 | multirange.o multimap.o paramtabobj.o defgenoconv.o sstringutils.o paramobj.o \ |
---|
| 26 | $(CONVMODULES) conv_f8tof1_scanner.o conv_f8_utils.o |
---|
| 27 | |
---|
| 28 | libgdk.a: $(GDKOBJS) |
---|
| 29 | |
---|
| 30 | libgenof8.a: geno_f8.o geno_fx.o model.o framsg.o rndutil.o conv_f8_utils.o |
---|
| 31 | |
---|
| 32 | CONVTESTOBJS= convtest.o printconvmap.o stdouterr.o virtfile.o |
---|
| 33 | CONVTESTOBJS2= convtestmw.o printconvmap.o stdouterr.o virtfile.o |
---|
| 34 | |
---|
| 35 | convtest: libgdk.a $(CONVTESTOBJS) |
---|
| 36 | $(CXX) $(CONVTESTOBJS) -L. -lgdk -o $@ |
---|
| 37 | |
---|
| 38 | convtestmw: libgdk.a $(CONVTESTOBJS2) libgenof8.a |
---|
| 39 | $(CXX) $(CONVTESTOBJS2) -L. -lgdk -lgenof8 -o $@ |
---|
| 40 | |
---|
| 41 | GDKTESTOBJS= gdktest.o stdouterr.o virtfile.o |
---|
| 42 | |
---|
| 43 | gdktest: libgdk.a $(GDKTESTOBJS) |
---|
| 44 | $(CXX) $(GDKTESTOBJS) -L. -lgdk -o $@ |
---|
| 45 | |
---|
| 46 | GENOTESTOBJS= genotest.o virtfile.o |
---|
| 47 | |
---|
| 48 | genotest: libgdk.a $(GENOTESTOBJS) |
---|
| 49 | $(CXX) $(GENOTESTOBJS) -L. -lgdk -o $@ |
---|
| 50 | |
---|
| 51 | NEUROTESTOBJS= neurotest.o stdouterr.o virtfile.o neuroimpl.o neurofactory.o \ |
---|
| 52 | neuroimpl-simple.o neuroimpl-channels.o neuroimpl-fuzzy.o neuroimpl-fuzzy-f0.o |
---|
| 53 | |
---|
| 54 | neurotest: libgdk.a $(NEUROTESTOBJS) |
---|
| 55 | $(CXX) $(NEUROTESTOBJS) -L. -lgdk -o $@ |
---|
| 56 | |
---|
| 57 | LOADERTESTOBJS=genotypeloader.o loadertest.o virtfile.o multiparamload.o stdiofile-autoinit.o stdiofile.o |
---|
| 58 | |
---|
| 59 | loadertest: libgdk.a $(LOADERTESTOBJS) |
---|
| 60 | $(CXX) $(LOADERTESTOBJS) -L. -lgdk -o $@ |
---|
| 61 | |
---|
| 62 | neurocls-library.h: f0.def neurocls-library.m4 |
---|
| 63 | m4 neurocls-library.m4 f0.def >neurocls-library.h |
---|
| 64 | |
---|
| 65 | neurocls-factory.h: f0.def neurocls-factory.m4 |
---|
| 66 | m4 neurocls-factory.m4 f0.def >neurocls-factory.h |
---|
| 67 | |
---|
| 68 | f0classes.h: f0.def f0classes.m4 |
---|
| 69 | m4 f0classes.m4 f0.def >f0classes.h |
---|
| 70 | |
---|
| 71 | f0def.xml: f0.def f0defxml.m4 |
---|
| 72 | m4 f0defxml.m4 f0.def >f0def.xml |
---|
| 73 | |
---|
| 74 | model.def: f0-modeldef.m4 f0.def |
---|
| 75 | m4 f0-modeldef.m4 f0.def >model.def |
---|
| 76 | |
---|
| 77 | defassign-%.h: defassign.m4 f0.def |
---|
| 78 | m4 -DUSECLASS=$* defassign.m4 f0.def >$@ |
---|
| 79 | |
---|
| 80 | neurolibrary.cpp: neurocls-library.h |
---|
| 81 | neurofactory.cpp: neurocls-factory.h |
---|
| 82 | modelparts.cpp: f0classes.h defassign-f0_part.h defassign-f0_joint.h \ |
---|
| 83 | defassign-f0_neuro.h defassign-f0_neuroconn.h |
---|
| 84 | |
---|
| 85 | lemon: lemon.c |
---|
| 86 | $(CC) -o lemon lemon.c |
---|
| 87 | |
---|
| 88 | conv_f8tof1_grammar.c: lemon conv_f8tof1_grammar.y lempar.c |
---|
| 89 | ./lemon -q conv_f8tof1_grammar.y |
---|
| 90 | |
---|
| 91 | conv_f8tof1_scanner.h: conv_f8tof1_scanner.l |
---|
| 92 | flex++ --outfile=conv_f8tof1_scanner.cpp --header-file=conv_f8tof1_scanner.h conv_f8tof1_scanner.l |
---|
| 93 | |
---|
| 94 | ############# |
---|
| 95 | |
---|
| 96 | %.o : %.cpp |
---|
| 97 | $(CXX) -c $(CXXOPTS) $< |
---|
| 98 | |
---|
| 99 | %.a: |
---|
| 100 | rm -f $@ |
---|
| 101 | ar r $@ $^ |
---|
| 102 | ranlib $@ |
---|
| 103 | |
---|
| 104 | clean: |
---|
| 105 | rm -f *.o *~ *.bak *.a |
---|
| 106 | |
---|
| 107 | fullclean: clean |
---|
| 108 | rm -f $(TARGETS) $(AUTOGENERATED) |
---|
| 109 | |
---|
| 110 | prepare: $(AUTOGENERATED) depend |
---|
| 111 | rm -f Makefile.bak |
---|
| 112 | addhead ../gdk-head.txt *.h *.cpp |
---|
| 113 | |
---|
| 114 | depend: |
---|
| 115 | makedepend -Y *.cpp |
---|
| 116 | |
---|
| 117 | # DO NOT DELETE |
---|
| 118 | |
---|
| 119 | 3d.o: nonstd.h 3d.h framsg.h |
---|
| 120 | advlist.o: advlist.h list.h nonstd.h callbacks.h statrick.h |
---|
| 121 | callbacks.o: callbacks.h list.h nonstd.h statrick.h |
---|
| 122 | conv_f1.o: conv_f1.h genoconv.h geno.h sstring.h extvalue.h param.h list.h |
---|
| 123 | conv_f1.o: nonstd.h statrick.h virtfile.h model.h modelparts.h 3d.h |
---|
| 124 | conv_f1.o: sstringutils.h syntparam.h usertags.h paramtabobj.h advlist.h |
---|
| 125 | conv_f1.o: callbacks.h framsg.h multirange.h multimap.h |
---|
| 126 | conv_f8tof1.o: conv_f8tof1.h genoconv.h geno.h sstring.h extvalue.h param.h list.h |
---|
| 127 | conv_f8tof1.o: nonstd.h statrick.h virtfile.h model.h modelparts.h 3d.h |
---|
| 128 | conv_f8tof1.o: sstringutils.h syntparam.h usertags.h paramtabobj.h advlist.h |
---|
| 129 | conv_f8tof1.o: callbacks.h framsg.h multirange.h multimap.h conv_f8_utils.h |
---|
| 130 | #conv_f8tof1.o: conv_f8tof1_scanner.l conv_f8tof1_scanner.cpp |
---|
| 131 | conv_f8tof1.o: lemonglobal.h conv_f8tof1_scanner.h |
---|
| 132 | conv_f8tof1.o: conv_f8tof1_grammar.y conv_f8tof1_grammar.c |
---|
| 133 | conv_f8tof1_scanner.o: sstring.h conv_f8tof1_scanner.l conv_f8tof1_scanner.h |
---|
| 134 | conv_f8tof1_scanner.o: lexglobal.h lemonglobal.h |
---|
| 135 | conv_f8_utils.o: sstring.h |
---|
| 136 | geno_f8.o: geno_f8.h nonstd.h model.h framsg.h rndutil.h |
---|
| 137 | geno_f8.o: param.h sstring.h geno_fx.h multimap.h conv_f8tof1.h |
---|
| 138 | geno_f8.o: conv_f8_utils.h |
---|
| 139 | geno_fx.o: geno_fx.h nonstd.h model.h framsg.h rndutil.h |
---|
| 140 | convtest.o: genoconv.h geno.h sstring.h extvalue.h param.h list.h nonstd.h |
---|
| 141 | convtest.o: statrick.h virtfile.h model.h modelparts.h 3d.h sstringutils.h |
---|
| 142 | convtest.o: syntparam.h usertags.h paramtabobj.h advlist.h callbacks.h |
---|
| 143 | convtest.o: multimap.h multirange.h conv_f1.h printconvmap.h stdouterr.h |
---|
| 144 | convtest.o: errmanager.h framsg.h |
---|
| 145 | convtestmw.o: genoconv.h geno.h sstring.h extvalue.h param.h list.h nonstd.h |
---|
| 146 | convtestmw.o: statrick.h virtfile.h model.h modelparts.h 3d.h sstringutils.h |
---|
| 147 | convtestmw.o: syntparam.h usertags.h paramtabobj.h advlist.h callbacks.h |
---|
| 148 | convtestmw.o: multimap.h multirange.h conv_f1.h printconvmap.h stdouterr.h |
---|
| 149 | convtestmw.o: errmanager.h framsg.h conv_f8tof1.h conv_f8_utils.h geno_f8.h |
---|
| 150 | defgenoconv.o: defgenoconv.h genoconv.h geno.h sstring.h extvalue.h param.h |
---|
| 151 | defgenoconv.o: list.h nonstd.h statrick.h virtfile.h gen-config.h conv_f1.h |
---|
| 152 | defgenoconv.o: model.h modelparts.h 3d.h sstringutils.h syntparam.h |
---|
| 153 | defgenoconv.o: usertags.h paramtabobj.h advlist.h callbacks.h |
---|
| 154 | errmanager.o: errmanager.h list.h nonstd.h sstring.h framsg.h |
---|
| 155 | extvalue.o: extvalue.h sstring.h param.h list.h nonstd.h statrick.h |
---|
| 156 | extvalue.o: virtfile.h framsg.h |
---|
| 157 | framsg.o: nonstd.h framsg.h |
---|
| 158 | gdktest.o: model.h modelparts.h 3d.h genoconv.h geno.h sstring.h extvalue.h |
---|
| 159 | gdktest.o: param.h list.h nonstd.h statrick.h virtfile.h sstringutils.h |
---|
| 160 | gdktest.o: syntparam.h usertags.h paramtabobj.h advlist.h callbacks.h |
---|
| 161 | gdktest.o: defgenoconv.h stdouterr.h errmanager.h framsg.h |
---|
| 162 | genoconv.o: nonstd.h genoconv.h geno.h sstring.h extvalue.h param.h list.h |
---|
| 163 | genoconv.o: statrick.h virtfile.h multimap.h multirange.h |
---|
| 164 | geno.o: geno.h sstring.h extvalue.h param.h list.h nonstd.h statrick.h |
---|
| 165 | geno.o: virtfile.h genoconv.h model.h modelparts.h 3d.h sstringutils.h |
---|
| 166 | geno.o: syntparam.h usertags.h paramtabobj.h advlist.h callbacks.h |
---|
| 167 | genotest.o: geno.h sstring.h extvalue.h param.h list.h nonstd.h statrick.h |
---|
| 168 | genotest.o: virtfile.h genoconv.h stdiofile.h sstringutils.h defgenoconv.h |
---|
| 169 | genotypeloader.o: genotypeloader.h sstring.h multiparamload.h param.h list.h |
---|
| 170 | genotypeloader.o: nonstd.h statrick.h virtfile.h |
---|
| 171 | list.o: list.h nonstd.h |
---|
| 172 | loadertest.o: genotypeloader.h sstring.h multiparamload.h param.h list.h |
---|
| 173 | loadertest.o: nonstd.h statrick.h virtfile.h |
---|
| 174 | model.o: nonstd.h model.h modelparts.h 3d.h genoconv.h geno.h sstring.h |
---|
| 175 | model.o: extvalue.h param.h list.h statrick.h virtfile.h sstringutils.h |
---|
| 176 | model.o: syntparam.h usertags.h paramtabobj.h advlist.h callbacks.h framsg.h |
---|
| 177 | model.o: multimap.h multirange.h errmanager.h |
---|
| 178 | modelparts.o: modelparts.h 3d.h genoconv.h geno.h sstring.h extvalue.h |
---|
| 179 | modelparts.o: param.h list.h nonstd.h statrick.h virtfile.h sstringutils.h |
---|
| 180 | modelparts.o: syntparam.h usertags.h paramtabobj.h model.h advlist.h |
---|
| 181 | modelparts.o: callbacks.h neurolibrary.h multirange.h defassign-f0_neuro.h |
---|
| 182 | modelparts.o: defassign-f0_part.h defassign-f0_joint.h f0classes.h |
---|
| 183 | modelparts.o: defassign-f0_neuroconn.h |
---|
| 184 | multimap.o: multimap.h multirange.h list.h nonstd.h |
---|
| 185 | multiparamload.o: multiparamload.h param.h sstring.h list.h nonstd.h |
---|
| 186 | multiparamload.o: statrick.h virtfile.h framsg.h |
---|
| 187 | multirange.o: multirange.h list.h nonstd.h |
---|
| 188 | neurofactory.o: neurofactory.h modelparts.h 3d.h genoconv.h geno.h sstring.h |
---|
| 189 | neurofactory.o: extvalue.h param.h list.h nonstd.h statrick.h virtfile.h |
---|
| 190 | neurofactory.o: sstringutils.h syntparam.h usertags.h paramtabobj.h |
---|
| 191 | neurofactory.o: neuroimpl.h model.h advlist.h callbacks.h framsg.h |
---|
| 192 | neurofactory.o: neuroimplfiles.h neuroimpl-simple.h neuroimpl-channels.h |
---|
| 193 | neurofactory.o: neuroimpl-fuzzy.h neuroimpl-body-gdk.h neurocls-factory.h |
---|
| 194 | neuroimpl-channels.o: neuroimpl-channels.h neuroimpl.h model.h modelparts.h |
---|
| 195 | neuroimpl-channels.o: 3d.h genoconv.h geno.h sstring.h extvalue.h param.h |
---|
| 196 | neuroimpl-channels.o: list.h nonstd.h statrick.h virtfile.h sstringutils.h |
---|
| 197 | neuroimpl-channels.o: syntparam.h usertags.h paramtabobj.h advlist.h |
---|
| 198 | neuroimpl-channels.o: callbacks.h framsg.h |
---|
| 199 | neuroimpl.o: neuroimpl.h model.h modelparts.h 3d.h genoconv.h geno.h |
---|
| 200 | neuroimpl.o: sstring.h extvalue.h param.h list.h nonstd.h statrick.h |
---|
| 201 | neuroimpl.o: virtfile.h sstringutils.h syntparam.h usertags.h paramtabobj.h |
---|
| 202 | neuroimpl.o: advlist.h callbacks.h framsg.h neurofactory.h |
---|
| 203 | neuroimpl-fuzzy.o: neuroimpl-fuzzy.h neuroimpl.h model.h modelparts.h 3d.h |
---|
| 204 | neuroimpl-fuzzy.o: genoconv.h geno.h sstring.h extvalue.h param.h list.h |
---|
| 205 | neuroimpl-fuzzy.o: nonstd.h statrick.h virtfile.h sstringutils.h syntparam.h |
---|
| 206 | neuroimpl-fuzzy.o: usertags.h paramtabobj.h advlist.h callbacks.h framsg.h |
---|
| 207 | neuroimpl-fuzzy.o: neuroimpl-fuzzy-f0.h |
---|
| 208 | neuroimpl-fuzzy-f0.o: neuroimpl-fuzzy-f0.h sstring.h nonstd.h |
---|
| 209 | neuroimpl-simple.o: neuroimpl-simple.h neuroimpl.h model.h modelparts.h 3d.h |
---|
| 210 | neuroimpl-simple.o: genoconv.h geno.h sstring.h extvalue.h param.h list.h |
---|
| 211 | neuroimpl-simple.o: nonstd.h statrick.h virtfile.h sstringutils.h syntparam.h |
---|
| 212 | neuroimpl-simple.o: usertags.h paramtabobj.h advlist.h callbacks.h framsg.h |
---|
| 213 | neurolibrary.o: neurolibrary.h advlist.h list.h nonstd.h callbacks.h |
---|
| 214 | neurolibrary.o: statrick.h param.h sstring.h virtfile.h modelparts.h 3d.h |
---|
| 215 | neurolibrary.o: genoconv.h geno.h extvalue.h sstringutils.h syntparam.h |
---|
| 216 | neurolibrary.o: usertags.h paramtabobj.h neurocls-library.h |
---|
| 217 | neurotest.o: geno.h sstring.h extvalue.h param.h list.h nonstd.h statrick.h |
---|
| 218 | neurotest.o: virtfile.h genoconv.h stdiofile.h sstringutils.h defgenoconv.h |
---|
| 219 | neurotest.o: neuroimpl.h model.h modelparts.h 3d.h syntparam.h usertags.h |
---|
| 220 | neurotest.o: paramtabobj.h advlist.h callbacks.h framsg.h neurofactory.h |
---|
| 221 | neurotest.o: stdouterr.h errmanager.h |
---|
| 222 | param.o: param.h sstring.h list.h nonstd.h statrick.h virtfile.h extvalue.h |
---|
| 223 | param.o: framsg.h sstringutils.h |
---|
| 224 | paramobj.o: paramobj.h param.h sstring.h list.h nonstd.h statrick.h |
---|
| 225 | paramobj.o: virtfile.h extvalue.h |
---|
| 226 | paramtabobj.o: paramtabobj.h param.h sstring.h list.h nonstd.h statrick.h |
---|
| 227 | paramtabobj.o: virtfile.h |
---|
| 228 | printconvmap.o: printconvmap.h sstring.h multimap.h multirange.h list.h |
---|
| 229 | printconvmap.o: nonstd.h |
---|
| 230 | sstring.o: sstring.h nonstd.h |
---|
| 231 | sstringutils.o: sstringutils.h sstring.h virtfile.h framsg.h |
---|
| 232 | stdiofile-autoinit.o: stdiofile.h virtfile.h sstring.h |
---|
| 233 | stdiofile.o: stdiofile.h virtfile.h sstring.h nonstd.h nonstd_io.h |
---|
| 234 | stdouterr.o: stdouterr.h errmanager.h list.h nonstd.h sstring.h framsg.h |
---|
| 235 | syntparam.o: nonstd.h syntparam.h param.h sstring.h list.h statrick.h |
---|
| 236 | syntparam.o: virtfile.h paramobj.h |
---|
| 237 | virtfile.o: virtfile.h |
---|