]> 4ch.mooo.com Git - 16.git/blobdiff - makefile
[16_ca needs huge amounts of work and I should remember what needs to be done soon...
[16.git] / makefile
index eeb4d5aca29d6d49d760abc0882d494dfa59ff07..3e73a7cb84649237ff8787bbe2269cdfd78c4afe 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -34,7 +34,7 @@
 # comment this out on game release.
 # serial output goes to COM1 at 9600 baud 1 stop bit odd parity.
 # serial output is plain text ASCII.
-DEBUGSERIAL=0
+DEBUGSERIAL=1
 
 DELLOGFILE=1
 
@@ -135,8 +135,7 @@ LIBFLAGS=$(WLIBQ) -b -n
 VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ)
 #OLDLIBOBJS=bitmap.$(OBJ) 16render.$(OBJ)
 GFXLIBOBJS = 16_vl.$(OBJ) 16_vlpal.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16_vrs.$(OBJ) 16_spri.$(OBJ) $(OLDLIBOBJS)
-16LIBNOINOBJS = 16_mm.$(OBJ) 16_pm.$(OBJ) 16_ca.$(OBJ) 16_tail.$(OBJ) 16_head.$(OBJ) 16_enti.$(OBJ) 16_dbg.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) 16_wcpu.$(OBJ) 16_timer.$(OBJ) jsmn.$(OBJ) 16_map.$(OBJ) 16text.$(OBJ)
-16LIBOBJS = $(16LIBNOINOBJS) 16_in.$(OBJ)
+16LIBOBJS = 16_mm.$(OBJ) 16_pm.$(OBJ) 16_ca.$(OBJ) 16_tail.$(OBJ) 16_head.$(OBJ) 16_enti.$(OBJ) 16_dbg.$(OBJ) 16_in.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) 16_wcpu.$(OBJ) 16_timer.$(OBJ) jsmn.$(OBJ) 16_map.$(OBJ) 16text.$(OBJ)
 DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)
 !ifeq DEBUGSERIAL 1
 DOSLIBOBJ += 8250.$(OBJ)
@@ -188,16 +187,16 @@ EXTERNTESTEXEC = &
        wcpu.exe &
        db.exe
 TESTEXEC = &
-       test.exe &
+       vidtest.exe &
        tesuto.exe &
        0.exe &
        exmmtest.exe &
        vgmtest.exe &
-       zcroll.exe &
+       xcroll.exe &
        inputest.exe &
        vrstest.exe &
-       maptest.exe &
-       inntest.exe
+       maptest.exe
+#zcroll.exe &
 TESTEXEC2 = &
        pcxtest.exe &
        scroll.exe &
@@ -250,20 +249,22 @@ bakapi.exe:               bakapi.$(OBJ) gfx.lib $(DOSLIB)
 #
 scroll.exe:    scroll.$(OBJ) $(16LIB) gfx.lib $(DOSLIB)
 scroll.$(OBJ): $(SRC)/scroll.c
+xcroll.exe:    xcroll.$(OBJ) $(16LIB) gfx.lib $(DOSLIB)
+xcroll.$(OBJ): $(SRC)/xcroll.c
 zcroll.exe:    zcroll.$(OBJ) $(16LIB) gfx.lib $(DOSLIB)
 zcroll.$(OBJ): $(SRC)/zcroll.c
 tesuto.exe:    tesuto.$(OBJ) 16_head.$(OBJ) gfx.lib $(DOSLIB)
 tesuto.$(OBJ): $(SRC)/tesuto.c
 0.exe:                 0.$(OBJ) $(16LIB) gfx.lib $(DOSLIB)
 0.$(OBJ):               $(SRC)/0.c
-test.exe:               test.$(OBJ) $(16LIB) gfx.lib $(DOSLIB)
+vidtest.exe:            vidtest.$(OBJ) $(16LIB) gfx.lib $(DOSLIB)
 #test2.exe:    test2.$(OBJ) gfx.lib $(DOSLIB)
 test0.exe:             test0.$(OBJ)
 fonttest.exe:   fonttest.$(OBJ) gfx.lib
 #fonttes0.exe: fonttes0.$(OBJ) $(16LIB)
 fontgfx.exe:   fontgfx.$(OBJ) gfx.lib $(DOSLIB)
 inputest.exe:   inputest.$(OBJ) $(16LIB) $(DOSLIB) gfx.lib
-inntest.exe:           inntest.$(OBJ)  $(16LIBNOINOBJS) 16_in_1.$(OBJ) $(DOSLIB) gfx.lib
+#inntest.exe:          inntest.$(OBJ)  $(16LIBNOINOBJS) 16_in_1.$(OBJ) $(DOSLIB) gfx.lib
 #sountest.exe: sountest.$(OBJ) $(16LIB)
 pcxtest.exe:   pcxtest.$(OBJ) gfx.lib $(DOSLIB) $(16LIB)
 vrstest.exe:   vrstest.$(OBJ) $(16LIB) gfx.lib $(DOSLIB)
@@ -285,7 +286,7 @@ wcpu.exe:           wcpu.$(OBJ) $(16LIB) $(DOSLIB)
 #
 16.$(OBJ):             $(SRC)/16.c $(SRC)/16.h
 bakapi.$(OBJ): $(SRC)/bakapi.c $(SRC)/bakapi.h
