--- /dev/null
+#
+# Higanbana Project makefile
+#
+#
+# Possible optimizations for 8088 class processors
+#
+# -oa Relax alias checking
+# -ob Try to generate straight line code
+# -oe - expand user functions inline (-oe=20 is default, adds lots of code)
+# -oh Enable repeated optimizations
+# -oi generate certain lib funcs inline
+# -oi+ Set max inline depth (C++ only, use -oi for C)
+# -ok Flowing of register save into function flow graph
+# -ol loop optimizations
+# -ol+ loop optimizations plus unrolling
+# -or Reorder for pipelined (486+ procs); not sure if good to use
+# -os Favor space over time
+# -ot Favor time over space
+# -ei Allocate an "int" for all enum types
+# -zp2 Allow compiler to add padding to structs
+# -zpw Use with above; make sure you are warning free!
+# -0 8088/8086 class code generation
+# -s disable stack overflow checking
+
+# -zk0u translate kanji to unicode... wwww
+# -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
+
+#192x144
+#wwww will add these
+!ifdef __LINUX__
+#!ifdef UNIX
+to_os_path=\=/
+REMOVECOMMAND=rm -f
+COPYCOMMAND=cp -f
+DIRSEP=/
+OBJ=obj
+DUMP=cat
+!else #DOS ^^
+to_os_path=/=\
+REMOVECOMMAND=del
+COPYCOMMAND=copy /y
+DIRSEP=\
+OBJ=obj
+DUMP=type
+!endif
+
+TARGET_OS = dos
+
+BUILD_ROOT=$+$(%__CWD__)$-
+#EXMMTESTDIR=16$(DIRSEP)exmmtest$(DIRSEP)
+DATADIR=data$(DIRSEP)
+SPRI=$(DATADIR)$(DIRSEP)spri$(DIRSEP)
+SRC=src
+SRCLIB=src/lib
+JSMNLIB=src/lib/jsmn
+NYANLIB=src/lib/nyan
+EXMMLIB=src/lib/exmm
+MODEXLIB16=src/lib/modex16
+MODEXLIB=src/lib/modex
+VGMSNDLIB=src/lib/vgmsnd
+DOSLIB=src/lib/doslib
+WCPULIB=src/lib/wcpu
+
+DOSLIB_CPU=src/lib/doslib/hw/cpu
+DOSLIB_DOS=src/lib/doslib/hw/dos
+DOSLIB_VGA=src/lib/doslib/hw/vga
+DOSLIB_8250=src/lib/doslib/hw/8250
+DOSLIB_JOYSTICK=src/lib/doslib/hw/joystick
+
+#
+# quiet flags
+#
+WLIBQ=-q
+WCLQ=-zq $(WLIBQ)
+UPXQ=-qqq
+
+#
+# compile flags
+#
+SFLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k32768#54096#60000
+DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS)
+ZFLAGS=-zk0 -zc -zp8 -zm $(WCLQ)
+OFLAGS=-obmilr -oe=24 -out -oh -ei -zp8 -onac -ol+ -ok####x
+FLAGS=$(AFLAGS) $(IFLAGS) -wo -i$(DOSLIB) $(LFLAGS) -fo=.$(OBJ) $(OFLAGS) $(DFLAGS) $(ZFLAGS)
+T_FLAGS=-bt=dos -mh -0 -fpi87
+
+CPPFLAGS=-DTARGET_MSDOS=16
+!ifeq DEBUGSERIAL 1
+CPPFLAGS += -DDEBUGSERIAL
+!endif
+AFLAGS=$(WCLQ) $(T_FLAGS) -d1 -fo=.$(OBJ)
+CFLAGS=$(WCLQ) $(T_FLAGS) -d1 -fo=.$(OBJ) -wo -i"$(DOSLIB)" $(FLAGS)# $(O_FLAGS) $(S_FLAGS) $(Z_FLAGS)
+LFLAGS=$(WCLQ) -l=dos -fm=$^&.mah
+LIBFLAGS=$(WLIBQ) -b -n
+
+#
+# objects
+#
+VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(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) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) 16_vrs.$(OBJ) 16_sprit.$(OBJ)
+#16planar.$(OBJ) planar.$(OBJ)
+DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)
+!ifeq DEBUGSERIAL 1
+DOSLIBOBJ += 8250.$(OBJ)
+!endif
+
+#
+# libraries
+#
+DOSLIBLIBS = $(DOSLIB_CPU)/dos86h/cpu.lib $(DOSLIB_DOS)/dos86h/dos.lib $(DOSLIB_VGA)/dos86h/vga.lib
+!ifeq DEBUGSERIAL 1
+DOSLIBLIBS += $(DOSLIB_8250)/dos86h/8250.lib
+!endif
+16LIB=$(16LIBOBJS)#16.lib bad program lock up
+
+#
+# Files locations
+#
+.c : $(SRC);$(SRCLIB);$(MODEXLIB16);$(JSMNLIB);$(NYANLIB);$(VGMSNDLIB);$(WCPULIB)
+
+.asm : $(MODEXLIB)
+
+.lib : .;$(DOSLIB_CPU)/dos86h;$(DOSLIB_DOS)/dos86h;$(DOSLIB_VGA)/dos86h;$(DOSLIB_8250)/dos86h
+
+.obj : .
+
+#
+# Default make rules
+#
+.c.obj:
+ *wcl $(CPPFLAGS) $(CFLAGS) $(extra_$^&_obj_opts) -c $[@
+
+.asm.obj:
+ *wcl $(AFLAGS) $(extra_$^&_obj_opts) -c $[@
+
+.obj.exe :
+ *wcl $(LFLAGS) $(extra_$^&_exe_opts) -fe=$@ $<
+
+.obj.lib :
+ *wlib $(LIBFLAGS) $(extra_$^&_lib_opts) $@ $<
+
+#
+# List of executables to build
+#
+TESTEXEC = &
+ test.exe &
+ test0.exe &
+ pcxtest.exe &
+ pcxtest2.exe &
+ palettec.exe &
+ maptest.exe &
+ fmemtest.exe &
+ fonttest.exe &
+ fontgfx.exe &
+ scroll.exe &
+ vgmtest.exe &
+ inputest.exe &
+ palettel.exe &
+ exmmtest.exe &
+ vrstest.exe
+EXEC = &
+ 16.exe &
+ bakapi.exe &
+ tesuto.exe &
+ 0.exe &
+ $(TESTEXEC)
+
+all: $(EXEC) joytest.exe
+
+#
+# game and bakapi executables
+#
+16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
+bakapi.exe: bakapi.$(OBJ) gfx.lib $(DOSLIBLIBS)
+
+#
+# Test Executables!
+#
+scroll.exe: scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
+scroll.$(OBJ): $(SRC)/scroll.c
+tesuto.exe: tesuto.$(OBJ) 16_head.$(OBJ) gfx.lib $(DOSLIBLIBS)
+tesuto.$(OBJ): $(SRC)/tesuto.c
+0.exe: 0.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
+0.$(OBJ): $(SRC)/0.c
+test.exe: test.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
+#test2.exe: test2.$(OBJ) gfx.lib $(DOSLIBLIBS)
+test0.exe: test0.$(OBJ)
+fonttest.exe: fonttest.$(OBJ) gfx.lib
+#fonttes0.exe: fonttes0.$(OBJ) $(16LIB)
+fontgfx.exe: fontgfx.$(OBJ) gfx.lib $(DOSLIBLIBS)
+inputest.exe: inputest.$(OBJ) $(16LIB) $(DOSLIBLIBS)
+#sountest.exe: sountest.$(OBJ) $(16LIB)
+pcxtest.exe: pcxtest.$(OBJ) gfx.lib $(DOSLIBLIBS)
+vrstest.exe: vrstest.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)
+palettec.exe: palettec.$(OBJ) gfx.lib $(DOSLIBLIBS)
+palettel.exe: palettel.$(OBJ) gfx.lib $(DOSLIBLIBS)
+pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib $(DOSLIBLIBS)
+#planrpcx.exe: planrpcx.$(OBJ) gfx.lib
+maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) gfx.lib $(DOSLIBLIBS)
+fmemtest.exe: fmemtest.$(OBJ)
+exmmtest.exe: exmmtest.$(OBJ) $(16LIB) $(DOSLIBLIBS)
+vgmtest.exe: vgmtest.$(OBJ) vgmsnd.lib $(16LIB) $(DOSLIBLIBS)
+
+#
+# executable's objects
+#
+16.$(OBJ): $(SRC)/16.c $(SRC)/16.h
+bakapi.$(OBJ): $(SRC)/bakapi.c $(SRC)/bakapi.h
+test.$(OBJ): $(SRC)/test.c $(SRCLIB)/modex16.h
+#test2.$(OBJ): $(SRC)/test2.c $(SRCLIB)/modex16.h
+test0.$(OBJ): $(SRC)/test0.c
+pcxtest.$(OBJ): $(SRC)/pcxtest.c $(SRCLIB)/modex16.h
+vrstest.$(OBJ): $(SRC)/vrstest.c $(SRCLIB)/modex16.h
+#planrpcx.$(OBJ): $(SRC)/planrpcx.c $(SRCLIB)/modex16.h
+pcxtest2.$(OBJ): $(SRC)/pcxtest2.c $(SRCLIB)/modex16.h
+palettec.$(OBJ): $(SRC)/palettec.c
+palettel.$(OBJ): $(SRC)/palettel.c
+maptest.$(OBJ): $(SRC)/maptest.c $(SRCLIB)/modex16.h
+#emmtest.$(OBJ): $(SRC)/emmtest.c
+#emsdump.$(OBJ): $(SRC)/emsdump.c
+fmemtest.$(OBJ): $(SRC)/fmemtest.c
+fonttest.$(OBJ): $(SRC)/fonttest.c
+#fonttes0.$(OBJ): $(SRC)/fonttes0.c
+fontgfx.$(OBJ): $(SRC)/fontgfx.c
+inputest.$(OBJ): $(SRC)/inputest.c
+#sountest.$(OBJ): $(SRC)/sountest.c
+#miditest.$(OBJ): $(SRC)/miditest.c
+#testemm.$(OBJ): $(SRC)/testemm.c
+#testemm0.$(OBJ): $(SRC)/testemm0.c
+#tsthimem.$(OBJ): $(SRC)/tsthimem.c
+exmmtest.$(OBJ): $(SRC)/exmmtest.c
+vgmtest.$(OBJ): $(SRC)/vgmtest.c
+
+#
+# non executable objects libraries
+#
+
+16.lib: $(16LIBOBJS)
+vgmsnd.lib: $(VGMSNDOBJ)
+
+gfx.lib: $(GFXLIBOBJS)
+ *wlib $(LIBFLAGS) $(extra_$^&_lib_opts) $@ $<
+
+# extdep:
+# !include $(DOSLIBDIR)$(DIRSEP)extdep.mak
+
+# library deps 16-bit huge
+$(DOSLIB_CPU)/dos86h/cpu.lib:
+ cd $(DOSLIB_CPU:$(to_os_path)) && .$(DIRSEP)make.sh && cd $(BUILD_ROOT)
+$(DOSLIB_DOS)/dos86h/dos.lib:
+ cd $(DOSLIB_DOS:$(to_os_path)) && .$(DIRSEP)make.sh && cd $(BUILD_ROOT)
+$(DOSLIB_VGA)/dos86h/vgatty.lib:
+ cd $(DOSLIB_VGA:$(to_os_path)) && .$(DIRSEP)make.sh && cd $(BUILD_ROOT)
+$(DOSLIB_VGA)/dos86h/vga.lib:
+ cd $(DOSLIB_VGA:$(to_os_path)) && .$(DIRSEP)make.sh && cd $(BUILD_ROOT)
+$(DOSLIB_8250)/dos86h/8250.lib:
+ cd $(DOSLIB_8250:$(to_os_path)) && .$(DIRSEP)make.sh && cd $(BUILD_ROOT)
+
+joytest.exe:
+ cd $(DOSLIB_JOYSTICK:$(to_os_path)) && .$(DIRSEP)make.sh && cd $(BUILD_ROOT)
+ $(COPYCOMMAND) $(DOSLIB_JOYSTICK:$(to_os_path))$(DIRSEP)dos86h$(DIRSEP)test.exe joytest.exe
+#$(DOSLIBLIBS): .symbolic
+# @cd $(DOSLIB:$(to_os_path))
+# @.$(DIRSEP)buildall.sh
+# @cd $(BUILD_ROOT)
+
+modex16.$(OBJ): $(SRCLIB)/modex16.c $(SRCLIB)/modex16.h
+bakapee.$(OBJ): $(SRCLIB)/bakapee.c $(SRCLIB)/bakapee.h
+16render.$(OBJ): $(SRCLIB)/16render.c $(SRCLIB)/16render.h
+16planar.$(OBJ): $(MODEXLIB16)/16planar.c $(MODEXLIB16)/16planar.h
+16_vrs.$(OBJ): $(SRCLIB)/16_vrs.c $(SRCLIB)/16_vrs.h $(DOSLIBLIBS)
+16_sprit.$(OBJ): $(SRCLIB)/16_sprit.c $(SRCLIB)/16_sprit.h
+bitmap.$(OBJ): $(SRCLIB)/bitmap.c $(SRCLIB)/bitmap.h
+planar.$(OBJ): $(SRCLIB)/planar.c $(SRCLIB)/planar.h
+scroll16.$(OBJ): $(SRCLIB)/scroll16.c $(SRCLIB)/scroll16.h
+16text.$(OBJ): $(SRCLIB)/16text.c
+mapread.$(OBJ): $(SRCLIB)/mapread.c $(SRCLIB)/mapread.h
+16_timer.$(OBJ): $(SRCLIB)/16_timer.c $(SRCLIB)/16_timer.h
+16_in.$(OBJ): $(SRCLIB)/16_in.c $(SRCLIB)/16_in.h
+16_mm.$(OBJ): $(SRCLIB)/16_mm.c $(SRCLIB)/16_mm.h
+16_ca.$(OBJ): $(SRCLIB)/16_ca.c $(SRCLIB)/16_ca.h
+16_dbg.$(OBJ): $(SRCLIB)/16_dbg.c $(SRCLIB)/16_dbg.h
+midi.$(OBJ): $(SRCLIB)/midi.c $(SRCLIB)/midi.h
+16_head.$(OBJ): $(SRCLIB)/16_head.c $(SRCLIB)/16_head.h
+16_hc.$(OBJ): $(SRCLIB)/16_hc.c $(SRCLIB)/16_hc.h
+16_snd.$(OBJ): $(SRCLIB)/16_snd.c $(SRCLIB)/16_snd.h
+jsmn.$(OBJ): $(JSMNLIB)/jsmn.c $(JSMNLIB)/jsmn.h
+kitten.$(OBJ): $(NYANLIB)/kitten.c $(NYANLIB)/kitten.h
+vgmSnd.$(OBJ): $(VGMSNDLIB)/vgmSnd.c $(VGMSNDLIB)/vgmSnd.h
+wcpu.$(OBJ): $(WCPULIB)/wcpu.c $(WCPULIB)/wcpu.h
+#memory.$(OBJ): $(EXMMLIB)/memory.c $(EXMMLIB)/memory.h
+c_utils.$(OBJ): $(MODEXLIB)/c_utils.asm
+modex.$(OBJ): $(MODEXLIB)/modex.asm
+
+#
+#other~
+#
+clean: .symbolic
+ @$(REMOVECOMMAND) $(EXEC)
+ @$(REMOVECOMMAND) *.$(OBJ)
+!ifdef __LINUX__
+ @rm *.LIB
+ @rm *.EXE
+ #@$(REMOVECOMMAND) *.\$\$\$
+!else
+ @*$(REMOVECOMMAND) *.$$$
+!endif
+ @$(REMOVECOMMAND) 16.lib
+ @$(REMOVECOMMAND) gfx.lib
+ @$(REMOVECOMMAND) vgmsnd.lib
+ @*wlib -n $(WLIBQ) 16.lib
+ @*wlib -n $(WLIBQ) gfx.lib
+ @*wlib -n $(WLIBQ) vgmsnd.lib
+ @$(REMOVECOMMAND) *.16W
+ @$(REMOVECOMMAND) *.16B
+ @$(REMOVECOMMAND) *.OBJ
+ @$(REMOVECOMMAND) *.o
+ @$(REMOVECOMMAND) *.BCO
+ #@$(REMOVECOMMAND) makefi~1
+ #@$(REMOVECOMMAND) makefile~
+ @$(REMOVECOMMAND) __wcl__.LNK
+# @$(REMOVECOMMAND) *.smp
+ @$(REMOVECOMMAND) *.SMP
+ @$(REMOVECOMMAND) *.hed
+ @$(REMOVECOMMAND) *.MAH
+ @$(REMOVECOMMAND) *.mah
+ @$(REMOVECOMMAND) *.err
+ @echo $(OBJ)
+ #@cd $(DOSLIB:$(to_os_path))
+ #@./buildall.sh clean
+ #@cd $(BUILD_ROOT)
+# @$(COPYCOMMAND) $(SRC)exmmtest.c $(EXMMTESTDIR)$(SRC)
+# @$(COPYCOMMAND) $(SRCLIB)16_mm.* $(EXMMTESTDIR)$(SRCLIB)
+# @$(COPYCOMMAND) $(SRCLIB)16_head.* $(EXMMTESTDIR)$(SRCLIB)
+# @$(COPYCOMMAND) $(SRCLIB)16_ca.* $(EXMMTESTDIR)$(SRCLIB)
+# @$(COPYCOMMAND) $(SRCLIB)16_hc.* $(EXMMTESTDIR)$(SRCLIB)
+# @$(COPYCOMMAND) $(SRCLIB)types.h $(EXMMTESTDIR)$(SRCLIB)
+# @$(COPYCOMMAND) $(NYANLIB)* $(EXMMTESTDIR)$(NYANLIB)
+# @echo $(watcom)
+# @echo $(INCLUDE)
+
+backupconfig: .symbolic
+ @$(COPYCOMMAND) .git$(DIRSEP)config git_con.fig
+ @$(COPYCOMMAND) .gitmodules git_modu.les
+ @$(COPYCOMMAND) .gitignore git_igno.re
+
+comp: .symbolic
+ @*upx -9 $(EXEC)
+
+comq: .symbolic
+ @*upx -9 $(UPXQ) $(EXEC)
+
+www: .symbolic
+ @ssh -p 26 sparky4@4ch.mooo.com 'rm -f /var/www/16/*exe*'
+ #@rm -f /var/www/$(EXEC)*
+ @rm -f /var/www/*.exe.zip*
+ #@cp ./$(EXEC) $(DIRSEP)var$(DIRSEP)www$(DIRSEP)
+ @./src/util/z.sh $(EXEC) $(EXEC)
+ @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/
+ @scp -r -P 26 x4get.bat 4ch.mooo.com:/var/www/16/
+ @scp -r -P 26 /var/www/*.exe.zip.* 4ch.mooo.com:/var/www/16/
+
+getwww: .symbolic
+ *x4get.bat $(EXEC)
+
+vomitchan: .symbolic
+ @$(DUMP) *.err
+
+##
+## External library management~ ^^
+##
+#git submodule add <repo>
+mkdl: .symbolic
+ @cd $(DOSLIB:$(to_os_path))
+ @./buildall.sh
+ @cd $(BUILD_ROOT)
+
+uplibs: .symbolic
+ @cd $(JSMNLIB:$(to_os_path))
+ @git pull
+ @cd $(BUILD_ROOT)
+ @cd $(DOSLIB:$(to_os_path))
+ @git pull
+ @cd $(BUILD_ROOT)
+
+reinitlibs: .symbolic
+ @rm -rf $(SRCLIB)doslib
+ @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:$(to_os_path))
+ @git clone https://github.com/joncampbell123/doslib.git
+ @git clone https://github.com/zserge/jsmn.git
+ @cd $(BUILD_ROOT)
+ @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 $(BUILD_ROOT)
+ @cp $(DOSLIB)/make-lowercase .
+
+##
+## experimental libs
+##
+xlib: .symbolic
+ @cd 16$(DIRSEP)xlib
+ @wmake -h clean
+ @wmake -h all
+ @cd $(BUILD_ROOT)
+
+mx: .symbolic
+ @cd 16$(DIRSEP)xw
+# @wmake clean
+ @wmake -h all
+ @cd $(BUILD_ROOT)
+
+mx_: .symbolic
+ @cd 16$(DIRSEP)xw_
+ @wmake -h -f makefile all
+ @cd $(BUILD_ROOT)
+
+vrs: .symbolic
+ @cd $(DOSLIB_VGA:$(to_os_path))
+ #@make clean
+ @make all
+ @mv pcx2vrl $(BUILD_ROOT)$(DIRSEP)
+ @mv pcxsscut $(BUILD_ROOT)$(DIRSEP)
+ @mv vrl2vrs $(BUILD_ROOT)$(DIRSEP)
+ @mv vrsdump $(BUILD_ROOT)$(DIRSEP)
+ @cd $(BUILD_ROOT)
--- /dev/null
+#\r
+# Higanbana Project makefile\r
+#\r
+#\r
+# Possible optimizations for 8088 class processors\r
+#\r
+# -oa Relax alias checking\r
+# -ob Try to generate straight line code\r
+# -oe - expand user functions inline (-oe=20 is default, adds lots of code)\r
+# -oh Enable repeated optimizations\r
+# -oi generate certain lib funcs inline\r
+# -oi+ Set max inline depth (C++ only, use -oi for C)\r
+# -ok Flowing of register save into function flow graph\r
+# -ol loop optimizations\r
+# -ol+ loop optimizations plus unrolling\r
+# -or Reorder for pipelined (486+ procs); not sure if good to use\r
+# -os Favor space over time\r
+# -ot Favor time over space\r
+# -ei Allocate an "int" for all enum types\r
+# -zp2 Allow compiler to add padding to structs\r
+# -zpw Use with above; make sure you are warning free!\r
+# -0 8088/8086 class code generation\r
+# -s disable stack overflow checking\r
+\r
+# -zk0u translate kanji to unicode... wwww\r
+# -zk0 kanji support~\r
+# -zkl current codepage\r
+\r
+# this enables debug output to the serial port.\r
+# comment this out on game release.\r
+# serial output goes to COM1 at 9600 baud 1 stop bit odd parity.\r
+# serial output is plain text ASCII.\r
+DEBUGSERIAL=1\r
+\r
+#%.C\r
+#192x144\r
+#wwww will add these\r
+!ifdef __LINUX__\r
+REMOVECOMMAND=rm -f\r
+COPYCOMMAND=cp -f\r
+DIRSEP=/\r
+OBJ=o\r
+DUMP=cat\r
+!else\r
+REMOVECOMMAND=del\r
+COPYCOMMAND=copy /y\r
+DIRSEP=\\r
+OBJ=OBJ\r
+DUMP=type\r
+!endif\r
+\r
+TARGET_OS = dos\r
+\r
+#EXMMTESTDIR=16$(DIRSEP)exmmtest$(DIRSEP)\r
+PDIR=..$(DIRSEP)\r
+SRC=src$(DIRSEP)\r
+DATADIR=data$(DIRSEP)\r
+SPRI=$(DATADIR)$(DIRSEP)spri$(DIRSEP)\r
+SRCLIB=$(SRC)lib$(DIRSEP)\r
+JSMNLIB=$(SRCLIB)jsmn$(DIRSEP)\r
+NYANLIB=$(SRCLIB)nyan$(DIRSEP)\r
+#EXMMLIB=$(SRCLIB)exmm$(DIRSEP)\r
+MODEXLIB=$(SRCLIB)modex16$(DIRSEP)\r
+MODEXLIB_=$(SRCLIB)modex$(DIRSEP)\r
+VGMSNDLIB=$(SRCLIB)vgmsnd$(DIRSEP)\r
+DOSLIB=$(SRCLIB)doslib$(DIRSEP)\r
+DOSLIBDIR=$(SRCLIB)doslib\r
+WCPULIB=$(SRCLIB)wcpu$(DIRSEP)\r
+\r
+#\r
+# quiet flags\r
+#\r
+WLIBQ=-q\r
+WCLQ=-zq $(WLIBQ)\r
+UPXQ=-qqq\r
+\r
+#\r
+# compile flags\r
+#\r
+S_FLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k32768#54096#60000\r
+Z_FLAGS=-zk0 -zc -zp8 -zm\r
+O_FLAGS=-obmilr -oe=24 -out -oh -ei -onac -ol+ -ok##x\r
+T_FLAGS=-bt=dos -mh -0 -fpi87\r
+\r
+CPPFLAGS=-DTARGET_MSDOS=16\r
+!ifeq DEBUGSERIAL 1\r
+CPPFLAGS += -DDEBUGSERIAL\r
+!endif\r
+AFLAGS=$(WCLQ) $(T_FLAGS) -d1 -fo=.$(OBJ)\r
+CFLAGS=$(WCLQ) $(T_FLAGS) -d1 -fo=.$(OBJ) -wo -i"$(DOSLIB)" $(O_FLAGS) $(S_FLAGS) $(Z_FLAGS)\r
+LFLAGS=$(WCLQ) -l=dos -fm=$^&.mah\r
+LIBFLAGS=$(WLIBQ) -b -n\r
+\r
+FLAGS=$(CPPFLAGS) $(CFLAGS)\r
+\r
+#\r
+# objects\r
+#\r
+VGMSNDOBJ = vgmSnd.$(OBJ) 16_snd.$(OBJ)\r
+DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ)\r
+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)\r
+GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) $(DOSLIBLIBS) 16_vrs.$(OBJ) 16_sprit.$(OBJ)\r
+#planar.$(OBJ) 16planar.$(OBJ)\r
+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\r
+\r
+!ifeq DEBUGSERIAL 1\r
+FLAGS += -DDEBUGSERIAL\r
+DOSLIBOBJ += 8250.$(OBJ)\r
+DOSLIBLIBS += $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250$(DIRSEP)dos86h$(DIRSEP)8250.lib\r
+!endif\r
+\r
+TESTEXEC = test.exe test0.exe pcxtest.exe pcxtest2.exe palettec.exe maptest.exe fmemtest.exe fonttest.exe fontgfx.exe scroll.exe vgmtest.exe inputest.exe palettel.exe exmmtest.exe vrstest.exe\r
+#planrpcx.exe test2.exe\r
+EXEC = 16.exe bakapi.exe tesuto.exe 0.exe $(TESTEXEC)\r
+\r
+all: $(EXEC) joytest.exe\r
+#16.lib => $(16LIBOBJS) bug....\r
+16LIB=$(16LIBOBJS)\r
+#16LIB=16.lib\r
+\r
+!ifeq DEBUGSERIAL 1\r
+16LIBOBJS += $(DOSLIBLIBS)\r
+!endif\r
+#\r
+#game and bakapi executables\r
+#\r
+16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib\r
+ wcl $(FLAGS) $(16FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=16.mah\r
+\r
+bakapi.exe: bakapi.$(OBJ) gfx.lib $(DOSLIBLIBS)\r
+ wcl $(FLAGS) $(BAKAPIFLAGS) bakapi.$(OBJ) gfx.lib $(DOSLIBLIBS) -fm=bakapi.mah\r
+#modex.lib\r
+#\r
+#Test Executables!\r
+#\r
+scroll.exe: scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib\r
+ wcl $(FLAGS) scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=scroll.mah\r
+scroll.$(OBJ): $(SRC)scroll.c\r
+ wcl $(FLAGS) -c $(SRC)scroll.c\r
+\r
+\r
+# NOTE: dos86h = 16-bit huge memory model. memory model must match!\r
+tesuto.exe: tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib\r
+# %write tmp.cmd option quiet option max=tesuto.mah $(DOSLIB_LDFLAGS_DOS16H) file tesuto.obj name tesuto.exe\r
+# %write tmp.cmd library $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu$(DIRSEP)dos86h$(DIRSEP)cpu.lib\r
+# %write tmp.cmd library $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos$(DIRSEP)dos86h$(DIRSEP)dos.lib\r
+# @wlink @tmp.cmd\r
+\r
+#\r
+# add this ww to reduce junk www\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
+ wcl $(FLAGS) $(WCLQ) tesuto.$(OBJ) $(DOSLIBLIBS) 16_head.$(OBJ) gfx.lib\r
+tesuto.$(OBJ): $(SRC)tesuto.c\r
+ wcl $(FLAGS) $(WCLQ) -c $(SRC)tesuto.c\r
+\r
+0.exe: 0.$(OBJ) $(DOSLIBLIBS) gfx.lib $(16LIB)\r
+ wcl $(FLAGS) $(WCLQ) 0.$(OBJ) $(DOSLIBLIBS) gfx.lib $(16LIB)\r
+0.$(OBJ): $(SRC)0.c\r
+ wcl $(FLAGS) $(WCLQ) -c $(SRC)0.c\r
+\r
+test.exe: test.$(OBJ) gfx.lib $(DOSLIBLIBS) $(16LIB)\r
+ wcl $(FLAGS) test.$(OBJ) gfx.lib $(DOSLIBLIBS) $(16LIB) -fm=test.mah\r
+\r
+#test2.exe: test2.$(OBJ) $(DOSLIBLIBS) gfx.lib\r
+# wcl $(FLAGS) test2.$(OBJ) $(DOSLIBLIBS) gfx.lib -fm=test2.mah\r
+\r
+test0.exe: test0.$(OBJ)\r
+ wcl $(FLAGS) test0.$(OBJ) -fm=test0.mah\r
+\r
+fonttest.exe: fonttest.$(OBJ) $(16LIB) gfx.lib\r
+ wcl $(FLAGS) fonttest.$(OBJ) $(16LIB) gfx.lib -fm=fonttest.mah\r
+\r
+#fonttes0.exe: fonttes0.$(OBJ) $(16LIB)\r
+# wcl $(FLAGS) fonttes0.$(OBJ) $(16LIB)\r
+\r
+fontgfx.exe: fontgfx.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS)\r
+ wcl $(FLAGS) fontgfx.$(OBJ) $(16LIB) gfx.lib $(DOSLIBLIBS) -fm=fontgfx.mah\r
+\r
+inputest.exe: inputest.$(OBJ) $(16LIB)\r
+ wcl $(FLAGS) inputest.$(OBJ) $(16LIB) -fm=inputest.mah\r
+\r
+#sountest.exe: sountest.$(OBJ) $(16LIB)\r
+# wcl $(FLAGS) sountest.$(OBJ) $(16LIB)\r
+\r
+pcxtest.exe: pcxtest.$(OBJ) gfx.lib\r
+ wcl $(FLAGS) pcxtest.$(OBJ) gfx.lib -fm=pcxtest.mah\r
+\r
+vrstest.exe: vrstest.$(OBJ) gfx.lib $(16LIB)\r
+ wcl $(FLAGS) vrstest.$(OBJ) gfx.lib $(16LIB) -fm=vrstest.mah\r
+\r
+palettec.exe: palettec.$(OBJ) gfx.lib #$(16LIB)\r
+ wcl $(FLAGS) palettec.$(OBJ) gfx.lib -fm=palettec.mah #$(16LIB)\r
+\r
+palettel.exe: palettel.$(OBJ) gfx.lib #$(16LIB)\r
+ wcl $(FLAGS) palettel.$(OBJ) gfx.lib -fm=palettel.mah #$(16LIB)\r
+\r
+pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib\r
+ wcl $(FLAGS) pcxtest2.$(OBJ) gfx.lib -fm=pcxtest2.mah\r
+\r
+##planrpcx.exe: planrpcx.$(OBJ) gfx.lib\r
+## wcl $(FLAGS) planrpcx.$(OBJ) gfx.lib -fm=planrpcx.mah\r
+\r
+maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib\r
+ wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIB) gfx.lib -fm=maptest.mah\r
+\r
+fmemtest.exe: fmemtest.$(OBJ) $(16LIB)\r
+ wcl $(FLAGS) fmemtest.$(OBJ) $(16LIB) -fm=fmemtest.mah\r
+\r
+exmmtest.exe: exmmtest.$(OBJ) 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) 16_hc.$(OBJ) kitten.$(OBJ)\r
+ wcl $(FLAGS) exmmtest.$(OBJ) -fm=exmmtest.mah $(16LIB)\r
+####0000 ./wlink32 @__wcl__.lnk\r
+\r
+vgmtest.exe: vgmtest.$(OBJ) vgmsnd.lib $(16LIB)\r
+ wcl $(FLAGS) vgmtest.$(OBJ) vgmsnd.lib -fm=vgmtest.mah $(16LIB)\r
+ #====wcl -mc vgmtest.$(OBJ) $(VGMSNDOBJ) -fm=vgmtest.mah\r
+\r
+\r
+#\r
+#executable's objects\r
+#\r
+16.$(OBJ): $(SRC)16.h $(SRC)16.c\r
+ wcl $(FLAGS) -c $(SRC)16.c\r
+\r
+bakapi.$(OBJ): $(SRC)bakapi.h $(SRC)bakapi.c\r
+ wcl $(FLAGS) -c $(SRC)bakapi.c\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
+test0.$(OBJ): $(SRC)test0.c\r
+ wcl $(FLAGS) -c $(SRC)test0.c\r
+\r
+pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h\r
+ wcl $(FLAGS) -c $(SRC)pcxtest.c\r
+\r
+vrstest.$(OBJ): $(SRC)vrstest.c $(SRCLIB)modex16.h\r
+ wcl $(FLAGS) -c $(SRC)vrstest.c\r
+\r
+##planrpcx.$(OBJ): $(SRC)planrpcx.c $(SRCLIB)modex16.h\r
+## wcl $(FLAGS) -c $(SRC)planrpcx.c\r
+\r
+pcxtest2.$(OBJ): $(SRC)pcxtest2.c $(SRCLIB)modex16.h\r
+ wcl $(FLAGS) -c $(SRC)pcxtest2.c\r
+\r
+palettec.$(OBJ): $(SRC)palettec.c\r
+ wcl $(FLAGS) -c $(SRC)palettec.c\r
+\r
+palettel.$(OBJ): $(SRC)palettel.c\r
+ wcl $(FLAGS) -c $(SRC)palettel.c\r
+\r
+maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h\r
+ wcl $(FLAGS) -c $(SRC)maptest.c\r
+\r
+#emmtest.$(OBJ): $(SRC)emmtest.c\r
+# wcl $(FLAGS) $(MFLAGS) -c $(SRC)emmtest.c\r
+\r
+#emsdump.$(OBJ): $(SRC)emsdump.c\r
+# wcl $(FLAGS) $(MFLAGS) -c $(SRC)emsdump.c\r
+\r
+fmemtest.$(OBJ): $(SRC)fmemtest.c\r
+ wcl $(FLAGS) -c $(SRC)fmemtest.c\r
+\r
+fonttest.$(OBJ): $(SRC)fonttest.c\r
+ wcl $(FLAGS) -c $(SRC)fonttest.c\r
+\r
+#fonttes0.$(OBJ): $(SRC)fonttes0.c\r
+# wcl $(FLAGS) -c $(SRC)fonttes0.c\r
+\r
+fontgfx.$(OBJ): $(SRC)fontgfx.c\r
+ wcl $(FLAGS) -c $(SRC)fontgfx.c\r
+\r
+inputest.$(OBJ): $(SRC)inputest.c\r
+ wcl $(FLAGS) -c $(SRC)inputest.c\r
+\r
+#sountest.$(OBJ): $(SRC)sountest.c\r
+# wcl $(FLAGS) -c $(SRC)sountest.c\r
+\r
+#miditest.$(OBJ): $(SRC)miditest.c\r
+# wcl $(FLAGS) -c $(SRC)miditest.c\r
+\r
+#testemm.$(OBJ): $(SRC)testemm.c\r
+# wcl $(FLAGS) -c $(SRC)testemm.c\r
+\r
+#testemm0.$(OBJ): $(SRC)testemm0.c\r
+# wcl $(FLAGS) -c $(SRC)testemm0.c\r
+\r
+tsthimem.$(OBJ): $(SRC)tsthimem.c\r
+ wcl $(FLAGS) -c $(SRC)tsthimem.c\r
+\r
+exmmtest.$(OBJ): $(SRC)exmmtest.c\r
+ wcl $(FLAGS) -c $(SRC)exmmtest.c 16_in.$(OBJ) 16_mm.$(OBJ) wcpu.$(OBJ) 16_head.$(OBJ) 16_ca.$(OBJ) 16_hc.$(OBJ) kitten.$(OBJ)\r
+\r
+vgmtest.$(OBJ): $(SRC)vgmtest.c\r
+ wcl $(FLAGS) -c $(SRC)vgmtest.c\r
+ #====wcl -mc -c $(SRC)vgmtest.c\r
+\r
+#\r
+#non executable objects libraries\r
+#\r
+16.lib: $(16LIBOBJS)# doslib.lib vgmsnd.lib\r
+ wlib -b $(WLIBQ) 16.lib $(16LIBOBJS)# doslib.lib vgmsnd.lib\r
+\r
+gfx.lib: $(GFXLIBOBJS)\r
+ wlib -b $(WLIBQ) gfx.lib $(GFXLIBOBJS)\r
+\r
+vgmsnd.lib: $(VGMSNDOBJ)\r
+ wlib -b $(WLIBQ) vgmsnd.lib $(VGMSNDOBJ)\r
+\r
+# extdep:\r
+# !include $(DOSLIBDIR)$(DIRSEP)extdep.mak\r
+\r
+# library deps 16-bit huge\r
+$(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu$(DIRSEP)dos86h$(DIRSEP)cpu.lib:\r
+ cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)cpu && .$(DIRSEP)make.sh\r
+$(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos$(DIRSEP)dos86h$(DIRSEP)dos.lib:\r
+ cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)dos && .$(DIRSEP)make.sh\r
+$(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vgatty.lib:\r
+ cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh\r
+$(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga$(DIRSEP)dos86h$(DIRSEP)vga.lib:\r
+ cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga && .$(DIRSEP)make.sh\r
+$(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250$(DIRSEP)dos86h$(DIRSEP)8250.lib:\r
+ cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)8250 && .$(DIRSEP)make.sh\r
+\r
+joytest.exe:\r
+ cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)joystick && .$(DIRSEP)make.sh && $(COPYCOMMAND) dos86h$(DIRSEP)test.exe $(PDIR)$(PDIR)$(PDIR)$(PDIR)$(PDIR)joytest.exe\r
+#$(DOSLIBLIBS): .symbolic\r
+# @cd $(DOSLIB)\r
+# @.$(DIRSEP)buildall.sh\r
+# @cd $(PDIR)$(PDIR)$(PDIR)\r
+\r
+modex16.$(OBJ): $(SRCLIB)modex16.h $(SRCLIB)modex16.c\r
+ wcl $(FLAGS) -c $(SRCLIB)modex16.c\r
+\r
+bakapee.$(OBJ): $(SRCLIB)bakapee.h $(SRCLIB)bakapee.c\r
+ wcl $(FLAGS) -c $(SRCLIB)bakapee.c\r
+\r
+16render.$(OBJ): $(SRCLIB)16render.h $(SRCLIB)16render.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16render.c\r
+\r
+##16planar.$(OBJ): $(MODEXLIB)16planar.h $(MODEXLIB)16planar.c\r
+## wcl $(FLAGS) -c $(MODEXLIB)16planar.c\r
+\r
+16_vrs.$(OBJ): $(SRCLIB)16_vrs.h $(SRCLIB)16_vrs.c $(DOSLIBLIBS)\r
+ wcl $(FLAGS) -c $(SRCLIB)16_vrs.c $(DOSLIBLIBS)\r
+16_sprit.$(OBJ): $(SRCLIB)16_sprit.h $(SRCLIB)16_sprit.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16_sprit.c\r
+\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
+scroll16.$(OBJ): $(SRCLIB)scroll16.h $(SRCLIB)scroll16.c\r
+ wcl $(FLAGS) -c $(SRCLIB)scroll16.c\r
+\r
+wcpu.$(OBJ): $(WCPULIB)wcpu.h $(WCPULIB)wcpu.c\r
+ wcl $(FLAGS) -c $(WCPULIB)wcpu.c\r
+\r
+16text.$(OBJ): $(SRCLIB)16text.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16text.c\r
+\r
+mapread.$(OBJ): $(SRCLIB)mapread.h $(SRCLIB)mapread.c\r
+ wcl $(FLAGS) -c $(SRCLIB)mapread.c\r
+\r
+16_timer.$(OBJ): $(SRCLIB)16_timer.h $(SRCLIB)16_timer.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16_timer.c\r
+\r
+16_in.$(OBJ): $(SRCLIB)16_in.h $(SRCLIB)16_in.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16_in.c\r
+\r
+16_mm.$(OBJ): $(SRCLIB)16_mm.h $(SRCLIB)16_mm.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16_mm.c\r
+\r
+16_ca.$(OBJ): $(SRCLIB)16_ca.h $(SRCLIB)16_ca.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16_ca.c\r
+\r
+16_dbg.$(OBJ): $(SRCLIB)16_dbg.h $(SRCLIB)16_dbg.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16_dbg.c\r
+\r
+midi.$(OBJ): $(SRCLIB)midi.h $(SRCLIB)midi.c\r
+ wcl $(FLAGS) -c $(SRCLIB)midi.c\r
+\r
+16_head.$(OBJ): $(SRCLIB)16_head.h $(SRCLIB)16_head.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16_head.c\r
+\r
+16_hc.$(OBJ): $(SRCLIB)16_hc.h $(SRCLIB)16_hc.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16_hc.c\r
+\r
+16_snd.$(OBJ): $(SRCLIB)16_snd.h $(SRCLIB)16_snd.c\r
+ wcl $(FLAGS) -c $(SRCLIB)16_snd.c\r
+ #====wcl -mc -c $(SRCLIB)16_snd.c\r
+\r
+jsmn.$(OBJ): $(JSMNLIB)jsmn.h $(JSMNLIB)jsmn.c\r
+ wcl $(FLAGS) -c $(JSMNLIB)jsmn.c\r
+\r
+kitten.$(OBJ): $(NYANLIB)kitten.h $(NYANLIB)kitten.c\r
+ wcl $(FLAGS) -c $(NYANLIB)kitten.c\r
+\r
+vgmSnd.$(OBJ): $(VGMSNDLIB)vgmSnd.h $(VGMSNDLIB)vgmSnd.c\r
+ wcl $(FLAGS) -c $(VGMSNDLIB)vgmSnd.c\r
+ #====wcl -c -mc $(VGMSNDLIB)vgmSnd.c\r
+\r
+#memory.$(OBJ): $(EXMMLIB)memory.h $(EXMMLIB)memory.c\r
+# wcl $(FLAGS) $(MFLAGS) -c $(EXMMLIB)memory.c\r
+\r
+c_utils.$(OBJ): $(MODEXLIB_)c_utils.asm\r
+ wcl -c $(AFLAGS) $(MODEXLIB_)c_utils.asm\r
+modex.$(OBJ): $(MODEXLIB_)modex.asm\r
+ wcl -c $(AFLAGS) $(MODEXLIB_)modex.asm\r
+\r
+#\r
+#other~\r
+#\r
+clean: .symbolic\r
+ @$(REMOVECOMMAND) $(EXEC)\r
+ @$(REMOVECOMMAND) *.$(OBJ)\r
+ @$(REMOVECOMMAND) 16.lib\r
+ @$(REMOVECOMMAND) gfx.lib\r
+ @$(REMOVECOMMAND) vgmsnd.lib\r
+ @wlib -n $(WLIBQ) 16.lib\r
+ @wlib -n $(WLIBQ) gfx.lib\r
+ @wlib -n $(WLIBQ) vgmsnd.lib\r
+ @$(REMOVECOMMAND) *.16\r
+ @$(REMOVECOMMAND) *.16W\r
+ @$(REMOVECOMMAND) *.16B\r
+ @$(REMOVECOMMAND) *.OBJ\r
+ @$(REMOVECOMMAND) *.o\r
+ @$(REMOVECOMMAND) *.BCO\r
+ @$(REMOVECOMMAND) makefi~1\r
+ @$(REMOVECOMMAND) makefile~\r
+ @$(REMOVECOMMAND) __wcl__.LNK\r
+# @$(REMOVECOMMAND) *.smp\r
+ @$(REMOVECOMMAND) *.SMP\r
+ @$(REMOVECOMMAND) *.hed\r
+ @$(REMOVECOMMAND) *.MAH\r
+ @$(REMOVECOMMAND) *.mah\r
+ @$(REMOVECOMMAND) *.err\r
+ #@cd $(DOSLIB)\r
+ #@./buildall.sh clean\r
+ #@cd $(PDIR)$(PDIR)$(PDIR)\r
+# @$(COPYCOMMAND) $(SRC)exmmtest.c $(EXMMTESTDIR)$(SRC)\r
+# @$(COPYCOMMAND) $(SRCLIB)16_mm.* $(EXMMTESTDIR)$(SRCLIB)\r
+# @$(COPYCOMMAND) $(SRCLIB)16_head.* $(EXMMTESTDIR)$(SRCLIB)\r
+# @$(COPYCOMMAND) $(SRCLIB)16_ca.* $(EXMMTESTDIR)$(SRCLIB)\r
+# @$(COPYCOMMAND) $(SRCLIB)16_hc.* $(EXMMTESTDIR)$(SRCLIB)\r
+# @$(COPYCOMMAND) $(SRCLIB)types.h $(EXMMTESTDIR)$(SRCLIB)\r
+# @$(COPYCOMMAND) $(NYANLIB)* $(EXMMTESTDIR)$(NYANLIB)\r
+# @echo $(watcom)\r
+# @echo $(INCLUDE)\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
+comp: .symbolic\r
+ @upx -9 $(EXEC)\r
+\r
+comq: .symbolic\r
+ @upx -9 $(UPXQ) $(EXEC)\r
+\r
+www: .symbolic\r
+ @ssh -p 26 sparky4@4ch.mooo.com 'rm -f /var/www/16/*exe*'\r
+ #@rm -f /var/www/$(EXEC)*\r
+ @rm -f /var/www/*.exe.zip*\r
+ #@cp ./$(EXEC) $(DIRSEP)var$(DIRSEP)www$(DIRSEP)\r
+ @./src/util/z.sh $(EXEC) $(EXEC)\r
+ @scp -r -P 26 *.exe 4ch.mooo.com:/var/www/16/\r
+ @scp -r -P 26 x4get.bat 4ch.mooo.com:/var/www/16/\r
+ @scp -r -P 26 /var/www/*.exe.zip.* 4ch.mooo.com:/var/www/16/\r
+\r
+getwww: .symbolic\r
+ @x4get.bat $(EXEC)\r
+\r
+vomitchan: .symbolic\r
+ @$(DUMP) *.err\r
+\r
+##\r
+## External library management~ ^^\r
+##\r
+#git submodule add <repo>\r
+mkdl: .symbolic\r
+ @cd $(DOSLIB)\r
+ @./buildall.sh\r
+ @cd $(PDIR)$(PDIR)$(PDIR)\r
+\r
+uplibs: .symbolic\r
+ @cd $(JSMNLIB)\r
+ @git pull\r
+ @cd $(PDIR)$(PDIR)$(PDIR)\r
+ @cd $(DOSLIB)\r
+ @git pull\r
+ @cd $(PDIR)$(PDIR)$(PDIR)\r
+\r
+reinitlibs: .symbolic\r
+ @rm -rf $(SRCLIB)doslib\r
+ @rm -rf $(SRCLIB)jsmn\r
+ @rm -rf 16/CatacombApocalypse\r
+ @rm -rf 16/wolf3d\r
+ @rm -rf 16/keen\r
+ @wmake -h initlibs\r
+\r
+initlibs: .symbolic\r
+ @cp git_con.fig .git/config\r
+ @cp git_modu.les .gitmodules\r
+ @cp git_igno.re .gitignore\r
+ @cd $(SRCLIB)\r
+ @git clone https://github.com/joncampbell123/doslib.git\r
+ @git clone https://github.com/zserge/jsmn.git\r
+ @cd $(PDIR)$(PDIR)\r
+ @cd 16\r
+ @git clone https://github.com/FlatRockSoft/CatacombApocalypse.git\r
+ @git clone https://github.com/id-Software/wolf3d.git\r
+ @git clone https://github.com/keendreams/keen.git\r
+ @cd $(PDIR)\r
+ @cp $(SRCLIB)doslib/make-lowercase .\r
+\r
+##\r
+## experimental libs\r
+##\r
+xlib: .symbolic\r
+ @cd 16$(DIRSEP)xlib\r
+ @wmake -h clean\r
+ @wmake -h all\r
+ @cd $(PDIR)$(PDIR)\r
+\r
+mx: .symbolic\r
+ @cd 16$(DIRSEP)xw\r
+# @wmake clean\r
+ @wmake -h all\r
+ @cd $(PDIR)$(PDIR)\r
+\r
+mx_: .symbolic\r
+ @cd 16$(DIRSEP)xw_\r
+ @wmake -h -f makefile all\r
+ @cd $(PDIR)$(PDIR)\r
+\r
+vrs: .symbolic\r
+ @cd $(DOSLIBDIR)$(DIRSEP)hw$(DIRSEP)vga\r
+ #@make clean\r
+ @make all\r
+ @mv pcx2vrl ../../../../../\r
+ @mv pcxsscut ../../../../../\r
+ @mv vrl2vrs ../../../../../\r
+ @mv vrsdump ../../../../../\r
+ @cd ../../../../../\r