]> 4ch.mooo.com Git - 16.git/blob - makefile
tesuto0 made for understanding doslib fast rendering~
[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 !else
44 REMOVECOMMAND=del
45 COPYCOMMAND=copy /y
46 DIRSEP=\
47 OBJ=obj
48 !endif
49
50 TARGET_OS = dos
51
52 #EXMMTESTDIR=16$(DIRSEP)exmmtest$(DIRSEP)
53 PDIR=..$(DIRSEP)
54 SRC=src$(DIRSEP)
55 DATADIR=data$(DIRSEP)
56 SPRI=$(DATADIR)$(DIRSEP)spri$(DIRSEP)
57 SRCLIB=$(SRC)lib$(DIRSEP)
58 JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)
59 NYANLIB=$(SRCLIB)nyan$(DIRSEP)
60 #EXMMLIB=$(SRCLIB)exmm$(DIRSEP)
61 MODEXLIB=$(SRCLIB)modex16$(DIRSEP)
62 MODEXLIB_=$(SRCLIB)modex$(DIRSEP)
63 VGMSNDLIB=$(SRCLIB)vgmsnd$(DIRSEP)
64 DOSLIB=$(SRCLIB)doslib$(DIRSEP)
65 DOSLIBDIR=$(SRCLIB)doslib
66 WCPULIB=$(SRCLIB)wcpu$(DIRSEP)
67
68 WLIBQ=-q
69 WCLQ=-zq $(WLIBQ)
70 UPXQ=-qqq
71
72 AFLAGS=-mh -0 -d1
73 16FLAGS=-fh=16.hed
74 BAKAPIFLAGS=-fh=bakapi.hed
75 SFLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k32768#54096#60000
76 DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS)
77 ZFLAGS=-zk0 -zc -zp8 $(WCLQ) ## -zm
78 CFLAGS=$(AFLAGS) $(IFLAGS)-lr -l=dos -wo -i$(DOSLIB)##wwww
79 OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87  -onac -ol+ -ok####x
80 FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)
81
82
83 VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ)
84 DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)
85 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)
86
87 GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) 16planar.$(OBJ) $(DOSLIBLIBS)
88
89 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
90
91 !ifeq DEBUGSERIAL 1
92 FLAGS += -DDEBUGSERIAL
93 DOSLIBOBJ += 8250.$(OBJ)
94 DOSLIBLIBS += $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250$(DIRSEP)dos86h$(DIRSEP)8250.lib
95 !endif
96
97 TESTEXEC = exmmtest.exe 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
98
99 EXEC = 16.exe bakapi.exe $(TESTEXEC) tesuto.exe tesuto0.exe
100
101 all: $(EXEC) joytest.exe vrs
102 #16.lib => $(16LIBOBJS) bug....
103 16LIB=$(16LIBOBJS)
104 !ifeq DEBUGSERIAL 1
105 16LIB += $(DOSLIBLIBS)
106 !endif
107 #
108 #game and bakapi executables
109 #
110 16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib
111         wcl $(FLAGS) $(16FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=16.mah
112
113 bakapi.exe: bakapi.$(OBJ) gfx.lib $(DOSLIBLIBS)
114         wcl $(FLAGS) $(BAKAPIFLAGS) bakapi.$(OBJ) gfx.lib $(DOSLIBLIBS) -fm=bakapi.mah
115 #modex.lib
116 #
117 #Test Executables!
118 #
119 scroll.exe: scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib
120         wcl $(FLAGS) scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=scroll.mah
121 scroll.$(OBJ): $(SRC)scroll.c
122         wcl $(FLAGS) -c $(SRC)scroll.c
123
124
125 # NOTE: dos86h = 16-bit huge memory model. memory model must match!
126 tesuto.exe: tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
127 #       %write tmp.cmd option quiet option max=tesuto.mah $(DOSLIB_LDFLAGS_DOS16H) file tesuto.obj name tesuto.exe
128 #       %write tmp.cmd library $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu$(DIRSEP)dos86h$(DIRSEP)cpu.lib
129 #       %write tmp.cmd library $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos$(DIRSEP)dos86h$(DIRSEP)dos.lib
130 #       @wlink @tmp.cmd
131         wcl $(FLAGS) $(WCLQ) tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
132 tesuto.$(OBJ): $(SRC)tesuto.c
133         wcl $(FLAGS) $(WCLQ) -c $(SRC)tesuto.c
134
135 tesuto0.exe: tesuto0.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
136         wcl $(FLAGS) $(WCLQ) tesuto0.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib
137 tesuto0.$(OBJ): $(SRC)tesuto0.c
138         wcl $(FLAGS) $(WCLQ) -c $(SRC)tesuto0.c
139
140 test.exe: test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) $(DOSLIBLIBS) $(16LIB)
141         wcl $(FLAGS) test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) $(DOSLIBLIBS) $(16LIB) -fm=test.mah
142
143 test2.exe: test2.$(OBJ) $(DOSLIBLIBS) gfx.lib
144         wcl $(FLAGS) test2.$(OBJ) $(DOSLIBLIBS) gfx.lib -fm=test2.mah
145
146 test0.exe: test0.$(OBJ)
147         wcl $(FLAGS) test0.$(OBJ) -fm=test0.mah
148
149 fonttest.exe: fonttest.$(OBJ) $(16LIB) gfx.lib
150         wcl $(FLAGS) fonttest.$(OBJ) $(16LIB) gfx.lib -fm=fonttest.mah
151
152 #fonttes0.exe: fonttes0.$(OBJ) $(16LIB)
153 #       wcl $(FLAGS) fonttes0.$(OBJ) $(16LIB)
154
155 fontgfx.exe: fontgfx.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
156         wcl $(FLAGS) fontgfx.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS) -fm=fontgfx.mah
157
158 inputest.exe: inputest.$(OBJ) $(16LIB)
159         wcl $(FLAGS) inputest.$(OBJ) $(16LIB) -fm=inputest.mah
160
161 #sountest.exe: sountest.$(OBJ) $(16LIB)
162 #       wcl $(FLAGS) sountest.$(OBJ) $(16LIB)
163
164 pcxtest.exe: pcxtest.$(OBJ) gfx.lib
165         wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib -fm=pcxtest.mah
166
167 palettec.exe: palettec.$(OBJ) gfx.lib #$(16LIB)
168         wcl $(FLAGS) palettec.$(OBJ) gfx.lib -fm=palettec.mah #$(16LIB)
169
170 palettel.exe: palettel.$(OBJ) gfx.lib #$(16LIB)
171         wcl $(FLAGS) palettel.$(OBJ) gfx.lib -fm=palettel.mah #$(16LIB)
172
173 pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib
174         wcl $(FLAGS) pcxtest2.$(OBJ) gfx.lib -fm=pcxtest2.mah
175
176 planrpcx.exe: planrpcx.$(OBJ) gfx.lib
177         wcl $(FLAGS) planrpcx.$(OBJ) gfx.lib -fm=planrpcx.mah
178
179 maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib
180         wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=maptest.mah
181
182 fmemtest.exe: fmemtest.$(OBJ) $(16LIB)
183         wcl $(FLAGS) fmemtest.$(OBJ) $(16LIB) -fm=fmemtest.mah
184
185 exmmtest.exe: exmmtest.$(OBJ) $(16LIB)
186         wcl $(FLAGS) exmmtest.$(OBJ) -fm=exmmtest.mah $(16LIB)
187
188 vgmtest.exe: vgmtest.$(OBJ) vgmsnd.lib $(16LIB)
189         wcl $(FLAGS) vgmtest.$(OBJ) vgmsnd.lib -fm=vgmtest.mah $(16LIB)
190         #====wcl -mc vgmtest.$(OBJ) $(VGMSNDOBJ) -fm=vgmtest.mah
191
192
193 #
194 #executable's objects
195 #
196 16.$(OBJ): $(SRC)16.h $(SRC)16.c
197         wcl $(FLAGS) -c $(SRC)16.c
198
199 bakapi.$(OBJ): $(SRC)bakapi.h $(SRC)bakapi.c
200         wcl $(FLAGS) -c $(SRC)bakapi.c
201
202 test.$(OBJ): $(SRC)test.c $(SRCLIB)modex16.h
203         wcl $(FLAGS) -c $(SRC)test.c
204
205 test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h
206         wcl $(FLAGS) -c $(SRC)test2.c
207
208 test0.$(OBJ): $(SRC)test0.c
209         wcl $(FLAGS) -c $(SRC)test0.c
210
211 pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h
212         wcl $(FLAGS) -c $(SRC)pcxtest.c
213
214 planrpcx.$(OBJ): $(SRC)planrpcx.c $(SRCLIB)modex16.h
215         wcl $(FLAGS) -c $(SRC)planrpcx.c
216
217 pcxtest2.$(OBJ): $(SRC)pcxtest2.c $(SRCLIB)modex16.h
218         wcl $(FLAGS) -c $(SRC)pcxtest2.c
219
220 palettec.$(OBJ): $(SRC)palettec.c
221         wcl $(FLAGS) -c $(SRC)palettec.c
222
223 palettel.$(OBJ): $(SRC)palettel.c
224         wcl $(FLAGS) -c $(SRC)palettel.c
225
226 maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h
227         wcl $(FLAGS) -c $(SRC)maptest.c
228
229 #maptest0.$(OBJ): $(SRC)maptest0.c# $(SRCLIB)modex16.h
230 #       wcl $(FLAGS) $(MFLAGS) -c $(SRC)maptest0.c
231
232 #emmtest.$(OBJ): $(SRC)emmtest.c
233 #       wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c
234
235 #emsdump.$(OBJ): $(SRC)emsdump.c
236 #       wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c
237
238 fmemtest.$(OBJ): $(SRC)fmemtest.c
239         wcl $(FLAGS) -c $(SRC)fmemtest.c
240
241 fonttest.$(OBJ): $(SRC)fonttest.c
242         wcl $(FLAGS) -c $(SRC)fonttest.c
243
244 #fonttes0.$(OBJ): $(SRC)fonttes0.c
245 #       wcl $(FLAGS) -c $(SRC)fonttes0.c
246
247 fontgfx.$(OBJ): $(SRC)fontgfx.c
248         wcl $(FLAGS) -c $(SRC)fontgfx.c
249
250 inputest.$(OBJ): $(SRC)inputest.c
251         wcl $(FLAGS) -c $(SRC)inputest.c
252
253 #sountest.$(OBJ): $(SRC)sountest.c
254 #       wcl $(FLAGS) -c $(SRC)sountest.c
255
256 #miditest.$(OBJ): $(SRC)miditest.c
257 #       wcl $(FLAGS) -c $(SRC)miditest.c
258
259 #testemm.$(OBJ): $(SRC)testemm.c
260 #       wcl $(FLAGS) -c $(SRC)testemm.c
261
262 #testemm0.$(OBJ): $(SRC)testemm0.c
263 #       wcl $(FLAGS) -c $(SRC)testemm0.c
264
265 tsthimem.$(OBJ): $(SRC)tsthimem.c
266         wcl $(FLAGS) -c $(SRC)tsthimem.c
267
268 exmmtest.$(OBJ): $(SRC)exmmtest.c
269         wcl $(FLAGS) -c $(SRC)exmmtest.c
270
271 vgmtest.$(OBJ): $(SRC)vgmtest.c
272         wcl $(FLAGS) -c $(SRC)vgmtest.c
273         #====wcl -mc -c $(SRC)vgmtest.c
274
275 #
276 #non executable objects libraries
277 #
278 16.lib: $(16LIBOBJS)# doslib.lib vgmsnd.lib
279         wlib -b $(WLIBQ) 16.lib $(16LIBOBJS)# doslib.lib vgmsnd.lib
280
281 gfx.lib: $(GFXLIBOBJS) 16_in.$(OBJ) 16_head.$(OBJ)
282         wlib -b $(WLIBQ) gfx.lib $(GFXLIBOBJS) 16_in.$(OBJ) 16_head.$(OBJ)
283
284 vgmsnd.lib: $(VGMSNDOBJ)
285         wlib -b $(WLIBQ) vgmsnd.lib $(VGMSNDOBJ)
286
287 # extdep:
288 # !include $(DOSLIBDIR)$(DIRSEP)extdep.mak
289
290 # library deps 16-bit huge
291 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu$(DIRSEP)dos86h$(DIRSEP)cpu.lib:
292         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu && .$(DIRSEP)make.sh
293 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos$(DIRSEP)dos86h$(DIRSEP)dos.lib:
294         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos && .$(DIRSEP)make.sh
295 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vgatty.lib:
296         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh
297 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vga.lib:
298         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh
299 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250$(DIRSEP)dos86h$(DIRSEP)8250.lib:
300         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250 && .$(DIRSEP)make.sh
301
302 joytest.exe:
303         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)joystick && .$(DIRSEP)make.sh && $(COPYCOMMAND) dos86h$(DIRSEP)test.exe $(PDIR)$(PDIR)$(PDIR)$(PDIR)$(PDIR)joytest.exe
304 #$(DOSLIBLIBS): .symbolic
305 #       @cd $(DOSLIB)
306 #       @.$(DIRSEP)buildall.sh
307 #       @cd $(PDIR)$(PDIR)$(PDIR)
308
309 modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c
310         wcl $(FLAGS) -c $(SRCLIB)modex16.c
311
312 bakapee.$(OBJ): $(SRCLIB)bakapee.h $(SRCLIB)bakapee.c
313         wcl $(FLAGS) -c $(SRCLIB)bakapee.c
314
315 16render.$(OBJ): $(MODEXLIB)16render.h $(MODEXLIB)16render.c
316         wcl $(FLAGS) -c $(MODEXLIB)16render.c
317
318 16planar.$(OBJ): $(MODEXLIB)16planar.h $(MODEXLIB)16planar.c
319         wcl $(FLAGS) -c $(MODEXLIB)16planar.c
320
321 bitmap.$(OBJ): $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c
322         wcl $(FLAGS) -c $(SRCLIB)bitmap.c
323
324 planar.$(OBJ): $(SRCLIB)planar.h $(SRCLIB)planar.c
325         wcl $(FLAGS) -c $(SRCLIB)planar.c
326
327 scroll16.$(OBJ): $(SRCLIB)scroll16.h $(SRCLIB)scroll16.c
328         wcl $(FLAGS) -c $(SRCLIB)scroll16.c
329
330 wcpu.$(OBJ): $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c
331         wcl $(FLAGS) -c $(WCPULIB)wcpu.c
332
333 16text.$(OBJ): $(SRCLIB)16text.c
334         wcl $(FLAGS) -c $(SRCLIB)16text.c
335
336 mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c
337         wcl $(FLAGS) -c $(SRCLIB)mapread.c
338
339 16_timer.$(OBJ): $(SRCLIB)16_timer.h $(SRCLIB)16_timer.c
340         wcl $(FLAGS) -c $(SRCLIB)16_timer.c
341
342 16_in.$(OBJ): $(SRCLIB)16_in.h $(SRCLIB)16_in.c
343         wcl $(FLAGS) -c $(SRCLIB)16_in.c
344
345 16_mm.$(OBJ): $(SRCLIB)16_mm.h $(SRCLIB)16_mm.c
346         wcl $(FLAGS) -c $(SRCLIB)16_mm.c
347
348 16_ca.$(OBJ): $(SRCLIB)16_ca.h $(SRCLIB)16_ca.c
349         wcl $(FLAGS) -c $(SRCLIB)16_ca.c
350
351 16_dbg.$(OBJ): $(SRCLIB)16_dbg.h $(SRCLIB)16_dbg.c
352         wcl $(FLAGS) -c $(SRCLIB)16_dbg.c
353
354 midi.$(OBJ): $(SRCLIB)midi.h $(SRCLIB)midi.c
355         wcl $(FLAGS) -c $(SRCLIB)midi.c
356
357 16_head.$(OBJ): $(SRCLIB)16_head.h $(SRCLIB)16_head.c
358         wcl $(FLAGS) -c $(SRCLIB)16_head.c
359
360 16_hc.$(OBJ): $(SRCLIB)16_hc.h $(SRCLIB)16_hc.c
361         wcl $(FLAGS) -c $(SRCLIB)16_hc.c
362
363 16_snd.$(OBJ): $(SRCLIB)16_snd.h $(SRCLIB)16_snd.c
364         wcl $(FLAGS) -c $(SRCLIB)16_snd.c
365         #====wcl -mc -c $(SRCLIB)16_snd.c
366
367 jsmn.$(OBJ): $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c
368         wcl $(FLAGS) -c $(JSMNLIB)jsmn.c
369
370 kitten.$(OBJ): $(NYANLIB)kitten.h $(NYANLIB)kitten.c
371         wcl $(FLAGS) -c $(NYANLIB)kitten.c
372
373 vgmSnd.$(OBJ): $(VGMSNDLIB)vgmSnd.h $(VGMSNDLIB)vgmSnd.c
374         wcl $(FLAGS) -c $(VGMSNDLIB)vgmSnd.c
375         #====wcl -c -mc $(VGMSNDLIB)vgmSnd.c
376
377 #memory.$(OBJ): $(EXMMLIB)memory.h $(EXMMLIB)memory.c
378 #       wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c
379
380 c_utils.$(OBJ): $(MODEXLIB_)c_utils.asm
381         wcl -c $(AFLAGS) $(MODEXLIB_)c_utils.asm
382 modex.$(OBJ): $(MODEXLIB_)modex.asm
383         wcl -c $(AFLAGS) $(MODEXLIB_)modex.asm
384
385 #
386 #other~
387 #
388 clean: .symbolic
389         @$(REMOVECOMMAND) $(EXEC)
390         @$(REMOVECOMMAND) /var/www/$(EXEC)*
391         @$(REMOVECOMMAND) *.$(OBJ)
392         @$(REMOVECOMMAND) 16.lib
393         @$(REMOVECOMMAND) gfx.lib
394         @$(REMOVECOMMAND) vgmsnd.lib
395         @wlib -n $(WLIBQ) 16.lib
396         @wlib -n $(WLIBQ) gfx.lib
397         @wlib -n $(WLIBQ) vgmsnd.lib
398         @$(REMOVECOMMAND) *.16
399         @$(REMOVECOMMAND) *.16W
400         @$(REMOVECOMMAND) *.16B
401         @$(REMOVECOMMAND) *.OBJ
402         @$(REMOVECOMMAND) *.o
403         @$(REMOVECOMMAND) *.BCO
404         @$(REMOVECOMMAND) makefi~1
405         @$(REMOVECOMMAND) makefile~
406         @$(REMOVECOMMAND) __wcl__.LNK
407 #       @$(REMOVECOMMAND) *.smp
408         @$(REMOVECOMMAND) *.SMP
409         @$(REMOVECOMMAND) *.hed
410         @$(REMOVECOMMAND) *.MAH
411         @$(REMOVECOMMAND) *.mah
412         @$(REMOVECOMMAND) *.err
413         #@cd $(DOSLIB)
414         #@./buildall.sh clean
415         #@cd $(PDIR)$(PDIR)$(PDIR)
416 #       @$(COPYCOMMAND) $(SRC)exmmtest.c $(EXMMTESTDIR)$(SRC)
417 #       @$(COPYCOMMAND) $(SRCLIB)16_mm.* $(EXMMTESTDIR)$(SRCLIB)
418 #       @$(COPYCOMMAND) $(SRCLIB)16_head.* $(EXMMTESTDIR)$(SRCLIB)
419 #       @$(COPYCOMMAND) $(SRCLIB)16_ca.* $(EXMMTESTDIR)$(SRCLIB)
420 #       @$(COPYCOMMAND) $(SRCLIB)16_hc.* $(EXMMTESTDIR)$(SRCLIB)
421 #       @$(COPYCOMMAND) $(SRCLIB)types.h $(EXMMTESTDIR)$(SRCLIB)
422 #       @$(COPYCOMMAND) $(NYANLIB)* $(EXMMTESTDIR)$(NYANLIB)
423 #       @echo $(watcom)
424 #       @echo $(INCLUDE)
425
426 backupconfig: .symbolic
427         @$(COPYCOMMAND) .git$(DIRSEP)config git_con.fig
428         @$(COPYCOMMAND) .gitmodules git_modu.les
429
430 comp: .symbolic
431         @upx -9 $(EXEC)
432
433 comq: .symbolic
434         @upx -9 $(UPXQ) $(EXEC)
435
436 www: .symbolic
437         @ssh -p 26 sparky4@4ch.mooo.com 'rm -f /var/www/16/*exe.zip*'
438         @rm -f /var/www/*.exe.zip*
439         #@cp ./$(EXEC) $(DIRSEP)var$(DIRSEP)www$(DIRSEP)
440         @./z.sh $(EXEC) $(EXEC)
441         @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/
442         @scp -r -P 26 /var/www/*.exe.zip.* 4ch.mooo.com:/var/www/16/
443
444 getwww: .symbolic
445         @x4get.bat $(EXEC)
446
447 ##
448 ##      External library management~ ^^
449 ##
450 #git submodule add <repo>
451 mkdl: .symbolic
452         @cd $(DOSLIB)
453         @./buildall.sh
454         @cd $(PDIR)$(PDIR)$(PDIR)
455
456 uplibs: .symbolic
457         @cd $(JSMNLIB)
458         @git pull
459         @cd $(PDIR)$(PDIR)$(PDIR)
460         @cd $(DOSLIB)
461         @git pull
462         @cd $(PDIR)$(PDIR)$(PDIR)
463
464 reinitlibs: .symbolic
465         @rm -rf $(SRCLIB)doslib
466         @rm -rf $(SRCLIB)jsmn
467         @rm -rf 16/CatacombApocalypse
468         @rm -rf 16/wolf3d
469         @wmake -h initlibs
470
471 initlibs: .symbolic
472         @cp git_con.fig .git/config
473         @cp git_modu.les .gitmodules
474         @cd $(SRCLIB)
475         @git clone https://github.com/joncampbell123/doslib.git
476         @git clone https://github.com/zserge/jsmn.git
477         @cd $(PDIR)$(PDIR)
478         @cd 16
479         @git clone https://github.com/FlatRockSoft/CatacombApocalypse.git
480         @git clone https://github.com/id-Software/wolf3d.git
481         @cd $(PDIR)
482
483 ##
484 ##      experimental libs
485 ##
486 xlib: .symbolic
487         @cd 16$(DIRSEP)xlib
488         @wmake -h clean
489         @wmake -h all
490         @cd $(PDIR)$(PDIR)
491
492 mx: .symbolic
493         @cd 16$(DIRSEP)xw
494 #       @wmake clean
495         @wmake -h all
496         @cd $(PDIR)$(PDIR)
497
498 mx_: .symbolic
499         @cd 16$(DIRSEP)xw_
500         @wmake -h -f makefile all
501         @cd $(PDIR)$(PDIR)
502
503 vrs: .symbolic
504         @cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga
505         #@make clean
506         @make all
507         @mv pcx2vrl ../../../../../
508         @mv pcxsscut ../../../../../
509         @mv vrl2vrs ../../../../../
510         @mv vrsdump ../../../../../
511         @cd ../../../../../