]> 4ch.mooo.com Git - 16.git/blob - makefile
meh did some cleanings and i will work on mapread to mm thingy sometime soon! oops...
[16.git] / makefile
1 #
2 #       Higanbana Project makefile
3 #
4 #
5 # Possible optimizations for 8088 class processors
6 #
7 # -oa   Relax alias checking
8 # -ob   Try to generate straight line code
9 # -oe - expand user functions inline (-oe=20 is default, adds lots of code)
10 # -oh   Enable repeated optimizations
11 # -oi   generate certain lib funcs inline
12 # -oi+  Set max inline depth (C++ only, use -oi for C)
13 # -ok   Flowing of register save into function flow graph
14 # -ol   loop optimizations
15 # -ol+  loop optimizations plus unrolling
16 # -or   Reorder for pipelined (486+ procs); not sure if good to use
17 # -os   Favor space over time
18 # -ot   Favor time over space
19 # -ei   Allocate an "int" for all enum types
20 # -zp2  Allow compiler to add padding to structs
21 # -zpw  Use with above; make sure you are warning free!
22 # -0    8088/8086 class code generation
23 # -s    disable stack overflow checking
24
25 # -zk0u translate kanji to unicode... wwww
26 # -zk0  kanji support~
27 # -zkl          current codepage
28
29 # this enables debug output to the serial port.
30 # comment this out on game release.
31 # serial output goes to COM1 at 9600 baud 1 stop bit odd parity.
32 # serial output is plain text ASCII.
33 DEBUGSERIAL=1
34
35 #%.C
36 #192x144
37 #wwww will add these
38 !ifdef __LINUX__
39 REMOVECOMMAND=rm -f
40 COPYCOMMAND=cp -f
41 DIRSEP=/
42 OBJ=o
43 DUMP=cat
44 !else
45 REMOVECOMMAND=del
46 COPYCOMMAND=copy /y
47 DIRSEP=\
48 OBJ=obj
49 DUMP=type
50 !endif
51
52 TARGET_OS = dos
53
54 #EXMMTESTDIR=16$(DIRSEP)exmmtest$(DIRSEP)
55 PDIR=..$(DIRSEP)
56 SRC=src$(DIRSEP)
57 DATADIR=data$(DIRSEP)
58 SPRI=$(DATADIR)$(DIRSEP)spri$(DIRSEP)
59 SRCLIB=$(SRC)lib$(DIRSEP)
60 JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)
61 NYANLIB=$(SRCLIB)nyan$(DIRSEP)
62 #EXMMLIB=$(SRCLIB)exmm$(DIRSEP)
63 MODEXLIB=$(SRCLIB)modex16$(DIRSEP)
64 MODEXLIB_=$(SRCLIB)modex$(DIRSEP)
65 VGMSNDLIB=$(SRCLIB)vgmsnd$(DIRSEP)
66 DOSLIB=$(SRCLIB)doslib$(DIRSEP)
67 DOSLIBDIR=$(SRCLIB)doslib
68 WCPULIB=$(SRCLIB)wcpu$(DIRSEP)
69
70 #
71 # quiet flags
72 #
73 WLIBQ=-q
74 WCLQ=-zq $(WLIBQ)
75 UPXQ=-qqq
76
77 #
78 # compile flags
79 #
80 AFLAGS=-mh -0 -d1
81 SFLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k32768#54096#60000
82 DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS)
83 ZFLAGS=-zk0 -zc -zp8 -zm $(WCLQ)
84 LFLAGS=-lr -l=dos
85 CFLAGS=$(AFLAGS) $(IFLAGS) -wo -i$(DOSLIB) $(LFLAGS)
86 OFLAGS=-obmilr -oe=24 -out -oh -ei -zp8 -fpi87  -onac -ol+ -ok####x
87 FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)
88
89 #
90 # objects
91 #
92 VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ)
93 DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)
94 16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) 16_dbg.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) 16_timer.$(OBJ)
95
96 GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) 16planar.$(OBJ) 16_vrs.$(OBJ) $(DOSLIBLIBS)
97
98 DOSLIBLIBS=$(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu$(DIRSEP)dos86h$(DIRSEP)cpu.lib $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos$(DIRSEP)dos86h$(DIRSEP)dos.lib $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vga.lib
99
100 !ifeq DEBUGSERIAL 1
101 FLAGS += -DDEBUGSERIAL
102 DOSLIBOBJ += 8250.$(OBJ)
103 DOSLIBLIBS += $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250$(DIRSEP)dos86h$(DIRSEP)8250.lib
104 !endif
105
106 TESTEXEC = test.exe test0.exe pcxtest.exe pcxtest2.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe scroll.exe vgmtest.exe inputest.exe palettel.exe planrpcx.exe exmmtest.exe
107
108 EXEC = 16.exe bakapi.exe tesuto.exe 0.exe $(TESTEXEC)
109
110 all: $(EXEC) joytest.exe
111 #16.lib => $(16LIBOBJS) bug....
112 16LIB=$(16LIBOBJS)
113 #16LIB=16.lib
114
115 !ifeq DEBUGSERIAL 1
116 16LIBOBJS += $(DOSLIBLIBS)
117 !endif
118 #
119 #game and bakapi executables
120 #
121 16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib
122         wcl $(FLAGS) $(16FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=16.mah
123
124 bakapi.exe: bakapi.$(OBJ) gfx.lib $(DOSLIBLIBS)
125         wcl $(FLAGS) $(BAKAPIFLAGS) bakapi.$(OBJ) gfx.lib $(DOSLIBLIBS) -fm=bakapi.mah
126 #modex.lib
127 #
128 #Test Executables!
129 #
130 scroll.exe: scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib
131         wcl $(FLAGS) scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=scroll.mah
132 scroll.$(OBJ): $(SRC)scroll.c
133         wcl $(FLAGS) -c $(SRC)scroll.c
134
135
136 # NOTE: dos86h = 16-bit huge memory model. memory model must match!
137 tesuto.exe: tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
138 #       %write tmp.cmd option quiet option max=tesuto.mah $(DOSLIB_LDFLAGS_DOS16H) file tesuto.obj name tesuto.exe
139 #       %write tmp.cmd library $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu$(DIRSEP)dos86h$(DIRSEP)cpu.lib
140 #       %write tmp.cmd library $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos$(DIRSEP)dos86h$(DIRSEP)dos.lib
141 #       @wlink @tmp.cmd
142
143 #
144 # add this ww to reduce junk www
145 #
146 # NTS we have to construct the command line into tmp.cmd because for MS-DOS
147 # systems all arguments would exceed the pitiful 128 char command line limit
148 #.C.OBJ:
149 #       %write temp.cmd $(CFLAGS_THIS) $(CFLAGS_CON) $[@
150 #       wcl @temp.cmd
151 #
152         wcl $(FLAGS) $(WCLQ) tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
153 tesuto.$(OBJ): $(SRC)tesuto.c
154         wcl $(FLAGS) $(WCLQ) -c $(SRC)tesuto.c
155
156 0.exe: 0.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
157         wcl $(FLAGS) $(WCLQ) 0.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
158 0.$(OBJ): $(SRC)0.c
159         wcl $(FLAGS) $(WCLQ) -c $(SRC)0.c
160
161 test.exe: test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) $(DOSLIBLIBS) $(16LIB)
162         wcl $(FLAGS) test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) $(DOSLIBLIBS) $(16LIB) -fm=test.mah
163
164 test2.exe: test2.$(OBJ) $(DOSLIBLIBS) gfx.lib
165         wcl $(FLAGS) test2.$(OBJ) $(DOSLIBLIBS) gfx.lib -fm=test2.mah
166
167 test0.exe: test0.$(OBJ)
168         wcl $(FLAGS) test0.$(OBJ) -fm=test0.mah
169
170 fonttest.exe: fonttest.$(OBJ) $(16LIB) gfx.lib
171         wcl $(FLAGS) fonttest.$(OBJ) $(16LIB) gfx.lib -fm=fonttest.mah
172
173 #fonttes0.exe: fonttes0.$(OBJ) $(16LIB)
174 #       wcl $(FLAGS) fonttes0.$(OBJ) $(16LIB)
175
176 fontgfx.exe: fontgfx.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
177         wcl $(FLAGS) fontgfx.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS) -fm=fontgfx.mah
178
179 inputest.exe: inputest.$(OBJ) $(16LIB)
180         wcl $(FLAGS) inputest.$(OBJ) $(16LIB) -fm=inputest.mah
181
182 #sountest.exe: sountest.$(OBJ) $(16LIB)
183 #       wcl $(FLAGS) sountest.$(OBJ) $(16LIB)
184
185 pcxtest.exe: pcxtest.$(OBJ) gfx.lib
186         wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib -fm=pcxtest.mah
187
188 palettec.exe: palettec.$(OBJ) gfx.lib #$(16LIB)
189         wcl $(FLAGS) palettec.$(OBJ) gfx.lib -fm=palettec.mah #$(16LIB)
190
191 palettel.exe: palettel.$(OBJ) gfx.lib #$(16LIB)
192         wcl $(FLAGS) palettel.$(OBJ) gfx.lib -fm=palettel.mah #$(16LIB)
193
194 pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib
195         wcl $(FLAGS) pcxtest2.$(OBJ) gfx.lib -fm=pcxtest2.mah
196
197 planrpcx.exe: planrpcx.$(OBJ) gfx.lib
198         wcl $(FLAGS) planrpcx.$(OBJ) gfx.lib -fm=planrpcx.mah
199
200 maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib
201         wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=maptest.mah
202
203 fmemtest.exe: fmemtest.$(OBJ) $(16LIB)
204         wcl $(FLAGS) fmemtest.$(OBJ) $(16LIB) -fm=fmemtest.mah
205
206 exmmtest.exe: exmmtest.$(OBJ) 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) 16_hc.$(OBJ) kitten.$(OBJ)
207         wcl $(FLAGS) exmmtest.$(OBJ) -fm=exmmtest.mah $(16LIB)
208 ####0000        ./wlink32 @__wcl__.lnk
209
210 vgmtest.exe: vgmtest.$(OBJ) vgmsnd.lib $(16LIB)
211         wcl $(FLAGS) vgmtest.$(OBJ) vgmsnd.lib -fm=vgmtest.mah $(16LIB)
212         #====wcl -mc vgmtest.$(OBJ) $(VGMSNDOBJ) -fm=vgmtest.mah
213
214
215 #
216 #executable's objects
217 #
218 16.$(OBJ): $(SRC)16.h $(SRC)16.c
219         wcl $(FLAGS) -c $(SRC)16.c
220
221 bakapi.$(OBJ): $(SRC)bakapi.h $(SRC)bakapi.c
222         wcl $(FLAGS) -c $(SRC)bakapi.c
223
224 test.$(OBJ): $(SRC)test.c $(SRCLIB)modex16.h
225         wcl $(FLAGS) -c $(SRC)test.c
226
227 test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h
228         wcl $(FLAGS) -c $(SRC)test2.c
229
230 test0.$(OBJ): $(SRC)test0.c
231         wcl $(FLAGS) -c $(SRC)test0.c
232
233 pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h
234         wcl $(FLAGS) -c $(SRC)pcxtest.c
235
236 planrpcx.$(OBJ): $(SRC)planrpcx.c $(SRCLIB)modex16.h
237         wcl $(FLAGS) -c $(SRC)planrpcx.c
238
239 pcxtest2.$(OBJ): $(SRC)pcxtest2.c $(SRCLIB)modex16.h
240         wcl $(FLAGS) -c $(SRC)pcxtest2.c
241
242 palettec.$(OBJ): $(SRC)palettec.c
243         wcl $(FLAGS) -c $(SRC)palettec.c
244
245 palettel.$(OBJ): $(SRC)palettel.c
246         wcl $(FLAGS) -c $(SRC)palettel.c
247
248 maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h
249         wcl $(FLAGS) -c $(SRC)maptest.c
250
251 #maptest0.$(OBJ): $(SRC)maptest0.c# $(SRCLIB)modex16.h
252 #       wcl $(FLAGS) $(MFLAGS) -c $(SRC)maptest0.c
253
254 #emmtest.$(OBJ): $(SRC)emmtest.c
255 #       wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c
256
257 #emsdump.$(OBJ): $(SRC)emsdump.c
258 #       wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c
259
260 fmemtest.$(OBJ): $(SRC)fmemtest.c
261         wcl $(FLAGS) -c $(SRC)fmemtest.c
262
263 fonttest.$(OBJ): $(SRC)fonttest.c
264         wcl $(FLAGS) -c $(SRC)fonttest.c
265
266 #fonttes0.$(OBJ): $(SRC)fonttes0.c
267 #       wcl $(FLAGS) -c $(SRC)fonttes0.c
268
269 fontgfx.$(OBJ): $(SRC)fontgfx.c
270         wcl $(FLAGS) -c $(SRC)fontgfx.c
271
272 inputest.$(OBJ): $(SRC)inputest.c
273         wcl $(FLAGS) -c $(SRC)inputest.c
274
275 #sountest.$(OBJ): $(SRC)sountest.c
276 #       wcl $(FLAGS) -c $(SRC)sountest.c
277
278 #miditest.$(OBJ): $(SRC)miditest.c
279 #       wcl $(FLAGS) -c $(SRC)miditest.c
280
281 #testemm.$(OBJ): $(SRC)testemm.c
282 #       wcl $(FLAGS) -c $(SRC)testemm.c
283
284 #testemm0.$(OBJ): $(SRC)testemm0.c
285 #       wcl $(FLAGS) -c $(SRC)testemm0.c
286
287 tsthimem.$(OBJ): $(SRC)tsthimem.c
288         wcl $(FLAGS) -c $(SRC)tsthimem.c
289
290 exmmtest.$(OBJ): $(SRC)exmmtest.c
291         wcl $(FLAGS) -c $(SRC)exmmtest.c 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) 16_hc.$(OBJ) kitten.$(OBJ)
292
293 vgmtest.$(OBJ): $(SRC)vgmtest.c
294         wcl $(FLAGS) -c $(SRC)vgmtest.c
295         #====wcl -mc -c $(SRC)vgmtest.c
296
297 #
298 #non executable objects libraries
299 #
300 16.lib: $(16LIBOBJS)# doslib.lib vgmsnd.lib
301         wlib -b $(WLIBQ) 16.lib $(16LIBOBJS)# doslib.lib vgmsnd.lib
302
303 gfx.lib: $(GFXLIBOBJS) 16_in.$(OBJ) 16_head.$(OBJ)
304         wlib -b $(WLIBQ) gfx.lib $(GFXLIBOBJS) 16_in.$(OBJ) 16_head.$(OBJ)
305
306 vgmsnd.lib: $(VGMSNDOBJ)
307         wlib -b $(WLIBQ) vgmsnd.lib $(VGMSNDOBJ)
308
309 # extdep:
310 # !include $(DOSLIBDIR)$(DIRSEP)extdep.mak
311
312 # library deps 16-bit huge
313 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu$(DIRSEP)dos86h$(DIRSEP)cpu.lib:
314         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu && .$(DIRSEP)make.sh
315 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos$(DIRSEP)dos86h$(DIRSEP)dos.lib:
316         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos && .$(DIRSEP)make.sh
317 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vgatty.lib:
318         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh
319 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vga.lib:
320         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh
321 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250$(DIRSEP)dos86h$(DIRSEP)8250.lib:
322         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250 && .$(DIRSEP)make.sh
323
324 joytest.exe:
325         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)joystick && .$(DIRSEP)make.sh && $(COPYCOMMAND) dos86h$(DIRSEP)test.exe $(PDIR)$(PDIR)$(PDIR)$(PDIR)$(PDIR)joytest.exe
326 #$(DOSLIBLIBS): .symbolic
327 #       @cd $(DOSLIB)
328 #       @.$(DIRSEP)buildall.sh
329 #       @cd $(PDIR)$(PDIR)$(PDIR)
330
331 modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c
332         wcl $(FLAGS) -c $(SRCLIB)modex16.c
333
334 bakapee.$(OBJ): $(SRCLIB)bakapee.h $(SRCLIB)bakapee.c
335         wcl $(FLAGS) -c $(SRCLIB)bakapee.c
336
337 16render.$(OBJ): $(MODEXLIB)16render.h $(MODEXLIB)16render.c
338         wcl $(FLAGS) -c $(MODEXLIB)16render.c
339
340 16planar.$(OBJ): $(MODEXLIB)16planar.h $(MODEXLIB)16planar.c
341         wcl $(FLAGS) -c $(MODEXLIB)16planar.c
342
343 16_vrs.$(OBJ): $(SRCLIB)16_vrs.h $(SRCLIB)16_vrs.c
344         wcl $(FLAGS) -c $(SRCLIB)16_vrs.c
345
346 bitmap.$(OBJ): $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c
347         wcl $(FLAGS) -c $(SRCLIB)bitmap.c
348
349 planar.$(OBJ): $(SRCLIB)planar.h $(SRCLIB)planar.c
350         wcl $(FLAGS) -c $(SRCLIB)planar.c
351
352 scroll16.$(OBJ): $(SRCLIB)scroll16.h $(SRCLIB)scroll16.c
353         wcl $(FLAGS) -c $(SRCLIB)scroll16.c
354
355 wcpu.$(OBJ): $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c
356         wcl $(FLAGS) -c $(WCPULIB)wcpu.c
357
358 16text.$(OBJ): $(SRCLIB)16text.c
359         wcl $(FLAGS) -c $(SRCLIB)16text.c
360
361 mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c
362         wcl $(FLAGS) -c $(SRCLIB)mapread.c
363
364 16_timer.$(OBJ): $(SRCLIB)16_timer.h $(SRCLIB)16_timer.c
365         wcl $(FLAGS) -c $(SRCLIB)16_timer.c
366
367 16_in.$(OBJ): $(SRCLIB)16_in.h $(SRCLIB)16_in.c
368         wcl $(FLAGS) -c $(SRCLIB)16_in.c
369
370 16_mm.$(OBJ): $(SRCLIB)16_mm.h $(SRCLIB)16_mm.c
371         wcl $(FLAGS) -c $(SRCLIB)16_mm.c
372
373 16_ca.$(OBJ): $(SRCLIB)16_ca.h $(SRCLIB)16_ca.c
374         wcl $(FLAGS) -c $(SRCLIB)16_ca.c
375
376 16_dbg.$(OBJ): $(SRCLIB)16_dbg.h $(SRCLIB)16_dbg.c
377         wcl $(FLAGS) -c $(SRCLIB)16_dbg.c
378
379 midi.$(OBJ): $(SRCLIB)midi.h $(SRCLIB)midi.c
380         wcl $(FLAGS) -c $(SRCLIB)midi.c
381
382 16_head.$(OBJ): $(SRCLIB)16_head.h $(SRCLIB)16_head.c
383         wcl $(FLAGS) -c $(SRCLIB)16_head.c
384
385 16_hc.$(OBJ): $(SRCLIB)16_hc.h $(SRCLIB)16_hc.c
386         wcl $(FLAGS) -c $(SRCLIB)16_hc.c
387
388 16_snd.$(OBJ): $(SRCLIB)16_snd.h $(SRCLIB)16_snd.c
389         wcl $(FLAGS) -c $(SRCLIB)16_snd.c
390         #====wcl -mc -c $(SRCLIB)16_snd.c
391
392 jsmn.$(OBJ): $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c
393         wcl $(FLAGS) -c $(JSMNLIB)jsmn.c
394
395 kitten.$(OBJ): $(NYANLIB)kitten.h $(NYANLIB)kitten.c
396         wcl $(FLAGS) -c $(NYANLIB)kitten.c
397
398 vgmSnd.$(OBJ): $(VGMSNDLIB)vgmSnd.h $(VGMSNDLIB)vgmSnd.c
399         wcl $(FLAGS) -c $(VGMSNDLIB)vgmSnd.c
400         #====wcl -c -mc $(VGMSNDLIB)vgmSnd.c
401
402 #memory.$(OBJ): $(EXMMLIB)memory.h $(EXMMLIB)memory.c
403 #       wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c
404
405 c_utils.$(OBJ): $(MODEXLIB_)c_utils.asm
406         wcl -c $(AFLAGS) $(MODEXLIB_)c_utils.asm
407 modex.$(OBJ): $(MODEXLIB_)modex.asm
408         wcl -c $(AFLAGS) $(MODEXLIB_)modex.asm
409
410 #
411 #other~
412 #
413 clean: .symbolic
414         @$(REMOVECOMMAND) $(EXEC)
415         @$(REMOVECOMMAND) /var/www/$(EXEC)*
416         @$(REMOVECOMMAND) *.$(OBJ)
417         @$(REMOVECOMMAND) 16.lib
418         @$(REMOVECOMMAND) gfx.lib
419         @$(REMOVECOMMAND) vgmsnd.lib
420         @wlib -n $(WLIBQ) 16.lib
421         @wlib -n $(WLIBQ) gfx.lib
422         @wlib -n $(WLIBQ) vgmsnd.lib
423         @$(REMOVECOMMAND) *.16
424         @$(REMOVECOMMAND) *.16W
425         @$(REMOVECOMMAND) *.16B
426         @$(REMOVECOMMAND) *.OBJ
427         @$(REMOVECOMMAND) *.o
428         @$(REMOVECOMMAND) *.BCO
429         @$(REMOVECOMMAND) makefi~1
430         @$(REMOVECOMMAND) makefile~
431         @$(REMOVECOMMAND) __wcl__.LNK
432 #       @$(REMOVECOMMAND) *.smp
433         @$(REMOVECOMMAND) *.SMP
434         @$(REMOVECOMMAND) *.hed
435         @$(REMOVECOMMAND) *.MAH
436         @$(REMOVECOMMAND) *.mah
437         @$(REMOVECOMMAND) *.err
438         #@cd $(DOSLIB)
439         #@./buildall.sh clean
440         #@cd $(PDIR)$(PDIR)$(PDIR)
441 #       @$(COPYCOMMAND) $(SRC)exmmtest.c $(EXMMTESTDIR)$(SRC)
442 #       @$(COPYCOMMAND) $(SRCLIB)16_mm.* $(EXMMTESTDIR)$(SRCLIB)
443 #       @$(COPYCOMMAND) $(SRCLIB)16_head.* $(EXMMTESTDIR)$(SRCLIB)
444 #       @$(COPYCOMMAND) $(SRCLIB)16_ca.* $(EXMMTESTDIR)$(SRCLIB)
445 #       @$(COPYCOMMAND) $(SRCLIB)16_hc.* $(EXMMTESTDIR)$(SRCLIB)
446 #       @$(COPYCOMMAND) $(SRCLIB)types.h $(EXMMTESTDIR)$(SRCLIB)
447 #       @$(COPYCOMMAND) $(NYANLIB)* $(EXMMTESTDIR)$(NYANLIB)
448 #       @echo $(watcom)
449 #       @echo $(INCLUDE)
450
451 backupconfig: .symbolic
452         @$(COPYCOMMAND) .git$(DIRSEP)config git_con.fig
453         @$(COPYCOMMAND) .gitmodules git_modu.les
454         @$(COPYCOMMAND) .gitignore git_igno.re
455
456 comp: .symbolic
457         @upx -9 $(EXEC)
458
459 comq: .symbolic
460         @upx -9 $(UPXQ) $(EXEC)
461
462 www: .symbolic
463         @ssh -p 26 sparky4@4ch.mooo.com 'rm -f /var/www/16/*exe.zip*'
464         @rm -f /var/www/*.exe.zip*
465         #@cp ./$(EXEC) $(DIRSEP)var$(DIRSEP)www$(DIRSEP)
466         @./src/util/z.sh $(EXEC) $(EXEC)
467         @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/
468         @scp -r -P 26 /var/www/*.exe.zip.* 4ch.mooo.com:/var/www/16/
469
470 getwww: .symbolic
471         @x4get.bat $(EXEC)
472
473 vomitchan: .symbolic
474         @$(DUMP) *.err
475
476 ##
477 ##      External library management~ ^^
478 ##
479 #git submodule add <repo>
480 mkdl: .symbolic
481         @cd $(DOSLIB)
482         @./buildall.sh
483         @cd $(PDIR)$(PDIR)$(PDIR)
484
485 uplibs: .symbolic
486         @cd $(JSMNLIB)
487         @git pull
488         @cd $(PDIR)$(PDIR)$(PDIR)
489         @cd $(DOSLIB)
490         @git pull
491         @cd $(PDIR)$(PDIR)$(PDIR)
492
493 reinitlibs: .symbolic
494         @rm -rf $(SRCLIB)doslib
495         @rm -rf $(SRCLIB)jsmn
496         @rm -rf 16/CatacombApocalypse
497         @rm -rf 16/wolf3d
498         @rm -rf 16/keen
499         @wmake -h initlibs
500
501 initlibs: .symbolic
502         @cp git_con.fig .git/config
503         @cp git_modu.les .gitmodules
504         @cp git_igno.re .gitignore
505         @cd $(SRCLIB)
506         @git clone https://github.com/joncampbell123/doslib.git
507         @git clone https://github.com/zserge/jsmn.git
508         @cd $(PDIR)$(PDIR)
509         @cd 16
510         @git clone https://github.com/FlatRockSoft/CatacombApocalypse.git
511         @git clone https://github.com/id-Software/wolf3d.git
512         @git clone https://github.com/keendreams/keen.git
513         @cd $(PDIR)
514
515 ##
516 ##      experimental libs
517 ##
518 xlib: .symbolic
519         @cd 16$(DIRSEP)xlib
520         @wmake -h clean
521         @wmake -h all
522         @cd $(PDIR)$(PDIR)
523
524 mx: .symbolic
525         @cd 16$(DIRSEP)xw
526 #       @wmake clean
527         @wmake -h all
528         @cd $(PDIR)$(PDIR)
529
530 mx_: .symbolic
531         @cd 16$(DIRSEP)xw_
532         @wmake -h -f makefile all
533         @cd $(PDIR)$(PDIR)
534
535 vrs: .symbolic
536         @cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga
537         #@make clean
538         @make all
539         @mv pcx2vrl ../../../../../
540         @mv pcxsscut ../../../../../
541         @mv vrl2vrs ../../../../../
542         @mv vrsdump ../../../../../
543         @cd ../../../../../