]> 4ch.mooo.com Git - plz.git/blobdiff - makefile
==== IT COMPILES WWWWWW ==
[plz.git] / makefile
index 4fb660914cce641aa4ecce320f110eff494aad42..b81c6197f5df7755093cff4ef7dfedaa81eff59f 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -60,19 +60,22 @@ CFLAGS=$(AFLAGS) $(IFLAGS)-lr -l=dos -wo##wwww
 OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87  -onac -ol+ -ok####x\r
 FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)\r
 \r
-\r
 EXEC = plzpart.exe\r
+OBJS = tweak.$(OBJ) plz.$(OBJ) asmyt.$(OBJ) copper.$(OBJ)\r
 \r
 all: $(EXEC)\r
 \r
-#asmyt.$(OBJ)\r
-\r
 #\r
-#game and bakapi executables\r
+#executables\r
 #\r
-plzpart.exe: plzpart.$(OBJ) copper.$(OBJ) tweak.$(OBJ) plz.$(OBJ)\r
-       wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) copper.$(OBJ) tweak.$(OBJ) plz.$(OBJ) -fm=plzpart.map\r
+plzpart.exe: plzpart.$(OBJ) $(OBJS)\r
+       wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) $(OBJS) -fm=plzpart.map\r
 \r
+# NTS we have to construct the command line into tmp.cmd because for MS-DOS\r
+# systems all arguments would exceed the pitiful 128 char command line limit\r
+#.C.OBJ:\r
+#      %write temp.cmd $(CFLAGS_THIS) $(CFLAGS_CON) $[@\r
+#      wcl @temp.cmd\r
 \r
 #\r
 #executable's objects\r
@@ -87,20 +90,37 @@ plz.$(OBJ): plz.h plz.c
        wcl $(FLAGS) -c plz.c\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
+asmyt.$(OBJ): asmyt.h asmyt.c\r
+       wcl $(FLAGS) -c asmyt.c\r
+copper.$(OBJ): copper.h copper.asm#copper.c\r
+       wasm $(AFLAGS) -zcm=tasm -c copper.asm\r
+#      wasm $(AFLAGS) -c copper.ass\r
+#      wcl $(FLAGS) -c copper.c\r
+\r
 #tasm compiled...\r
-copper.$(OBJ): copper.h copper.asm\r
-       wcl $(AFLAGS) -zcm=tasm -c copper.asm\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
+asmyt.$(OBJ): asmyt.h asmyt.asm\r
+#      wcl $(AFLAGS) -zcm=tasm -c asmyt.asm\r
 \r
 #\r
 #other~\r
 #\r
 clean: .symbolic\r
+       #@$(REMOVECOMMAND) copper.lib\r
+       #@wlib -n copper.lib\r
        @$(REMOVECOMMAND) $(EXEC)\r
 #      @$(REMOVECOMMAND) *.$(OBJ)\r
        @$(REMOVECOMMAND) *.o\r
+\r
+backupconfig: .symbolic\r
+       @$(COPYCOMMAND) .git$(DIRSEP)config git_con.fig\r
+       #@$(COPYCOMMAND) .gitmodules git_modu.les\r
+       @$(COPYCOMMAND) .gitignore git_igno.re\r
+\r
+initlibs: .symbolic\r
+       @cp git_con.fig .git/config\r
+       #@cp git_modu.les .gitmodules\r
+       @cp git_igno.re .gitignore\r