]> 4ch.mooo.com Git - 16.git/blob - makefile
add printf-like _DEBUGF() function for debugging, too
[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 -d2
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
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 test.exe: test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) $(DOSLIBLIBS) $(16LIB)
136         wcl $(FLAGS) test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) $(DOSLIBLIBS) $(16LIB) -fm=test.mah
137
138 test2.exe: test2.$(OBJ) $(DOSLIBLIBS) gfx.lib
139         wcl $(FLAGS) test2.$(OBJ) $(DOSLIBLIBS) gfx.lib -fm=test2.mah
140
141 test0.exe: test0.$(OBJ)
142         wcl $(FLAGS) test0.$(OBJ) -fm=test0.mah
143
144 fonttest.exe: fonttest.$(OBJ) $(16LIB) gfx.lib
145         wcl $(FLAGS) fonttest.$(OBJ) $(16LIB) gfx.lib -fm=fonttest.mah
146
147 #fonttes0.exe: fonttes0.$(OBJ) $(16LIB)
148 #       wcl $(FLAGS) fonttes0.$(OBJ) $(16LIB)
149
150 fontgfx.exe: fontgfx.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
151         wcl $(FLAGS) fontgfx.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS) -fm=fontgfx.mah
152
153 inputest.exe: inputest.$(OBJ) $(16LIB)
154         wcl $(FLAGS) inputest.$(OBJ) $(16LIB) -fm=inputest.mah
155
156 #sountest.exe: sountest.$(OBJ) $(16LIB)
157 #       wcl $(FLAGS) sountest.$(OBJ) $(16LIB)
158
159 pcxtest.exe: pcxtest.$(OBJ) gfx.lib
160         wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib -fm=pcxtest.mah
161
162 palettec.exe: palettec.$(OBJ) gfx.lib #$(16LIB)
163         wcl $(FLAGS) palettec.$(OBJ) gfx.lib -fm=palettec.mah #$(16LIB)
164
165 palettel.exe: palettel.$(OBJ) gfx.lib #$(16LIB)
166         wcl $(FLAGS) palettel.$(OBJ) gfx.lib -fm=palettel.mah #$(16LIB)
167
168 pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib
169         wcl $(FLAGS) pcxtest2.$(OBJ) gfx.lib -fm=pcxtest2.mah
170
171 planrpcx.exe: planrpcx.$(OBJ) gfx.lib
172         wcl $(FLAGS) planrpcx.$(OBJ) gfx.lib -fm=planrpcx.mah
173
174 maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib
175         wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=maptest.mah
176
177 fmemtest.exe: fmemtest.$(OBJ) $(16LIB)
178         wcl $(FLAGS) fmemtest.$(OBJ) $(16LIB) -fm=fmemtest.mah
179
180 exmmtest.exe: exmmtest.$(OBJ) $(16LIB)
181         wcl $(FLAGS) exmmtest.$(OBJ) -fm=exmmtest.mah $(16LIB)
182
183 vgmtest.exe: vgmtest.$(OBJ) vgmsnd.lib $(16LIB)
184         wcl $(FLAGS) vgmtest.$(OBJ) vgmsnd.lib -fm=vgmtest.mah $(16LIB)
185         #====wcl -mc vgmtest.$(OBJ) $(VGMSNDOBJ) -fm=vgmtest.mah
186
187
188 #
189 #executable's objects
190 #
191 16.$(OBJ): $(SRC)16.h $(SRC)16.c
192         wcl $(FLAGS) -c $(SRC)16.c
193
194 bakapi.$(OBJ): $(SRC)bakapi.h $(SRC)bakapi.c
195         wcl $(FLAGS) -c $(SRC)bakapi.c
196
197 test.$(OBJ): $(SRC)test.c $(SRCLIB)modex16.h
198         wcl $(FLAGS) -c $(SRC)test.c
199
200 test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h
201         wcl $(FLAGS) -c $(SRC)test2.c
202
203 test0.$(OBJ): $(SRC)test0.c
204         wcl $(FLAGS) -c $(SRC)test0.c
205
206 pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h
207         wcl $(FLAGS) -c $(SRC)pcxtest.c
208
209 planrpcx.$(OBJ): $(SRC)planrpcx.c $(SRCLIB)modex16.h
210         wcl $(FLAGS) -c $(SRC)planrpcx.c
211
212 pcxtest2.$(OBJ): $(SRC)pcxtest2.c $(SRCLIB)modex16.h
213         wcl $(FLAGS) -c $(SRC)pcxtest2.c
214
215 palettec.$(OBJ): $(SRC)palettec.c
216         wcl $(FLAGS) -c $(SRC)palettec.c
217
218 palettel.$(OBJ): $(SRC)palettel.c
219         wcl $(FLAGS) -c $(SRC)palettel.c
220
221 maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h
222         wcl $(FLAGS) -c $(SRC)maptest.c
223
224 #maptest0.$(OBJ): $(SRC)maptest0.c# $(SRCLIB)modex16.h
225 #       wcl $(FLAGS) $(MFLAGS) -c $(SRC)maptest0.c
226
227 #emmtest.$(OBJ): $(SRC)emmtest.c
228 #       wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c
229
230 #emsdump.$(OBJ): $(SRC)emsdump.c
231 #       wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c
232
233 fmemtest.$(OBJ): $(SRC)fmemtest.c
234         wcl $(FLAGS) -c $(SRC)fmemtest.c
235
236 fonttest.$(OBJ): $(SRC)fonttest.c
237         wcl $(FLAGS) -c $(SRC)fonttest.c
238
239 #fonttes0.$(OBJ): $(SRC)fonttes0.c
240 #       wcl $(FLAGS) -c $(SRC)fonttes0.c
241
242 fontgfx.$(OBJ): $(SRC)fontgfx.c
243         wcl $(FLAGS) -c $(SRC)fontgfx.c
244
245 inputest.$(OBJ): $(SRC)inputest.c
246         wcl $(FLAGS) -c $(SRC)inputest.c
247
248 #sountest.$(OBJ): $(SRC)sountest.c
249 #       wcl $(FLAGS) -c $(SRC)sountest.c
250
251 #miditest.$(OBJ): $(SRC)miditest.c
252 #       wcl $(FLAGS) -c $(SRC)miditest.c
253
254 #testemm.$(OBJ): $(SRC)testemm.c
255 #       wcl $(FLAGS) -c $(SRC)testemm.c
256
257 #testemm0.$(OBJ): $(SRC)testemm0.c
258 #       wcl $(FLAGS) -c $(SRC)testemm0.c
259
260 tsthimem.$(OBJ): $(SRC)tsthimem.c
261         wcl $(FLAGS) -c $(SRC)tsthimem.c
262
263 exmmtest.$(OBJ): $(SRC)exmmtest.c
264         wcl $(FLAGS) -c $(SRC)exmmtest.c
265
266 vgmtest.$(OBJ): $(SRC)vgmtest.c
267         wcl $(FLAGS) -c $(SRC)vgmtest.c
268         #====wcl -mc -c $(SRC)vgmtest.c
269
270 #
271 #non executable objects libraries
272 #
273 16.lib: $(16LIBOBJS)# doslib.lib vgmsnd.lib
274         wlib -b $(WLIBQ) 16.lib $(16LIBOBJS)# doslib.lib vgmsnd.lib
275
276 gfx.lib: $(GFXLIBOBJS) 16_in.$(OBJ) 16_head.$(OBJ)
277         wlib -b $(WLIBQ) gfx.lib $(GFXLIBOBJS) 16_in.$(OBJ) 16_head.$(OBJ)
278
279 vgmsnd.lib: $(VGMSNDOBJ)
280         wlib -b $(WLIBQ) vgmsnd.lib $(VGMSNDOBJ)
281
282 # extdep:
283 # !include $(DOSLIBDIR)$(DIRSEP)extdep.mak
284
285 # library deps 16-bit huge
286 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu$(DIRSEP)dos86h$(DIRSEP)cpu.lib:
287         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu && .$(DIRSEP)make.sh
288 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos$(DIRSEP)dos86h$(DIRSEP)dos.lib:
289         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos && .$(DIRSEP)make.sh
290 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vgatty.lib:
291         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh
292 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vga.lib:
293         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh
294 $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250$(DIRSEP)dos86h$(DIRSEP)8250.lib:
295         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250 && .$(DIRSEP)make.sh
296
297 joytest.exe:
298         cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)joystick && .$(DIRSEP)make.sh && $(COPYCOMMAND) dos86h$(DIRSEP)test.exe $(PDIR)$(PDIR)$(PDIR)$(PDIR)$(PDIR)joytest.exe
299 #$(DOSLIBLIBS): .symbolic
300 #       @cd $(DOSLIB)
301 #       @.$(DIRSEP)buildall.sh
302 #       @cd $(PDIR)$(PDIR)$(PDIR)
303
304 modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c
305         wcl $(FLAGS) -c $(SRCLIB)modex16.c
306
307 bakapee.$(OBJ): $(SRCLIB)bakapee.h $(SRCLIB)bakapee.c
308         wcl $(FLAGS) -c $(SRCLIB)bakapee.c
309
310 16render.$(OBJ): $(MODEXLIB)16render.h $(MODEXLIB)16render.c
311         wcl $(FLAGS) -c $(MODEXLIB)16render.c
312
313 16planar.$(OBJ): $(MODEXLIB)16planar.h $(MODEXLIB)16planar.c
314         wcl $(FLAGS) -c $(MODEXLIB)16planar.c
315
316 bitmap.$(OBJ): $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c
317         wcl $(FLAGS) -c $(SRCLIB)bitmap.c
318
319 planar.$(OBJ): $(SRCLIB)planar.h $(SRCLIB)planar.c
320         wcl $(FLAGS) -c $(SRCLIB)planar.c
321
322 scroll16.$(OBJ): $(SRCLIB)scroll16.h $(SRCLIB)scroll16.c
323         wcl $(FLAGS) -c $(SRCLIB)scroll16.c
324
325 wcpu.$(OBJ): $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c
326         wcl $(FLAGS) -c $(WCPULIB)wcpu.c
327
328 16text.$(OBJ): $(SRCLIB)16text.c
329         wcl $(FLAGS) -c $(SRCLIB)16text.c
330
331 mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c
332         wcl $(FLAGS) -c $(SRCLIB)mapread.c
333
334 16_timer.$(OBJ): $(SRCLIB)16_timer.h $(SRCLIB)16_timer.c
335         wcl $(FLAGS) -c $(SRCLIB)16_timer.c
336
337 16_in.$(OBJ): $(SRCLIB)16_in.h $(SRCLIB)16_in.c
338         wcl $(FLAGS) -c $(SRCLIB)16_in.c
339
340 16_mm.$(OBJ): $(SRCLIB)16_mm.h $(SRCLIB)16_mm.c
341         wcl $(FLAGS) -c $(SRCLIB)16_mm.c
342
343 16_ca.$(OBJ): $(SRCLIB)16_ca.h $(SRCLIB)16_ca.c
344         wcl $(FLAGS) -c $(SRCLIB)16_ca.c
345
346 16_dbg.$(OBJ): $(SRCLIB)16_dbg.h $(SRCLIB)16_dbg.c
347         wcl $(FLAGS) -c $(SRCLIB)16_dbg.c
348
349 midi.$(OBJ): $(SRCLIB)midi.h $(SRCLIB)midi.c
350         wcl $(FLAGS) -c $(SRCLIB)midi.c
351
352 16_head.$(OBJ): $(SRCLIB)16_head.h $(SRCLIB)16_head.c
353         wcl $(FLAGS) -c $(SRCLIB)16_head.c
354
355 16_hc.$(OBJ): $(SRCLIB)16_hc.h $(SRCLIB)16_hc.c
356         wcl $(FLAGS) -c $(SRCLIB)16_hc.c
357
358 16_snd.$(OBJ): $(SRCLIB)16_snd.h $(SRCLIB)16_snd.c
359         wcl $(FLAGS) -c $(SRCLIB)16_snd.c
360         #====wcl -mc -c $(SRCLIB)16_snd.c
361
362 jsmn.$(OBJ): $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c
363         wcl $(FLAGS) -c $(JSMNLIB)jsmn.c
364
365 kitten.$(OBJ): $(NYANLIB)kitten.h $(NYANLIB)kitten.c
366         wcl $(FLAGS) -c $(NYANLIB)kitten.c
367
368 vgmSnd.$(OBJ): $(VGMSNDLIB)vgmSnd.h $(VGMSNDLIB)vgmSnd.c
369         wcl $(FLAGS) -c $(VGMSNDLIB)vgmSnd.c
370         #====wcl -c -mc $(VGMSNDLIB)vgmSnd.c
371
372 #memory.$(OBJ): $(EXMMLIB)memory.h $(EXMMLIB)memory.c
373 #       wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c
374
375 c_utils.$(OBJ): $(MODEXLIB_)c_utils.asm
376         wcl -c $(AFLAGS) $(MODEXLIB_)c_utils.asm
377 modex.$(OBJ): $(MODEXLIB_)modex.asm
378         wcl -c $(AFLAGS) $(MODEXLIB_)modex.asm
379
380 #
381 #other~
382 #
383 clean: .symbolic
384         @$(REMOVECOMMAND) $(EXEC)
385         @$(REMOVECOMMAND) /var/www/$(EXEC)*
386         @$(REMOVECOMMAND) *.$(OBJ)
387         @$(REMOVECOMMAND) 16.lib
388         @$(REMOVECOMMAND) gfx.lib
389         @$(REMOVECOMMAND) vgmsnd.lib
390         @wlib -n $(WLIBQ) 16.lib
391         @wlib -n $(WLIBQ) gfx.lib
392         @wlib -n $(WLIBQ) vgmsnd.lib
393         @$(REMOVECOMMAND) *.16
394         @$(REMOVECOMMAND) *.16W
395         @$(REMOVECOMMAND) *.16B
396         @$(REMOVECOMMAND) *.OBJ
397         @$(REMOVECOMMAND) *.o
398         @$(REMOVECOMMAND) *.BCO
399         @$(REMOVECOMMAND) makefi~1
400         @$(REMOVECOMMAND) makefile~
401         @$(REMOVECOMMAND) __wcl__.LNK
402 #       @$(REMOVECOMMAND) *.smp
403         @$(REMOVECOMMAND) *.SMP
404         @$(REMOVECOMMAND) *.hed
405         @$(REMOVECOMMAND) *.MAH
406         @$(REMOVECOMMAND) *.mah
407         @$(REMOVECOMMAND) *.err
408         #@cd $(DOSLIB)
409         #@./buildall.sh clean
410         #@cd $(PDIR)$(PDIR)$(PDIR)
411 #       @$(COPYCOMMAND) $(SRC)exmmtest.c $(EXMMTESTDIR)$(SRC)
412 #       @$(COPYCOMMAND) $(SRCLIB)16_mm.* $(EXMMTESTDIR)$(SRCLIB)
413 #       @$(COPYCOMMAND) $(SRCLIB)16_head.* $(EXMMTESTDIR)$(SRCLIB)
414 #       @$(COPYCOMMAND) $(SRCLIB)16_ca.* $(EXMMTESTDIR)$(SRCLIB)
415 #       @$(COPYCOMMAND) $(SRCLIB)16_hc.* $(EXMMTESTDIR)$(SRCLIB)
416 #       @$(COPYCOMMAND) $(SRCLIB)types.h $(EXMMTESTDIR)$(SRCLIB)
417 #       @$(COPYCOMMAND) $(NYANLIB)* $(EXMMTESTDIR)$(NYANLIB)
418 #       @echo $(watcom)
419 #       @echo $(INCLUDE)
420
421 backupconfig: .symbolic
422         @$(COPYCOMMAND) .git$(DIRSEP)config git_con.fig
423         @$(COPYCOMMAND) .gitmodules git_modu.les
424
425 comp: .symbolic
426         @upx -9 $(EXEC)
427
428 comq: .symbolic
429         @upx -9 $(UPXQ) $(EXEC)
430
431 www: .symbolic
432         @ssh -p 26 sparky4@4ch.mooo.com 'rm -f /var/www/16/*exe.zip*'
433         @rm -f /var/www/*.exe.zip*
434         #@cp ./$(EXEC) $(DIRSEP)var$(DIRSEP)www$(DIRSEP)
435         @./z.sh $(EXEC) $(EXEC)
436         @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/
437         @scp -r -P 26 /var/www/*.exe.zip.* 4ch.mooo.com:/var/www/16/
438
439 getwww: .symbolic
440         @x4get.bat $(EXEC)
441
442 ##
443 ##      External library management~ ^^
444 ##
445 #git submodule add <repo>
446 mkdl: .symbolic
447         @cd $(DOSLIB)
448         @./buildall.sh
449         @cd $(PDIR)$(PDIR)$(PDIR)
450
451 uplibs: .symbolic
452         @cd $(JSMNLIB)
453         @git pull
454         @cd $(PDIR)$(PDIR)$(PDIR)
455         @cd $(DOSLIB)
456         @git pull
457         @cd $(PDIR)$(PDIR)$(PDIR)
458
459 reinitlibs: .symbolic
460         @rm -rf $(SRCLIB)doslib
461         @rm -rf $(SRCLIB)jsmn
462         @rm -rf 16/CatacombApocalypse
463         @rm -rf 16/wolf3d
464         @wmake -h initlibs
465
466 initlibs: .symbolic
467         @cp git_con.fig .git/config
468         @cp git_modu.les .gitmodules
469         @cd $(SRCLIB)
470         @git clone https://github.com/joncampbell123/doslib.git
471         @git clone https://github.com/zserge/jsmn.git
472         @cd $(PDIR)$(PDIR)
473         @cd 16
474         @git clone https://github.com/FlatRockSoft/CatacombApocalypse.git
475         @git clone https://github.com/id-Software/wolf3d.git
476         @cd $(PDIR)
477
478 ##
479 ##      experimental libs
480 ##
481 xlib: .symbolic
482         @cd 16$(DIRSEP)xlib
483         @wmake -h clean
484         @wmake -h all
485         @cd $(PDIR)$(PDIR)
486
487 mx: .symbolic
488         @cd 16$(DIRSEP)xw
489 #       @wmake clean
490         @wmake -h all
491         @cd $(PDIR)$(PDIR)
492
493 mx_: .symbolic
494         @cd 16$(DIRSEP)xw_
495         @wmake -h -f makefile all
496         @cd $(PDIR)$(PDIR)
497
498 vrs: .symbolic
499         @cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga
500         #@make clean
501         @make all
502         @mv pcx2vrl ../../../../../
503         @mv pcxsscut ../../../../../
504         @mv vrl2vrs ../../../../../
505         @mv vrsdump ../../../../../
506         @cd ../../../../../