#-zk0 = kanji support~
#-zkl = current codepage
-DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 -zm
-CFLAGS=-zk0 -wo -x -mc -zu -k32768#16384# -zdp# -zp16 -zq
-OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+
-FLAGS=-0 -d2 -lr $(OFLAGS) $(CFLAGS) $(DFLAGS)
+ZFLAGS=-zk0 -zu -zc# -zm# -zdp# -zp16 -zq
+DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1
+CFLAGS=-ei -wo -x -mc -r -fh=16.hed -k60000#16384#
+OFLAGS=-ot -ox -ob -oh -or -om -ol# -ol+
+FLAGS=-0 -d2 -lr $(OFLAGS) $(CFLAGS) $(DFLAGS) $(ZFLAGS)
SRC=src$(DIRSEP)
SRCLIB=$(SRC)lib$(DIRSEP)
JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)
16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) scroll16.$(OBJ) 16_ca.$(OBJ)
GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ)
-all: 16.exe mmtest.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe sountest.exe tsthimem.exe inputest.exe
+all: 16.exe exmmtest.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe sountest.exe tsthimem.exe inputest.exe
#testemm.exe testemm0.exe fonttes0.exe miditest.exe
#
wcl $(FLAGS) scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ)
scroll.$(OBJ): $(SRC)scroll.c
wcl $(FLAGS) -c $(SRC)scroll.c
+sega.exe: sega.$(OBJ)
+ wcl $(FLAGS) -c sega.$(OBJ)
+sega.$(OBJ): $(SRC)sega.c
+ wcl $(FLAGS) -c $(SRC)sega.c
test.exe: test.$(OBJ) gfx.lib
wcl $(FLAGS) test.$(OBJ) gfx.lib
fmemtest.exe: fmemtest.$(OBJ) 16.lib
wcl $(FLAGS) fmemtest.$(OBJ) 16.lib
-mmtest.exe: mmtest.$(OBJ) 16.lib
- wcl $(FLAGS) mmtest.$(OBJ) 16.lib
+exmmtest.exe: exmmtest.$(OBJ) 16.lib
+ wcl $(FLAGS) exmmtest.$(OBJ) 16.lib
#
#executable's objects
tsthimem.$(OBJ): $(SRC)tsthimem.c
wcl $(FLAGS) -c $(SRC)tsthimem.c
-mmtest.$(OBJ): $(SRC)mmtest.c
- wcl $(FLAGS) -c $(SRC)mmtest.c
+exmmtest.$(OBJ): $(SRC)exmmtest.c
+ wcl $(FLAGS) -c $(SRC)exmmtest.c
#
#non executable objects libraries