]> 4ch.mooo.com Git - 16.git/blobdiff - makefile
almost~
[16.git] / makefile
index 3296dca57f1b0d9ba87477ab52fd303872f16958..0e4f6711342cad597706665e2964865439dbcf5c 100644 (file)
--- a/makefile
+++ b/makefile
@@ -2,17 +2,21 @@
 #-zk0 = kanji support~\r
 #-zkl = current codepage\r
 \r
-CFLAGS=-zkl -zm -wo -x# -mh# -zdp# -zp16 -zq\r
+CFLAGS=-zkl -wo -x -mc# -mh# -zdp# -zp16 -zq\r
 OFLAGS=-ot -ox -ob -oh -or# -om -ol -ol+\r
 FLAGS=-0 -d2 $(OFLAGS) $(CFLAGS)\r
 REMOVECOMMAND=del\r
 DIRSEP=\\r
 SRC=src$(DIRSEP)\r
 SRCLIB=$(SRC)lib$(DIRSEP)\r
-JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)\r
-\r
-all: test.exe pcxtest.exe test2.exe scroll.exe maptest.exe\r
-\r
+JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)
+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
+
+#
+#executables
+#\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
@@ -28,8 +32,22 @@ pcxtest.exe: pcxtest.obj modex16.obj bitmap.obj lib_head.obj
 \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
-\r
+
+maptest0.exe: maptest0.obj mapread.obj jsmn.obj modex16.obj bitmap.obj lib_head.obj\r
+       wcl $(FLAGS) maptest0.obj mapread.obj jsmn.obj modex16.obj bitmap.obj lib_head.obj
+
+emmtest.exe: emmtest.obj memory.obj
+       wcl $(FLAGS) emmtest.obj memory.obj
+
+emsdump.exe: emsdump.obj memory.obj
+       wcl $(FLAGS) emsdump.obj memory.obj
+
+fmemtest.exe: fmemtest.obj# memory.obj
+       wcl $(FLAGS) fmemtest.obj# memory.obj
+
+#
+#executable's objects
+#\r
 test.obj: $(SRC)test.c $(SRCLIB)modex16.h\r
        wcl $(FLAGS) -c $(SRC)test.c\r
 \r
@@ -39,10 +57,24 @@ test2.obj: $(SRC)test2.c $(SRCLIB)modex16.h
 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
-\r
+maptest.obj: $(SRC)maptest.c $(SRCLIB)modex16.h
+       wcl $(FLAGS) -c $(SRC)maptest.c
+
+maptest0.obj: $(SRC)maptest0.c $(SRCLIB)modex16.h\r
+       wcl $(FLAGS) -c $(SRC)maptest0.c
+
+emmtest.obj: $(SRC)emmtest.c\r
+       wcl $(FLAGS) -c $(SRC)emmtest.c\r
+
+emsdump.obj: $(SRC)emsdump.c\r
+       wcl $(FLAGS) -c $(SRC)emsdump.c
+
+fmemtest.obj: $(SRC)fmemtest.c\r
+       wcl $(FLAGS) -c $(SRC)fmemtest.c
+
+#
+#non executable objects libraries
+#\r
 modex16.obj: $(SRCLIB)modex16.h $(SRCLIB)modex16.c\r
        wcl $(FLAGS) -c $(SRCLIB)modex16.c\r
 \r
@@ -63,7 +95,13 @@ lib_head.obj: $(SRCLIB)lib_head.h $(SRCLIB)lib_head.c
 \r
 jsmn.obj: $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c\r
        wcl $(FLAGS) -c $(JSMNLIB)jsmn.c\r
-\r
+
+memory.obj: $(EXMMLIB)memory.h $(EXMMLIB)memory.c\r
+       wcl $(FLAGS) -c $(EXMMLIB)memory.c
+
+#
+#other~
+#\r
 clean: .symbolic\r
 #      @$(REMOVECOMMAND) *.obj\r
        @$(REMOVECOMMAND) *.OBJ\r