wwww
Revision | 5f49317ba71c4d5b2537849733706a9741956916 (tree) |
---|---|
Time | 2016-03-14 07:41:59 |
Author | sparky4 <sparky4@cock...> |
Commiter | sparky4 |
added compressor in parts
@@ -470,7 +470,8 @@ mx_: .symbolic | ||
470 | 470 | www: .symbolic |
471 | 471 | @rm -f /var/www/$(EXEC) |
472 | 472 | @cp -f $(EXEC) /var/www/ |
473 | - @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/ | |
474 | 473 | @bash ./z.sh $(EXEC) $(EXEC) |
474 | + @cp -f *.exe.zip.* /var/www/ | |
475 | + @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/ | |
475 | 476 | @scp -r -P 26 *.exe.zip.* 4ch.mooo.com:/var/www/16/ |
476 | 477 |
@@ -0,0 +1,477 @@ | ||
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 | +#!ifndef INCLUDE | |
44 | +#IN=..$(DIRSEP)..$(DIRSEP)fdos$(DIRSEP)watcom2$(DIRSEP)h | |
45 | +#IFLAGS=-i=$(IN) | |
46 | +#!endif | |
47 | + | |
48 | +TARGET_OS = dos | |
49 | + | |
50 | +#EXMMTESTDIR=16$(DIRSEP)exmmtest$(DIRSEP) | |
51 | +SRC=src$(DIRSEP) | |
52 | +SRCLIB=$(SRC)lib$(DIRSEP) | |
53 | +JSMNLIB=$(SRCLIB)jsmn$(DIRSEP) | |
54 | +NYANLIB=$(SRCLIB)nyan$(DIRSEP) | |
55 | +#EXMMLIB=$(SRCLIB)exmm$(DIRSEP) | |
56 | +MODEXLIB=$(SRCLIB)modex16$(DIRSEP) | |
57 | +MODEXLIB_=$(SRCLIB)modex$(DIRSEP) | |
58 | +VGMSNDLIB=$(SRCLIB)vgmsnd$(DIRSEP) | |
59 | +DOSLIB=$(SRCLIB)doslib$(DIRSEP) | |
60 | +WCPULIB=$(SRCLIB)wcpu$(DIRSEP) | |
61 | + | |
62 | +WLIBQ=-q | |
63 | +WCLQ=-zq $(WLIBQ) | |
64 | +UPXQ= | |
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 -k55808#60000#32768 | |
70 | +DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS) | |
71 | +ZFLAGS=-zk0 -zc -zp8 $(WCLQ) ## -zm | |
72 | +CFLAGS=$(AFLAGS) $(IFLAGS)-lr -l=dos -wo##wwww | |
73 | +OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87 -onac -ol+ -ok####x | |
74 | +FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS) | |
75 | + | |
76 | + | |
77 | +DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ) | |
78 | +VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ) | |
79 | +DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ) | |
80 | +16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) timer.$(OBJ) | |
81 | +# | |
82 | +#3812intf.$(OBJ) | |
83 | +GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) 16planar.$(OBJ) | |
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 | +# tsthimem.exe | |
87 | +#testemm.exe testemm0.exe fonttes0.exe miditest.exe sega.exe sountest.exe | |
88 | +EXEC = 16.exe bakapi.exe $(TESTEXEC) tesuto.exe | |
89 | + | |
90 | +all: $(EXEC) | |
91 | + | |
92 | +#$(16LIBOBJS) => 16.lib | |
93 | + | |
94 | +# | |
95 | +#game and bakapi executables | |
96 | +# | |
97 | +16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib | |
98 | + wcl $(FLAGS) $(16FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=16.map | |
99 | + | |
100 | +bakapi.exe: bakapi.$(OBJ) gfx.lib modex.lib | |
101 | + wcl $(FLAGS) $(BAKAPIFLAGS) bakapi.$(OBJ) gfx.lib modex.lib -fm=bakapi.map | |
102 | +# | |
103 | +#Test Executables! | |
104 | +# | |
105 | +scroll.exe: scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib | |
106 | + wcl $(FLAGS) scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=scroll.map | |
107 | +scroll.$(OBJ): $(SRC)scroll.c | |
108 | + wcl $(FLAGS) -c $(SRC)scroll.c | |
109 | + | |
110 | +tesuto.exe: tesuto.$(OBJ) | |
111 | + wcl $(WCLQ) -mh -d2 tesuto.$(OBJ) | |
112 | +tesuto.$(OBJ): $(SRC)tesuto.c | |
113 | + wcl $(WCLQ) -mh -d2 -c $(SRC)tesuto.c | |
114 | + | |
115 | +#sega.exe: sega.$(OBJ) | |
116 | +# wcl $(FLAGS) sega.$(OBJ) | |
117 | +#sega.$(OBJ): $(SRC)sega.c | |
118 | +# wcl $(FLAGS) -c $(SRC)sega.c | |
119 | + | |
120 | +test.exe: test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) | |
121 | + wcl $(FLAGS) test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) -fm=test.map | |
122 | + | |
123 | +test2.exe: test2.$(OBJ) gfx.lib | |
124 | + wcl $(FLAGS) test2.$(OBJ) gfx.lib -fm=test2.map | |
125 | + | |
126 | +fonttest.exe: fonttest.$(OBJ) $(16LIBOBJS) gfx.lib | |
127 | + wcl $(FLAGS) fonttest.$(OBJ) $(16LIBOBJS) gfx.lib -fm=fonttest.map | |
128 | + | |
129 | +#fonttes0.exe: fonttes0.$(OBJ) $(16LIBOBJS) | |
130 | +# wcl $(FLAGS) fonttes0.$(OBJ) $(16LIBOBJS) | |
131 | + | |
132 | +fontgfx.exe: fontgfx.$(OBJ) $(16LIBOBJS) gfx.lib | |
133 | + wcl $(FLAGS) fontgfx.$(OBJ) $(16LIBOBJS) gfx.lib -fm=fontgfx.map | |
134 | + | |
135 | +inputest.exe: inputest.$(OBJ) $(16LIBOBJS) | |
136 | + wcl $(FLAGS) inputest.$(OBJ) $(16LIBOBJS) -fm=inputest.map | |
137 | + | |
138 | +#sountest.exe: sountest.$(OBJ) $(16LIBOBJS) | |
139 | +# wcl $(FLAGS) sountest.$(OBJ) $(16LIBOBJS) | |
140 | + | |
141 | +#miditest.exe: miditest.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) midi.$(OBJ) | |
142 | +# wcl $(FLAGS) miditest.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) midi.$(OBJ) | |
143 | + | |
144 | +tsthimem.exe: tsthimem.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) | |
145 | + wcl $(FLAGS) tsthimem.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) -fm=tsthimem.map | |
146 | + | |
147 | +#testemm.exe: testemm.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) | |
148 | +# wcl $(FLAGS) testemm.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) | |
149 | + | |
150 | +#testemm0.exe: testemm0.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) | |
151 | +# wcl $(FLAGS) testemm0.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) | |
152 | + | |
153 | +pcxtest.exe: pcxtest.$(OBJ) gfx.lib | |
154 | + wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib -fm=pcxtest.map | |
155 | + | |
156 | +palettec.exe: palettec.$(OBJ) $(16LIBOBJS) gfx.lib | |
157 | + wcl $(FLAGS) palettec.$(OBJ) $(16LIBOBJS) gfx.lib -fm=palettec.map | |
158 | + | |
159 | +palettel.exe: palettel.$(OBJ) $(16LIBOBJS) gfx.lib | |
160 | + wcl $(FLAGS) palettel.$(OBJ) $(16LIBOBJS) gfx.lib -fm=palettel.map | |
161 | + | |
162 | +pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib | |
163 | + wcl $(FLAGS) pcxtest2.$(OBJ) gfx.lib -fm=pcxtest2.map | |
164 | + | |
165 | +planrpcx.exe: planrpcx.$(OBJ) gfx.lib | |
166 | + wcl $(FLAGS) planrpcx.$(OBJ) gfx.lib -fm=planrpcx.map | |
167 | + | |
168 | +maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib | |
169 | + wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=maptest.map | |
170 | + | |
171 | +#maptest0.exe: maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ) | |
172 | +# wcl $(FLAGS) $(MFLAGS) maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ) | |
173 | + | |
174 | +#emmtest.exe: emmtest.$(OBJ) memory.$(OBJ) | |
175 | +# wcl $(FLAGS) $(MFLAGS) emmtest.$(OBJ) memory.$(OBJ) | |
176 | + | |
177 | +#emsdump.exe: emsdump.$(OBJ) memory.$(OBJ) | |
178 | +# wcl $(FLAGS) $(MFLAGS) emsdump.$(OBJ) memory.$(OBJ) | |
179 | + | |
180 | +fmemtest.exe: fmemtest.$(OBJ) $(16LIBOBJS) | |
181 | + wcl $(FLAGS) fmemtest.$(OBJ) $(16LIBOBJS) -fm=fmemtest.map | |
182 | + | |
183 | +exmmtest.exe: exmmtest.$(OBJ) $(16LIBOBJS) | |
184 | + wcl $(FLAGS) exmmtest.$(OBJ) -fm=exmmtest.map $(16LIBOBJS) | |
185 | + | |
186 | +vgmtest.exe: vgmtest.$(OBJ) vgmsnd.lib $(16LIBOBJS) | |
187 | + wcl $(FLAGS) vgmtest.$(OBJ) vgmsnd.lib -fm=vgmtest.map $(16LIBOBJS) | |
188 | + #====wcl -mc vgmtest.$(OBJ) $(VGMSNDOBJ) -fm=vgmtest.map | |
189 | + | |
190 | + | |
191 | +# | |
192 | +#executable's objects | |
193 | +# | |
194 | +16.$(OBJ): $(SRC)16.h $(SRC)16.c | |
195 | + wcl $(FLAGS) -c $(SRC)16.c | |
196 | + | |
197 | +bakapi.$(OBJ): $(SRC)bakapi.h $(SRC)bakapi.c | |
198 | + wcl $(FLAGS) -c $(SRC)bakapi.c | |
199 | + | |
200 | +test.$(OBJ): $(SRC)test.c $(SRCLIB)modex16.h | |
201 | + wcl $(FLAGS) -c $(SRC)test.c | |
202 | + | |
203 | +test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h | |
204 | + wcl $(FLAGS) -c $(SRC)test2.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) | |
277 | + wlib -b $(WLIBQ) gfx.lib $(GFXLIBOBJS) | |
278 | + | |
279 | +doslib.lib: $(DOSLIBOBJ) # $(SRCLIB)cpu.lib | |
280 | + wlib -b $(WLIBQ) doslib.lib $(DOSLIBOBJ) # $(SRCLIB)cpu.lib | |
281 | + | |
282 | +vgmsnd.lib: $(VGMSNDOBJ) | |
283 | + wlib -b $(WLIBQ) vgmsnd.lib $(VGMSNDOBJ) | |
284 | + | |
285 | +modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c | |
286 | + wcl $(FLAGS) -c $(SRCLIB)modex16.c | |
287 | + | |
288 | +bakapee.$(OBJ): $(SRCLIB)bakapee.h $(SRCLIB)bakapee.c | |
289 | + wcl $(FLAGS) -c $(SRCLIB)bakapee.c | |
290 | + | |
291 | +16render.$(OBJ): $(MODEXLIB)16render.h $(MODEXLIB)16render.c | |
292 | + wcl $(FLAGS) -c $(MODEXLIB)16render.c | |
293 | + | |
294 | +16planar.$(OBJ): $(MODEXLIB)16planar.h $(MODEXLIB)16planar.c | |
295 | + wcl $(FLAGS) -c $(MODEXLIB)16planar.c | |
296 | + | |
297 | +bitmap.$(OBJ): $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c | |
298 | + wcl $(FLAGS) -c $(SRCLIB)bitmap.c | |
299 | + | |
300 | +planar.$(OBJ): $(SRCLIB)planar.h $(SRCLIB)planar.c | |
301 | + wcl $(FLAGS) -c $(SRCLIB)planar.c | |
302 | + | |
303 | +scroll16.$(OBJ): $(SRCLIB)scroll16.h $(SRCLIB)scroll16.c | |
304 | + wcl $(FLAGS) -c $(SRCLIB)scroll16.c | |
305 | + | |
306 | +wcpu.$(OBJ): $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c | |
307 | + wcl $(FLAGS) -c $(WCPULIB)wcpu.c | |
308 | + | |
309 | +16text.$(OBJ): $(SRCLIB)16text.c | |
310 | + wcl $(FLAGS) -c $(SRCLIB)16text.c | |
311 | + | |
312 | +mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c | |
313 | + wcl $(FLAGS) -c $(SRCLIB)mapread.c | |
314 | + | |
315 | +timer.$(OBJ): $(SRCLIB)timer.h $(SRCLIB)timer.c | |
316 | + wcl $(FLAGS) -c $(SRCLIB)timer.c | |
317 | + | |
318 | +16_in.$(OBJ): $(SRCLIB)16_in.h $(SRCLIB)16_in.c | |
319 | + wcl $(FLAGS) -c $(SRCLIB)16_in.c | |
320 | + | |
321 | +16_mm.$(OBJ): $(SRCLIB)16_mm.h $(SRCLIB)16_mm.c | |
322 | + wcl $(FLAGS) -c $(SRCLIB)16_mm.c | |
323 | + | |
324 | +16_ca.$(OBJ): $(SRCLIB)16_ca.h $(SRCLIB)16_ca.c | |
325 | + wcl $(FLAGS) -c $(SRCLIB)16_ca.c | |
326 | + | |
327 | +midi.$(OBJ): $(SRCLIB)midi.h $(SRCLIB)midi.c | |
328 | + wcl $(FLAGS) -c $(SRCLIB)midi.c | |
329 | + | |
330 | +# | |
331 | +# doslib stuff | |
332 | +# | |
333 | +adlib.$(OBJ): $(DOSLIB)adlib.h $(DOSLIB)adlib.c | |
334 | + wcl $(FLAGS) -c $(DOSLIB)adlib.c | |
335 | + | |
336 | +8254.$(OBJ): $(DOSLIB)8254.h $(DOSLIB)8254.c | |
337 | + wcl $(FLAGS) -c $(DOSLIB)8254.c | |
338 | + | |
339 | +8259.$(OBJ): $(DOSLIB)8259.h $(DOSLIB)8259.c | |
340 | + wcl $(FLAGS) -c $(DOSLIB)8259.c | |
341 | + | |
342 | +dos.$(OBJ): $(DOSLIB)dos.h $(DOSLIB)dos.c | |
343 | + wcl $(FLAGS) -c $(DOSLIB)dos.c | |
344 | + | |
345 | +cpu.$(OBJ): $(DOSLIB)cpu.h $(DOSLIB)cpu.c | |
346 | + wcl $(FLAGS) -c $(DOSLIB)cpu.c | |
347 | + | |
348 | +himemsys.$(OBJ): $(DOSLIB)himemsys.h $(DOSLIB)himemsys.c | |
349 | + wcl $(FLAGS) -c $(DOSLIB)himemsys.c | |
350 | + | |
351 | +emm.$(OBJ): $(DOSLIB)emm.h $(DOSLIB)emm.c | |
352 | + wcl $(FLAGS) -c $(DOSLIB)emm.c | |
353 | + | |
354 | +# end of doslib stuff | |
355 | + | |
356 | +16_head.$(OBJ): $(SRCLIB)16_head.h $(SRCLIB)16_head.c | |
357 | + wcl $(FLAGS) -c $(SRCLIB)16_head.c | |
358 | + | |
359 | +16_hc.$(OBJ): $(SRCLIB)16_hc.h $(SRCLIB)16_hc.c | |
360 | + wcl $(FLAGS) -c $(SRCLIB)16_hc.c | |
361 | + | |
362 | +16_snd.$(OBJ): $(SRCLIB)16_snd.h $(SRCLIB)16_snd.c | |
363 | + wcl $(FLAGS) -c $(SRCLIB)16_snd.c | |
364 | + #====wcl -mc -c $(SRCLIB)16_snd.c | |
365 | + | |
366 | +jsmn.$(OBJ): $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c | |
367 | + wcl $(FLAGS) -c $(JSMNLIB)jsmn.c | |
368 | + | |
369 | +kitten.$(OBJ): $(NYANLIB)kitten.h $(NYANLIB)kitten.c | |
370 | + wcl $(FLAGS) -c $(NYANLIB)kitten.c | |
371 | + | |
372 | +vgmSnd.$(OBJ): $(VGMSNDLIB)vgmSnd.h $(VGMSNDLIB)vgmSnd.c | |
373 | + wcl $(FLAGS) -c $(VGMSNDLIB)vgmSnd.c | |
374 | + #====wcl -c -mc $(VGMSNDLIB)vgmSnd.c | |
375 | + | |
376 | +#3812intf.$(OBJ): $(VGMSNDLIB)3812intf.h $(VGMSNDLIB)3812intf.c | |
377 | +# wcl $(FLAGS) -c $(VGMSNDLIB)3812intf.c | |
378 | + | |
379 | +#farjsmn.$(OBJ): $(JSMNLIB)farjsmn.h $(JSMNLIB)farjsmn.c | |
380 | +# wcl $(FLAGS) $(MFLAGS) -c $(JSMNLIB)farjsmn.c | |
381 | + | |
382 | +#memory.$(OBJ): $(EXMMLIB)memory.h $(EXMMLIB)memory.c | |
383 | +# wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c | |
384 | + | |
385 | +c_utils.$(OBJ): $(MODEXLIB_)c_utils.asm | |
386 | + wcl -c $(AFLAGS) $(MODEXLIB_)c_utils.asm | |
387 | +modex.$(OBJ): $(MODEXLIB_)modex.asm | |
388 | + wcl -c $(AFLAGS) $(MODEXLIB_)modex.asm | |
389 | + | |
390 | +# | |
391 | +#other~ | |
392 | +# | |
393 | +clean: .symbolic | |
394 | + @$(REMOVECOMMAND) $(EXEC) | |
395 | + @$(REMOVECOMMAND) *.$(OBJ) | |
396 | + @$(REMOVECOMMAND) 16.lib | |
397 | + @$(REMOVECOMMAND) gfx.lib | |
398 | + @$(REMOVECOMMAND) doslib.lib | |
399 | + @$(REMOVECOMMAND) vgmsnd.lib | |
400 | + @wlib -n $(WLIBQ) 16.lib | |
401 | + @wlib -n $(WLIBQ) gfx.lib | |
402 | + @wlib -n $(WLIBQ) doslib.lib | |
403 | + @wlib -n $(WLIBQ) vgmsnd.lib | |
404 | + @$(REMOVECOMMAND) *.16 | |
405 | + @$(REMOVECOMMAND) *.16W | |
406 | + @$(REMOVECOMMAND) *.16B | |
407 | + @$(REMOVECOMMAND) *.OBJ | |
408 | + @$(REMOVECOMMAND) *.o | |
409 | + @$(REMOVECOMMAND) *.BCO | |
410 | + @$(REMOVECOMMAND) makefi~1 | |
411 | + @$(REMOVECOMMAND) makefile~ | |
412 | + @$(REMOVECOMMAND) __wcl__.LNK | |
413 | +# @$(REMOVECOMMAND) *.smp | |
414 | + @$(REMOVECOMMAND) *.SMP | |
415 | + @$(REMOVECOMMAND) *.hed | |
416 | + @$(REMOVECOMMAND) *.MAP | |
417 | + @$(REMOVECOMMAND) *.map | |
418 | + @$(REMOVECOMMAND) *.err | |
419 | + @$(COPYCOMMAND) .git/config git_con.fig | |
420 | +# @$(COPYCOMMAND) $(SRC)exmmtest.c $(EXMMTESTDIR)$(SRC) | |
421 | +# @$(COPYCOMMAND) $(SRCLIB)16_mm.* $(EXMMTESTDIR)$(SRCLIB) | |
422 | +# @$(COPYCOMMAND) $(SRCLIB)16_head.* $(EXMMTESTDIR)$(SRCLIB) | |
423 | +# @$(COPYCOMMAND) $(SRCLIB)16_ca.* $(EXMMTESTDIR)$(SRCLIB) | |
424 | +# @$(COPYCOMMAND) $(SRCLIB)16_hc.* $(EXMMTESTDIR)$(SRCLIB) | |
425 | +# @$(COPYCOMMAND) $(SRCLIB)types.h $(EXMMTESTDIR)$(SRCLIB) | |
426 | +# @$(COPYCOMMAND) $(NYANLIB)* $(EXMMTESTDIR)$(NYANLIB) | |
427 | +# @echo $(watcom) | |
428 | +# @echo $(INCLUDE) | |
429 | + | |
430 | +comp: .symbolic | |
431 | + @upx -9 $(UPXQ) $(EXEC) | |
432 | +## @upx -9 $(UPXQ) x-demo.exe | |
433 | + | |
434 | +#git submodule add <repo> | |
435 | +uplibs: .symbolic | |
436 | + @wmake -h updatelibs | |
437 | + | |
438 | +updatelibs: .symbolic | |
439 | + @cd $(JSMNLIB) | |
440 | + @git pull | |
441 | + @cd ../../../ | |
442 | + @cd $(DOSLIB) | |
443 | + @git pull | |
444 | + @./buildall.sh | |
445 | + @cd ../../../ | |
446 | + | |
447 | +initlibs: .symbolic | |
448 | + @cd src/lib | |
449 | + @git clone https://github.com/joncampbell123/doslib.git | |
450 | + @git clone https://github.com/zserge/jsmn.git | |
451 | + @cd ../../ | |
452 | + | |
453 | +xlib: .symbolic | |
454 | + @cd 16/xlib | |
455 | + @wmake -h clean | |
456 | + @wmake -h all | |
457 | + @cd ../../ | |
458 | + | |
459 | +mx: .symbolic | |
460 | + @cd 16/xw | |
461 | +# @wmake clean | |
462 | + @wmake -h all | |
463 | + @cd ../../ | |
464 | + | |
465 | +mx_: .symbolic | |
466 | + @cd 16/xw_ | |
467 | + @wmake -h -f makefile all | |
468 | + @cd ../../ | |
469 | + | |
470 | +www: .symbolic | |
471 | + @rm -f /var/www/$(EXEC) | |
472 | + @cp -f $(EXEC) /var/www/ | |
473 | + | |
474 | + @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/ | |
475 | + @bash ./z.sh $(EXEC) $(EXEC) | |
476 | + @scp -r -P 26 *.exe.zip.* 4ch.mooo.com:/var/www/16/ | |
477 | + |