-16LIBOBJS = modex16.obj dos_kb.obj bitmap.obj planar.obj wcpu.obj lib_head.obj scroll16.obj
-\r
-all: 16.exe test.exe pcxtest.exe test2.exe scroll.exe palettec.exe maptest.exe maptest0.exe emsdump.exe emmtest.exe fmemtest.exe ftest.exe \r
-
-#
-#executables
-#
-16.exe: 16.obj mapread.obj jsmn.obj 16.lib
- wcl $(FLAGS) 16.obj mapread.obj jsmn.obj 16.lib
-\r
-scroll.exe: scroll.obj 16.lib mapread.obj jsmn.obj\r
- wcl $(FLAGS) scroll.obj 16.lib mapread.obj jsmn.obj\r
-scroll.obj: $(SRC)scroll.c\r
- wcl $(FLAGS) -c $(SRC)scroll.c\r
-test.exe: test.obj modex16.obj bitmap.obj lib_head.obj\r
- wcl $(FLAGS) test.obj modex16.obj bitmap.obj lib_head.obj\r
-\r
-test2.exe: test2.obj modex16.obj bitmap.obj planar.obj lib_head.obj\r
- wcl $(FLAGS) test2.obj modex16.obj bitmap.obj planar.obj lib_head.obj\r
-\r
-ftest.exe: text.obj ftest.obj\r
- wcl $(FLAGS) ftest.obj text.obj\r
-\r
-text.obj: $(SRCLIB)text.c\r
- wcl -c $(SRCLIB)text.c\r
-\r
-ftest.obj: $(SRC)ftest.c\r
- wcl -c $(SRC)ftest.c\r
-\r
-pcxtest.exe: pcxtest.obj modex16.obj bitmap.obj planar.obj lib_head.obj\r
- wcl $(FLAGS) pcxtest.obj modex16.obj bitmap.obj planar.obj lib_head.obj\r
-\r
-palettec.exe: palettec.obj modex16.obj\r
- wcl $(FLAGS) palettec.obj modex16.obj\r
-\r
-maptest.exe: maptest.obj mapread.obj jsmn.obj modex16.obj bitmap.obj lib_head.obj\r
- wcl $(FLAGS) maptest.obj mapread.obj jsmn.obj modex16.obj bitmap.obj lib_head.obj\r
-\r
-maptest0.exe: maptest0.obj fmapread.obj farjsmn.obj# modex16.obj bitmap.obj lib_head.obj\r
- wcl $(FLAGS) $(MFLAGS) maptest0.obj fmapread.obj farjsmn.obj# modex16.obj bitmap.obj lib_head.obj\r
-\r
-emmtest.exe: emmtest.obj memory.obj\r
- wcl $(FLAGS) $(MFLAGS) emmtest.obj memory.obj\r
-\r
-emsdump.exe: emsdump.obj memory.obj\r
- wcl $(FLAGS) $(MFLAGS) emsdump.obj memory.obj\r
-\r
-fmemtest.exe: fmemtest.obj# memory.obj\r
- wcl $(FLAGS) $(MFLAGS) fmemtest.obj# memory.obj\r
-\r
-#\r
-#executable's objects\r
-#\r
-16.obj: $(SRC)16.h $(SRC)16.c\r
- wcl $(FLAGS) -c $(SRC)16.c\r
-\r
-test.obj: $(SRC)test.c $(SRCLIB)modex16.h\r
- wcl $(FLAGS) -c $(SRC)test.c\r
-\r
-test2.obj: $(SRC)test2.c $(SRCLIB)modex16.h\r
- wcl $(FLAGS) -c $(SRC)test2.c\r
-\r
-pcxtest.obj: $(SRC)pcxtest.c $(SRCLIB)modex16.h\r
- wcl $(FLAGS) -c $(SRC)pcxtest.c\r
-\r
-palettec.obj: $(SRC)palettec.c\r
- wcl $(FLAGS) -c $(SRC)palettec.c\r
-\r
-maptest.obj: $(SRC)maptest.c $(SRCLIB)modex16.h\r
- wcl $(FLAGS) -c $(SRC)maptest.c\r
-\r
-maptest0.obj: $(SRC)maptest0.c# $(SRCLIB)modex16.h\r
- wcl $(FLAGS) $(MFLAGS) -c $(SRC)maptest0.c\r
-\r
-emmtest.obj: $(SRC)emmtest.c\r
- wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c\r
-\r
-emsdump.obj: $(SRC)emsdump.c\r
- wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c\r
-\r
-fmemtest.obj: $(SRC)fmemtest.c\r
- wcl $(FLAGS) $(MFLAGS) -c $(SRC)fmemtest.c
+AFLAGS=-mh -0 -d1
+16FLAGS=-fh=16.hed
+BAKAPIFLAGS=-fh=bakapi.hed
+SFLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k55808#60000#32768
+DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS)
+ZFLAGS=-zk0 -zq -zc -zp8# -zm
+CFLAGS=$(AFLAGS) $(IFLAGS)-lr -l=dos -wo##wwww
+OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87 -onac -ol+ -ok####x
+FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)
+
+
+DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ)
+VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ)
+DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)
+16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) timer.$(OBJ)
+#
+#3812intf.$(OBJ)
+GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) 16planar.$(OBJ)
+
+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
+# tsthimem.exe
+#testemm.exe testemm0.exe fonttes0.exe miditest.exe sega.exe sountest.exe
+EXEC = 16.exe bakapi.exe $(TESTEXEC) tesuto.exe
+
+all: $(EXEC) comp
+
+#
+#game and bakapi executables
+#
+16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib
+ wcl $(FLAGS) $(16FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=16.map
+
+bakapi.exe: bakapi.$(OBJ) $(16LIBOBJS) gfx.lib modex.lib
+ wcl $(FLAGS) $(BAKAPIFLAGS) bakapi.$(OBJ) $(16LIBOBJS) gfx.lib modex.lib -fm=bakapi.map
+#
+#Test Executables!
+#
+scroll.exe: scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib
+ wcl $(FLAGS) scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=scroll.map
+scroll.$(OBJ): $(SRC)scroll.c
+ wcl $(FLAGS) -c $(SRC)scroll.c
+
+tesuto.exe: tesuto.$(OBJ)
+ wcl -zq -mh -d2 tesuto.$(OBJ)
+tesuto.$(OBJ): $(SRC)tesuto.c
+ wcl -zq -mh -d2 -c $(SRC)tesuto.c
+
+#sega.exe: sega.$(OBJ)
+# wcl $(FLAGS) sega.$(OBJ)
+#sega.$(OBJ): $(SRC)sega.c
+# wcl $(FLAGS) -c $(SRC)sega.c
+
+test.exe: test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ)
+ wcl $(FLAGS) test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) -fm=test.map
+
+test2.exe: test2.$(OBJ) gfx.lib
+ wcl $(FLAGS) test2.$(OBJ) gfx.lib -fm=test2.map
+
+fonttest.exe: fonttest.$(OBJ) $(16LIBOBJS) gfx.lib
+ wcl $(FLAGS) fonttest.$(OBJ) $(16LIBOBJS) gfx.lib -fm=fonttest.map
+
+#fonttes0.exe: fonttes0.$(OBJ) $(16LIBOBJS)
+# wcl $(FLAGS) fonttes0.$(OBJ) $(16LIBOBJS)
+
+fontgfx.exe: fontgfx.$(OBJ) $(16LIBOBJS) gfx.lib
+ wcl $(FLAGS) fontgfx.$(OBJ) $(16LIBOBJS) gfx.lib -fm=fontgfx.map
+
+inputest.exe: inputest.$(OBJ) $(16LIBOBJS)
+ wcl $(FLAGS) inputest.$(OBJ) $(16LIBOBJS) -fm=inputest.map
+
+#sountest.exe: sountest.$(OBJ) $(16LIBOBJS)
+# wcl $(FLAGS) sountest.$(OBJ) $(16LIBOBJS)
+
+#miditest.exe: miditest.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) midi.$(OBJ)
+# wcl $(FLAGS) miditest.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) midi.$(OBJ)
+
+tsthimem.exe: tsthimem.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ)
+ wcl $(FLAGS) tsthimem.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ) -fm=tsthimem.map
+
+#testemm.exe: testemm.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ)
+# wcl $(FLAGS) testemm.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ)
+
+#testemm0.exe: testemm0.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ)
+# wcl $(FLAGS) testemm0.$(OBJ) $(16LIBOBJS) $(DOSLIBEXMMOBJ)
+
+pcxtest.exe: pcxtest.$(OBJ) gfx.lib
+ wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib -fm=pcxtest.map
+
+palettec.exe: palettec.$(OBJ) $(16LIBOBJS) gfx.lib
+ wcl $(FLAGS) palettec.$(OBJ) $(16LIBOBJS) gfx.lib -fm=palettec.map
+
+palettel.exe: palettel.$(OBJ) $(16LIBOBJS) gfx.lib
+ wcl $(FLAGS) palettel.$(OBJ) $(16LIBOBJS) gfx.lib -fm=palettel.map
+
+pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib
+ wcl $(FLAGS) pcxtest2.$(OBJ) gfx.lib -fm=pcxtest2.map
+
+planrpcx.exe: planrpcx.$(OBJ) gfx.lib
+ wcl $(FLAGS) planrpcx.$(OBJ) gfx.lib -fm=planrpcx.map
+
+maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib
+ wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=maptest.map
+
+#maptest0.exe: maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)
+# wcl $(FLAGS) $(MFLAGS) maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)
+
+#emmtest.exe: emmtest.$(OBJ) memory.$(OBJ)
+# wcl $(FLAGS) $(MFLAGS) emmtest.$(OBJ) memory.$(OBJ)
+
+#emsdump.exe: emsdump.$(OBJ) memory.$(OBJ)
+# wcl $(FLAGS) $(MFLAGS) emsdump.$(OBJ) memory.$(OBJ)
+
+fmemtest.exe: fmemtest.$(OBJ) $(16LIBOBJS)
+ wcl $(FLAGS) fmemtest.$(OBJ) $(16LIBOBJS) -fm=fmemtest.map
+
+exmmtest.exe: exmmtest.$(OBJ) $(16LIBOBJS)
+ wcl $(FLAGS) exmmtest.$(OBJ) -fm=exmmtest.map $(16LIBOBJS)
+
+vgmtest.exe: vgmtest.$(OBJ) vgmsnd.lib $(16LIBOBJS)
+ wcl $(FLAGS) vgmtest.$(OBJ) vgmsnd.lib -fm=vgmtest.map $(16LIBOBJS)
+ #====wcl -mc vgmtest.$(OBJ) $(VGMSNDOBJ) -fm=vgmtest.map
+
+
+#
+#executable's objects
+#
+16.$(OBJ): $(SRC)16.h $(SRC)16.c
+ wcl $(FLAGS) -c $(SRC)16.c
+
+bakapi.$(OBJ): $(SRC)bakapi.h $(SRC)bakapi.c
+ wcl $(FLAGS) -c $(SRC)bakapi.c
+
+test.$(OBJ): $(SRC)test.c $(SRCLIB)modex16.h
+ wcl $(FLAGS) -c $(SRC)test.c
+
+test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h
+ wcl $(FLAGS) -c $(SRC)test2.c
+
+pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h
+ wcl $(FLAGS) -c $(SRC)pcxtest.c
+
+planrpcx.$(OBJ): $(SRC)planrpcx.c $(SRCLIB)modex16.h
+ wcl $(FLAGS) -c $(SRC)planrpcx.c
+
+pcxtest2.$(OBJ): $(SRC)pcxtest2.c $(SRCLIB)modex16.h
+ wcl $(FLAGS) -c $(SRC)pcxtest2.c
+
+palettec.$(OBJ): $(SRC)palettec.c
+ wcl $(FLAGS) -c $(SRC)palettec.c
+
+palettel.$(OBJ): $(SRC)palettel.c
+ wcl $(FLAGS) -c $(SRC)palettel.c
+
+maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h
+ wcl $(FLAGS) -c $(SRC)maptest.c
+
+#maptest0.$(OBJ): $(SRC)maptest0.c# $(SRCLIB)modex16.h
+# wcl $(FLAGS) $(MFLAGS) -c $(SRC)maptest0.c
+
+#emmtest.$(OBJ): $(SRC)emmtest.c
+# wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c
+
+#emsdump.$(OBJ): $(SRC)emsdump.c
+# wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c
+
+fmemtest.$(OBJ): $(SRC)fmemtest.c
+ wcl $(FLAGS) -c $(SRC)fmemtest.c
+
+fonttest.$(OBJ): $(SRC)fonttest.c
+ wcl $(FLAGS) -c $(SRC)fonttest.c
+
+#fonttes0.$(OBJ): $(SRC)fonttes0.c
+# wcl $(FLAGS) -c $(SRC)fonttes0.c
+
+fontgfx.$(OBJ): $(SRC)fontgfx.c
+ wcl $(FLAGS) -c $(SRC)fontgfx.c
+
+inputest.$(OBJ): $(SRC)inputest.c
+ wcl $(FLAGS) -c $(SRC)inputest.c
+
+#sountest.$(OBJ): $(SRC)sountest.c
+# wcl $(FLAGS) -c $(SRC)sountest.c
+
+#miditest.$(OBJ): $(SRC)miditest.c
+# wcl $(FLAGS) -c $(SRC)miditest.c
+
+#testemm.$(OBJ): $(SRC)testemm.c
+# wcl $(FLAGS) -c $(SRC)testemm.c
+
+#testemm0.$(OBJ): $(SRC)testemm0.c
+# wcl $(FLAGS) -c $(SRC)testemm0.c
+
+tsthimem.$(OBJ): $(SRC)tsthimem.c
+ wcl $(FLAGS) -c $(SRC)tsthimem.c
+
+exmmtest.$(OBJ): $(SRC)exmmtest.c
+ wcl $(FLAGS) -c $(SRC)exmmtest.c
+
+vgmtest.$(OBJ): $(SRC)vgmtest.c
+ wcl $(FLAGS) -c $(SRC)vgmtest.c
+ #====wcl -mc -c $(SRC)vgmtest.c