]> 4ch.mooo.com Git - plz.git/blobdiff - makefile
dang it!!
[plz.git] / makefile
index bef08895c2ec72386f71766d0397c7ebd2c119f6..c853b80e896ee016271265756febf93d2eea3c2b 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -51,7 +51,7 @@ TARGET_OS = dos
 SRC=src$(DIRSEP)\r
 SRCLIB=$(SRC)lib$(DIRSEP)\r
 \r
-AFLAGS=-mh -0 -d1\r
+AFLAGS=-mh -0 -d1 -e=65536\r
 PLZFLAGS=-fh=plzpart.hed\r
 SFLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k32768\r
 DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS)\r
@@ -62,14 +62,15 @@ FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)
 \r
 \r
 EXEC = plzpart.exe\r
+OBJS = copper.$(OBJ) tweak.$(OBJ) plz.$(OBJ) asmyt.$(OBJ)\r
 \r
 all: $(EXEC)\r
 \r
 #\r
 #game and bakapi executables\r
 #\r
-plzpart.exe: plzpart.$(OBJ) copper.$(OBJ) asmyt.$(OBJ) tweak.$(OBJ) plz.$(OBJ)\r
-       wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) copper.$(OBJ) asmyt.$(OBJ) tweak.$(OBJ) plz.$(OBJ) -fm=16.map\r
+plzpart.exe: plzpart.$(OBJ) $(OBJS)\r
+       wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) $(OBJS) -fm=plzpart.map\r
 \r
 \r
 #\r
@@ -83,16 +84,25 @@ plzpart.$(OBJ): plzpart.h plzpart.c
 #\r
 plz.$(OBJ): plz.h plz.c\r
        wcl $(FLAGS) -c plz.c\r
-copper.$(OBJ): copper.h copper.asm\r
-       wcl $(AFLAGS) -zcm=tasm -c copper.asm\r
-tweak.$(OBJ): tweak.h tweak.asm\r
-       wcl $(AFLAGS) -zcm=tasm -c tweak.asm\r
-asmyt.$(OBJ): asmyt.h asmyt.asm\r
-       wcl $(AFLAGS) -zcm=tasm -c asmyt.asm\r
+tweak.$(OBJ): tweak.h tweak.c\r
+       wcl $(FLAGS) -c tweak.c\r
+asmyt.$(OBJ): asmyt.h asmyt.c\r
+       wcl $(FLAGS) -c asmyt.c\r
+copper.$(OBJ): copper.h copper.c copper.asm\r
+#      wcl $(AFLAGS) -zcm=tasm -c copper.asm\r
+       wcl $(FLAGS) -c copper.c\r
+#tasm compiled...\r
+# copper.$(OBJ): copper.h copper.asm\r
+#      wcl $(AFLAGS) -zcm=tasm -c copper.asm\r
+# tweak.$(OBJ): tweak.h tweak.asm\r
+#      wcl $(AFLAGS) -zcm=tasm -c tweak.asm\r
+# asmyt.$(OBJ): asmyt.h asmyt.asm\r
+#      wcl $(AFLAGS) -zcm=tasm -c asmyt.asm\r
 \r
 #\r
 #other~\r
 #\r
 clean: .symbolic\r
        @$(REMOVECOMMAND) $(EXEC)\r
-       #@$(REMOVECOMMAND) *.$(OBJ)\r
+#      @$(REMOVECOMMAND) *.$(OBJ)\r
+       @$(REMOVECOMMAND) *.o\r