]> 4ch.mooo.com Git - 16.git/blobdiff - makefile
fack!!!! wwww
[16.git] / makefile
index 433caf816f858cc4bde11f7f7c3ab5e65b1048bd..cba89784a48b0595e99a55070de2237f1e61f222 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,7 +1,11 @@
-FLAGS=-0 -d2 \r
-SRC=src\\r
-SRCLIB=$(SRC)lib\\r
-all: test.exe pcxtest.exe test2.exe scroll.exe\r
+OFLAGS=-ot -ox -ob -ol -oh -or
+FLAGS=-0 -d2 -mh -wo $(OFLAGS)
+DIRSEP=\
+SRC=src$(DIRSEP)\r
+SRCLIB=$(SRC)lib$(DIRSEP)
+JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)
+\r
+all: test.exe pcxtest.exe test2.exe scroll.exe maptest.exe\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
@@ -17,7 +21,7 @@ pcxtest.exe: pcxtest.obj modex16.obj bitmap.obj
        wcl $(FLAGS) pcxtest.obj modex16.obj bitmap.obj\r
 \r
 maptest.exe: maptest.obj mapread.obj jsmn.obj modex16.obj bitmap.obj\r
-       wcl $(FLAGS) maptest.obj jsmn.obj modex16.obj bitmap.obj\r
+       wcl $(FLAGS) maptest.obj mapread.obj jsmn.obj modex16.obj bitmap.obj\r
 \r
 \r
 test.obj: $(SRC)test.c $(SRCLIB)modex16.h\r
@@ -29,8 +33,9 @@ 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)mapread.h\r
+maptest.obj: $(SRC)maptest.c $(SRCLIB)modex16.h\r
        wcl $(FLAGS) -c $(SRC)maptest.c\r
+
 \r
 modex16.obj: $(SRCLIB)modex16.h $(SRCLIB)modex16.c\r
        wcl $(FLAGS) -c $(SRCLIB)modex16.c\r
@@ -44,14 +49,14 @@ bitmap.obj: $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c
 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 jsmn.obj lib_head.obj\r
+mapread.obj: $(SRCLIB)mapread.h $(SRCLIB)mapread.c lib_head.obj jsmn.obj\r
        wcl $(FLAGS) -c $(SRCLIB)mapread.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: $(SRCLIB)jsmn\jsmn.h $(SRCLIB)jsmn\jsmn.c\r
-       wcl $(FLAGS) -c $(SRCLIB)jsmn\jsmn.c\r
+jsmn.obj: $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c\r
+       wcl $(FLAGS) -c $(JSMNLIB)jsmn.c\r
 \r
 clean:\r
        del *.obj\r