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