FLAGS=-0 -d2 $(OFLAGS) $(CFLAGS)
REMOVECOMMAND=del
DIRSEP=\
-SRC=src$(DIRSEP)\r
+SRC=src$(DIRSEP)
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
-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
-\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
-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
-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
+
+all: test.exe pcxtest.exe test2.exe scroll.exe maptest.exe
+
+scroll.exe: scroll.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj lib_head.obj
+ wcl $(FLAGS) scroll.obj modex16.obj dos_kb.obj bitmap.obj mapread.obj jsmn.obj lib_head.obj# 16/lib/x/modex.lib
+scroll.obj: $(SRC)scroll.c
+ wcl $(FLAGS) -c $(SRC)scroll.c
+test.exe: test.obj modex16.obj bitmap.obj lib_head.obj
+ wcl $(FLAGS) test.obj modex16.obj bitmap.obj lib_head.obj
+
+test2.exe: test2.obj modex16.obj bitmap.obj planar.obj lib_head.obj
+ wcl $(FLAGS) test2.obj modex16.obj bitmap.obj planar.obj lib_head.obj
+
+pcxtest.exe: pcxtest.obj modex16.obj bitmap.obj lib_head.obj
+ wcl $(FLAGS) pcxtest.obj modex16.obj bitmap.obj lib_head.obj
+
+maptest.exe: maptest.obj mapread.obj jsmn.obj modex16.obj bitmap.obj lib_head.obj
+ wcl $(FLAGS) maptest.obj mapread.obj jsmn.obj modex16.obj bitmap.obj lib_head.obj
+
+
+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
+
+maptest.obj: $(SRC)maptest.c $(SRCLIB)modex16.h
+ wcl $(FLAGS) -c $(SRC)maptest.c
+
+
+modex16.obj: $(SRCLIB)modex16.h $(SRCLIB)modex16.c
+ wcl $(FLAGS) -c $(SRCLIB)modex16.c
+
+dos_kb.obj: $(SRCLIB)dos_kb.h $(SRCLIB)dos_kb.c
+ wcl $(FLAGS) -c $(SRCLIB)dos_kb.c
+
+bitmap.obj: $(SRCLIB)bitmap.h $(SRCLIB)bitmap.c
+ wcl $(FLAGS) -c $(SRCLIB)bitmap.c
+
+planar.obj: $(SRCLIB)planar.h $(SRCLIB)planar.c
+ wcl $(FLAGS) -c $(SRCLIB)planar.c
+
+mapread.obj: $(SRCLIB)mapread.h $(SRCLIB)mapread.c
+ wcl $(FLAGS) -c $(SRCLIB)mapread.c
+
+lib_head.obj: $(SRCLIB)lib_head.h $(SRCLIB)lib_head.c
+ wcl $(FLAGS) -c $(SRCLIB)lib_head.c
+
+jsmn.obj: $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c
wcl $(FLAGS) -c $(JSMNLIB)jsmn.c
-clean: .symbolic\r
- @$(REMOVECOMMAND) *.obj
+clean: .symbolic
+# @$(REMOVECOMMAND) *.obj
@$(REMOVECOMMAND) *.OBJ
- @$(REMOVECOMMAND) *.out
- @$(REMOVECOMMAND) *.OUT
+# @$(REMOVECOMMAND) *.out
+# @$(REMOVECOMMAND) *.OUT
@$(REMOVECOMMAND) makefi~1
- @$(REMOVECOMMAND) __WCL__.LNK\r
- @$(REMOVECOMMAND) *.smp
- @$(REMOVECOMMAND) *.SMP\r
+ @$(REMOVECOMMAND) __WCL__.LNK
+# @$(REMOVECOMMAND) *.smp
+ @$(REMOVECOMMAND) *.SMP