-#-zk0u = translate kanji to unicode... wwww\r
-#-zk0 = kanji support~\r
-#-zkl = current codepage\r
-\r
-MFLAGS=-mh# -zm\r
-CFLAGS=-zkl -wo -x#### -mc# -zdp# -zp16 -zq\r
-OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+\r
-FLAGS=-0 -d2 -lr $(OFLAGS) $(CFLAGS)\r
-REMOVECOMMAND=del\r
-DIRSEP=\\r
-OBJ=obj\r
-SRC=src$(DIRSEP)\r
-SRCLIB=$(SRC)lib$(DIRSEP)\r
-JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)\r
-EXMMLIB=$(SRCLIB)exmm$(DIRSEP)\r
-WCPULIB=$(SRCLIB)wcpu$(DIRSEP)\r
-\r
-16LIBOBJS = modex16.$(OBJ) dos_kb.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) wcpu.$(OBJ) lib_head.$(OBJ) scroll16.$(OBJ)\r
-\r
-all: 16.exe test.exe pcxtest.exe test2.exe scroll.exe palettec.exe maptest.exe maptest0.exe emsdump.exe emmtest.exe fmemtest.exe fonttest.exe inputest.exe\r
-\r
-#\r
-#executables\r
-#\r
-16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib\r
- wcl $(FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib\r
-\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
-fonttest.exe: 16text.$(OBJ) fonttest.$(OBJ)\r
- wcl $(FLAGS) fonttest.$(OBJ) 16text.$(OBJ)
-
-inputest.exe: inputest.$(OBJ) 16_in.$(OBJ) lib_head.$(OBJ)\r
- wcl $(FLAGS) inputest.$(OBJ) 16_in.$(OBJ) lib_head.$(OBJ)\r
-\r
-16text.$(OBJ): $(SRCLIB)16text.c\r
- wcl -c $(SRCLIB)16text.c\r
-\r
-fonttest.$(OBJ): $(SRC)fonttest.c\r
- wcl -c $(SRC)fonttest.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
+#-zk0u = translate kanji to unicode... wwww
+#-zk0 = kanji support~
+#-zkl = current codepage
+
+MFLAGS=-mc# -zm
+CFLAGS=-zkl -wo -x#### -mc# -zdp# -zp16 -zq
+OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+
+FLAGS=-0 -d2 -lr $(OFLAGS) $(CFLAGS)
+REMOVECOMMAND=del
+DIRSEP=\
+OBJ=obj
+SRC=src$(DIRSEP)
+SRCLIB=$(SRC)lib$(DIRSEP)
+JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)
+EXMMLIB=$(SRCLIB)exmm$(DIRSEP)
+WCPULIB=$(SRCLIB)wcpu$(DIRSEP)
+
+16LIBOBJS = 16_in.$(OBJ) wcpu.$(OBJ) lib_head.$(OBJ) scroll16.$(OBJ) 16text.$(OBJ)
+GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ)
+
+all: 16.exe test.exe pcxtest.exe test2.exe palettec.exe maptest.exe maptest0.exe emsdump.exe emmtest.exe fmemtest.exe fonttest.exe inputest.exe exmmtest.exe
+
+#
+#executables
+#
+16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib
+ wcl $(FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib
+
+scroll.exe: scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ)
+ wcl $(FLAGS) scroll.$(OBJ) 16.lib mapread.$(OBJ) jsmn.$(OBJ) dos_kb.$(OBJ)
+scroll.$(OBJ): $(SRC)scroll.c
+ wcl $(FLAGS) -c $(SRC)scroll.c
+test.exe: test.$(OBJ) 16.lib
+ wcl $(FLAGS) test.$(OBJ) 16.lib
+
+test2.exe: test2.$(OBJ) 16.lib
+ wcl $(FLAGS) test2.$(OBJ) 16.lib
+
+fonttest.exe: fonttest.$(OBJ) 16.lib
+ wcl $(FLAGS) fonttest.$(OBJ) 16.lib
+
+inputest.exe: inputest.$(OBJ) 16.lib
+ wcl $(FLAGS) inputest.$(OBJ) 16.lib
+
+pcxtest.exe: pcxtest.$(OBJ) 16.lib
+ wcl $(FLAGS) pcxtest.$(OBJ) 16.lib
+
+palettec.exe: palettec.$(OBJ) modex16.$(OBJ)
+ wcl $(FLAGS) palettec.$(OBJ) modex16.$(OBJ)
+
+maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib
+ wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) 16.lib
+
+maptest0.exe: maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)# 16.lib
+ wcl $(FLAGS) $(MFLAGS) maptest0.$(OBJ) fmapread.$(OBJ) farjsmn.$(OBJ)# 16.lib
+
+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)# memory.$(OBJ)
+ wcl $(FLAGS) $(MFLAGS) fmemtest.$(OBJ)# memory.$(OBJ)
+
+exmmtest.exe: exmmtest.$(OBJ) 16_mm.$(OBJ)
+ wcl $(FLAGS) $(MFLAGS) exmmtest.$(OBJ) 16_mm.$(OBJ)
+
+#
+#executable's objects
+#
+16.$(OBJ): $(SRC)16.h $(SRC)16.c
+ wcl $(FLAGS) -c $(SRC)16.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
+
+palettec.$(OBJ): $(SRC)palettec.c
+ wcl $(FLAGS) -c $(SRC)palettec.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