-test.$(OBJ):   $(SRC)/test.c $(SRCLIB)/16_vl.h
+vidtest.$(OBJ):        $(SRC)/vidtest.c $(SRCLIB)/16_vl.h
 #test2.$(OBJ): $(SRC)/test2.c $(SRCLIB)/16_vl.h
 test0.$(OBJ):   $(SRC)/test0.c
 pcxtest.$(OBJ):$(SRC)/pcxtest.c $(SRCLIB)/16_vl.h
@@ -304,7 +305,7 @@ fonttest.$(OBJ):$(SRC)/fonttest.c
 #fonttes0.$(OBJ): $(SRC)/fonttes0.c
 fontgfx.$(OBJ):$(SRC)/fontgfx.c
 inputest.$(OBJ):$(SRC)/inputest.c
-inntest.$(OBJ):$(SRC)/inntest.c
+#inntest.$(OBJ):$(SRC)/inntest.c
 #sountest.$(OBJ): $(SRC)/sountest.c
 #miditest.$(OBJ): $(SRC)/miditest.c
 #testemm.$(OBJ):$(SRC)/testemm.c
@@ -359,7 +360,7 @@ mapread.$(OBJ):$(SRCLIB)/mapread.c $(SRCLIB)/mapread.h
 16_map.$(OBJ):$(SRCLIB)/16_map.c $(SRCLIB)/16_map.h
 16_timer.$(OBJ):$(SRCLIB)/16_timer.c $(SRCLIB)/16_timer.h
 16_in.$(OBJ):   $(SRCLIB)/16_in.c $(SRCLIB)/16_in.h
-16_in_1.$(OBJ):         $(SRCLIB)/16_in_1.c $(SRCLIB)/16_in_1.h
+#16_in_1.$(OBJ):        $(SRCLIB)/16_in_1.c $(SRCLIB)/16_in_1.h
 16_rf.$(OBJ):   $(SRCLIB)/16_rf.c      $(SRCLIB)/16_rf.h
 16_mm.$(OBJ):   $(SRCLIB)/16_mm.c      $(SRCLIB)/16_mm.h
 16_pm.$(OBJ):   $(SRCLIB)/16_pm.c      $(SRCLIB)/16_pm.h
@@ -384,8 +385,8 @@ ll.$(OBJ):          $(SRCLIB)/ll.c  $(SRCLIB)/ll.h
 #other~
 #
 clean: .symbolic
-       @if not exist $(DOSLIBDIR)/buildall.sh wmake -h initlibs
-       @wmake -h initscript
+       @if not exist $(DOSLIBDIR)/buildall.sh wmake -s -h initlibs
+       @wmake -s -h initscript
        @for %f in ($(ALLEXEC)) do @if exist %f $(REMOVECOMMAND) %f
 !ifdef __LINUX__
        @if exist *.LIB $(REMOVECOMMAND) *.LIB
@@ -393,7 +394,7 @@ clean: .symbolic
        @if exist *.EXE $(REMOVECOMMAND) *.EXE
        @if exist *.OBJ $(REMOVECOMMAND) *.OBJ
        #@for %f in ($(SPRIUTILEXEC)) do @if exist %f $(REMOVECOMMAND) %f
-       @if not exist vrl2vrs wmake -h vrs
+       @if not exist vrl2vrs wmake -s -h pcx2vrl
 !else
        @if exist *.o $(REMOVECOMMAND) *.o
 !endif
@@ -472,11 +473,11 @@ www: .symbolic
        @for %f in ($(EXEC)) do @if exist %f @$(COPYCOMMAND) %f /var/www/
        @./src/util/z.sh $(EXEC) $(EXEC)
        @./src/util/z2.sh data.zip data
-       @wmake -h wwwext
+       @wmake -s -h wwwext
 
 wwwext: .symbolic
-       @wmake -h wwwext1
-       @wmake -h wwwext2
+       @wmake -s -h wwwext1
+       @wmake -s -h wwwext2
 
 wwwext1: .symbolic
        ####----@ssh -p $(HOSTPORT) $(HOSTUSER)@$(HOSTADDR) 'rm -f $(HOSTDIR)/16/*exe*'
@@ -531,11 +532,11 @@ reinitlibs: .symbolic
        @$(REMOVECOMMAND) -rf 16/wolf3d
        @$(REMOVECOMMAND) -rf 16/keen
        @$(REMOVECOMMAND) -rf 16/Catacomb3D
-       @wmake -h initlibs
+       @wmake -s -h initlibs
 
 initlibs: .symbolic
-       @wmake -h initconfig
-       @wmake -h getlib
+       @wmake -s -h initconfig
+       @wmake -s -h getlib
        @cd 16
        @git clone https://github.com/FlatRockSoft/CatacombApocalypse.git
        @git clone https://github.com/id-Software/wolf3d.git
@@ -555,19 +556,19 @@ getlib: .symbolic
 ##
 xlib: .symbolic
        @cd 16$(DIRSEP)xlib
-       @wmake -h clean
-       @wmake -h all
+       @wmake -s -h clean
+       @wmake -s -h all
        @cd $(BUILD_ROOT)
 
 mx: .symbolic
        @cd 16$(DIRSEP)xw
 #      @wmake clean
-       @wmake -h all
+       @wmake -s -h all
        @cd $(BUILD_ROOT)
 
 mx_: .symbolic
        @cd 16$(DIRSEP)xw_
-       @wmake -h -f makefile all
+       @wmake -s -h -f makefile all
        @cd $(BUILD_ROOT)
 
 !ifdef __LINUX__