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