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