X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=makefile;h=11345c6d6b7c125c8a14fb2b211fac96500f09e0;hb=2e9ba06417dfe0088c7432c2f62c4459c2d5d6f2;hp=86c191bc8c609114e31b487fad04436578b4a4d9;hpb=1ff7522be9df2fd844d372e4a3f510a1bc9a5519;p=16.git diff --git a/makefile b/makefile index 86c191bc..11345c6d 100755 --- a/makefile +++ b/makefile @@ -26,6 +26,12 @@ # -zk0 kanji support~ # -zkl current codepage +# this enables debug output to the serial port. +# 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=1 + #%.C #192x144 #wwww will add these @@ -76,19 +82,28 @@ FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS) VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ) DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ) -16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) 16_timer.$(OBJ) +16LIBOBJS = 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) 16_dbg.$(OBJ) kitten.$(OBJ) 16_hc.$(OBJ) 16_timer.$(OBJ) GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) 16planar.$(OBJ) $(DOSLIBLIBS) DOSLIBLIBS=$(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu$(DIRSEP)dos86h$(DIRSEP)cpu.lib $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos$(DIRSEP)dos86h$(DIRSEP)dos.lib $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vga.lib -TESTEXEC = exmmtest.exe test.exe pcxtest.exe pcxtest2.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe scroll.exe vgmtest.exe inputest.exe palettel.exe planrpcx.exe +!ifeq DEBUGSERIAL 1 +FLAGS += -DDEBUGSERIAL +DOSLIBOBJ += 8250.$(OBJ) +DOSLIBLIBS += $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250$(DIRSEP)dos86h$(DIRSEP)8250.lib +!endif + +TESTEXEC = exmmtest.exe test.exe test0.exe pcxtest.exe pcxtest2.exe test2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe scroll.exe vgmtest.exe inputest.exe palettel.exe planrpcx.exe -EXEC = 16.exe bakapi.exe $(TESTEXEC) tesuto.exe +EXEC = 16.exe bakapi.exe $(TESTEXEC) tesuto.exe 0.exe -all: $(EXEC) joytest.exe vrs +all: $(EXEC) joytest.exe #16.lib => $(16LIBOBJS) bug.... 16LIB=$(16LIBOBJS) +!ifeq DEBUGSERIAL 1 +16LIB += $(DOSLIBLIBS) +!endif # #game and bakapi executables # @@ -117,12 +132,20 @@ tesuto.exe: tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib tesuto.$(OBJ): $(SRC)tesuto.c wcl $(FLAGS) $(WCLQ) -c $(SRC)tesuto.c +0.exe: 0.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib + wcl $(FLAGS) $(WCLQ) 0.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib +0.$(OBJ): $(SRC)0.c + wcl $(FLAGS) $(WCLQ) -c $(SRC)0.c + test.exe: test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) $(DOSLIBLIBS) $(16LIB) wcl $(FLAGS) test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) $(DOSLIBLIBS) $(16LIB) -fm=test.mah test2.exe: test2.$(OBJ) $(DOSLIBLIBS) gfx.lib wcl $(FLAGS) test2.$(OBJ) $(DOSLIBLIBS) gfx.lib -fm=test2.mah +test0.exe: test0.$(OBJ) + wcl $(FLAGS) test0.$(OBJ) -fm=test0.mah + fonttest.exe: fonttest.$(OBJ) $(16LIB) gfx.lib wcl $(FLAGS) fonttest.$(OBJ) $(16LIB) gfx.lib -fm=fonttest.mah @@ -182,6 +205,9 @@ test.$(OBJ): $(SRC)test.c $(SRCLIB)modex16.h test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h wcl $(FLAGS) -c $(SRC)test2.c +test0.$(OBJ): $(SRC)test0.c + wcl $(FLAGS) -c $(SRC)test0.c + pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h wcl $(FLAGS) -c $(SRC)pcxtest.c @@ -270,6 +296,8 @@ $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vgatty.lib: cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vga.lib: cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh +$(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250$(DIRSEP)dos86h$(DIRSEP)8250.lib: + cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250 && .$(DIRSEP)make.sh joytest.exe: cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)joystick && .$(DIRSEP)make.sh && $(COPYCOMMAND) dos86h$(DIRSEP)test.exe $(PDIR)$(PDIR)$(PDIR)$(PDIR)$(PDIR)joytest.exe @@ -320,6 +348,9 @@ mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c 16_ca.$(OBJ): $(SRCLIB)16_ca.h $(SRCLIB)16_ca.c wcl $(FLAGS) -c $(SRCLIB)16_ca.c +16_dbg.$(OBJ): $(SRCLIB)16_dbg.h $(SRCLIB)16_dbg.c + wcl $(FLAGS) -c $(SRCLIB)16_dbg.c + midi.$(OBJ): $(SRCLIB)midi.h $(SRCLIB)midi.c wcl $(FLAGS) -c $(SRCLIB)midi.c @@ -395,6 +426,7 @@ clean: .symbolic backupconfig: .symbolic @$(COPYCOMMAND) .git$(DIRSEP)config git_con.fig @$(COPYCOMMAND) .gitmodules git_modu.les + @$(COPYCOMMAND) .gitignore git_igno.re comp: .symbolic @upx -9 $(EXEC) @@ -435,11 +467,13 @@ reinitlibs: .symbolic @rm -rf $(SRCLIB)jsmn @rm -rf 16/CatacombApocalypse @rm -rf 16/wolf3d + @rm -rf 16/keen @wmake -h initlibs initlibs: .symbolic @cp git_con.fig .git/config @cp git_modu.les .gitmodules + @cp git_igno.re .gitignore @cd $(SRCLIB) @git clone https://github.com/joncampbell123/doslib.git @git clone https://github.com/zserge/jsmn.git @@ -447,6 +481,7 @@ initlibs: .symbolic @cd 16 @git clone https://github.com/FlatRockSoft/CatacombApocalypse.git @git clone https://github.com/id-Software/wolf3d.git + @git clone https://github.com/keendreams/keen.git @cd $(PDIR) ##