--- /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
+#%.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
+!else\r
+REMOVECOMMAND=del\r
+COPYCOMMAND=copy /y\r
+DIRSEP=\\r
+OBJ=obj\r
+!endif\r
+#!ifndef INCLUDE\r
+#IN=..$(DIRSEP)..$(DIRSEP)fdos$(DIRSEP)watcom2$(DIRSEP)h\r
+#IFLAGS=-i=$(IN)\r
+#!endif\r
+\r
+TARGET_OS = dos\r
+\r
+#EXMMTESTDIR=16$(DIRSEP)exmmtest$(DIRSEP)\r
+SRC=src$(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
+WCPULIB=$(SRCLIB)wcpu$(DIRSEP)\r
+\r
+AFLAGS=-mh -0 -d1\r
+16FLAGS=-fh=16.hed\r
+BAKAPIFLAGS=-fh=bakapi.hed\r
+SFLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k55808#60000#32768\r
+DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS)\r
+ZFLAGS=-zk0 -zq -zc -zp8# -zm\r
+CFLAGS=$(AFLAGS) $(IFLAGS)-lr -l=dos -wo##wwww\r
+OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87 -onac -ol+ -ok####x\r
+FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)\r
+\r
+\r
+DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ)\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) kitten.$(OBJ) 16_hc.$(OBJ) timer.$(OBJ)\r
+#\r
+#3812intf.$(OBJ)\r
+GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) 16planar.$(OBJ)\r
+\r
+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\r
+# tsthimem.exe\r
+#testemm.exe testemm0.exe fonttes0.exe miditest.exe sega.exe sountest.exe\r
+EXEC = plzpart.exe\r
+\r
+all: $(EXEC)\r
+\r
+#\r
+#game and bakapi executables\r
+#\r
+16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib\r
+ wcl $(FLAGS) $(16FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=16.map\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
+#\r
+#non executable objects libraries\r
+#\r
+16.lib: $(16LIBOBJS)# doslib.lib vgmsnd.lib\r
+ wlib -b -q $(16LIBOBJS) $(16LIBOBJS)# doslib.lib vgmsnd.lib\r
+\r
+#\r
+#other~\r
+#\r
+clean: .symbolic\r
+ @$(REMOVECOMMAND) $(EXEC)\r
+ @$(REMOVECOMMAND) *.$(OBJ)\r