--- /dev/null
+#-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 $(OFLAGS) $(CFLAGS)\r
+REMOVECOMMAND=rm\r
+DIRSEP=/\r
+SRC=src$(DIRSEP)\r
+SRCLIB=$(SRC)lib$(DIRSEP)\r
+JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)\r
+EXMMLIB=$(SRCLIB)exmm$(DIRSEP)\r
+\r
+all: test.exe pcxtest.exe test2.exe scroll.exe maptest.exe maptest0.exe emsdump.exe emmtest.exe fmemtest.exe\r
+\r
+#\r
+#executables\r
+#\r
+scroll.exe: scroll.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj lib_head.obj\r
+ wcl $(FLAGS) scroll.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj lib_head.obj# 16/lib/x/modex.lib\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
+pcxtest.exe: pcxtest.obj modex16.obj bitmap.obj lib_head.obj\r
+ wcl $(FLAGS) pcxtest.obj modex16.obj bitmap.obj lib_head.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
+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
+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\r
+\r
+#\r
+#non executable objects libraries\r
+#\r
+modex16.obj: $(SRCLIB)modex16.h $(SRCLIB)modex16.c\r
+ wcl $(FLAGS) -c $(SRCLIB)modex16.c\r
+\r
+dos_kb.obj: $(SRCLIB)dos_kb.h $(SRCLIB)dos_kb.c\r
+ wcl $(FLAGS) -c $(SRCLIB)dos_kb.c\r
+\r
+bitmap.obj: $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c\r
+ wcl $(FLAGS) -c $(SRCLIB)bitmap.c\r
+\r
+planar.obj: $(SRCLIB)planar.h $(SRCLIB)planar.c\r
+ wcl $(FLAGS) -c $(SRCLIB)planar.c\r
+\r
+mapread.obj: $(SRCLIB)mapread.h $(SRCLIB)mapread.c\r
+ wcl $(FLAGS) -c $(SRCLIB)mapread.c\r
+\r
+fmapread.obj: $(SRCLIB)fmapread.h $(SRCLIB)fmapread.c\r
+ wcl $(FLAGS) $(MFLAGS) -c $(SRCLIB)fmapread.c\r
+\r
+lib_head.obj: $(SRCLIB)lib_head.h $(SRCLIB)lib_head.c\r
+ wcl $(FLAGS) -c $(SRCLIB)lib_head.c\r
+\r
+jsmn.obj: $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c\r
+ wcl $(FLAGS) -c $(JSMNLIB)jsmn.c\r
+\r
+farjsmn.obj: $(JSMNLIB)farjsmn.h $(JSMNLIB)farjsmn.c\r
+ wcl $(FLAGS) $(MFLAGS) -c $(JSMNLIB)farjsmn.c\r
+\r
+memory.obj: $(EXMMLIB)memory.h $(EXMMLIB)memory.c\r
+ wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c\r
+\r
+#\r
+#other~\r
+#\r
+clean: .symbolic\r
+# @$(REMOVECOMMAND) *.obj\r
+ @$(REMOVECOMMAND) *.OBJ\r
+# @$(REMOVECOMMAND) *.out\r
+# @$(REMOVECOMMAND) *.OUT\r
+ @$(REMOVECOMMAND) makefi~1\r
+ @$(REMOVECOMMAND) __WCL__.LNK\r
+# @$(REMOVECOMMAND) *.smp\r
+ @$(REMOVECOMMAND) *.SMP\r