X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=makefile;fp=makefile;h=f01a098845e230d9bd00c0e0224634a621d57e9a;hb=1488685a2c48db7f8db6dafdb2943d51f24d7ab2;hp=0000000000000000000000000000000000000000;hpb=55f05f650cc7269b3db0c6925606388888ca3534;p=plz.git diff --git a/makefile b/makefile new file mode 100755 index 0000000..f01a098 --- /dev/null +++ b/makefile @@ -0,0 +1,112 @@ +# +# 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 + +#%.C +#192x144 +#wwww will add these +!ifdef __LINUX__ +REMOVECOMMAND=rm -f +COPYCOMMAND=cp -f +DIRSEP=/ +OBJ=o +!else +REMOVECOMMAND=del +COPYCOMMAND=copy /y +DIRSEP=\ +OBJ=obj +!endif +#!ifndef INCLUDE +#IN=..$(DIRSEP)..$(DIRSEP)fdos$(DIRSEP)watcom2$(DIRSEP)h +#IFLAGS=-i=$(IN) +#!endif + +TARGET_OS = dos + +#EXMMTESTDIR=16$(DIRSEP)exmmtest$(DIRSEP) +SRC=src$(DIRSEP) +SRCLIB=$(SRC)lib$(DIRSEP) +JSMNLIB=$(SRCLIB)jsmn$(DIRSEP) +NYANLIB=$(SRCLIB)nyan$(DIRSEP) +#EXMMLIB=$(SRCLIB)exmm$(DIRSEP) +MODEXLIB=$(SRCLIB)modex16$(DIRSEP) +MODEXLIB_=$(SRCLIB)modex$(DIRSEP) +VGMSNDLIB=$(SRCLIB)vgmsnd$(DIRSEP) +DOSLIB=$(SRCLIB)doslib$(DIRSEP) +WCPULIB=$(SRCLIB)wcpu$(DIRSEP) + +AFLAGS=-mh -0 -d1 +16FLAGS=-fh=16.hed +BAKAPIFLAGS=-fh=bakapi.hed +SFLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k55808#60000#32768 +DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS) +ZFLAGS=-zk0 -zq -zc -zp8# -zm +CFLAGS=$(AFLAGS) $(IFLAGS)-lr -l=dos -wo##wwww +OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87 -onac -ol+ -ok####x +FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS) + + +DOSLIBEXMMOBJ = himemsys.$(OBJ) emm.$(OBJ) +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) timer.$(OBJ) +# +#3812intf.$(OBJ) +GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(OBJ) 16render.$(OBJ) 16planar.$(OBJ) + +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 +# tsthimem.exe +#testemm.exe testemm0.exe fonttes0.exe miditest.exe sega.exe sountest.exe +EXEC = plzpart.exe + +all: $(EXEC) + +# +#game and bakapi executables +# +16.exe: 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib + wcl $(FLAGS) $(16FLAGS) 16.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=16.map + + +# +#executable's objects +# +16.$(OBJ): $(SRC)16.h $(SRC)16.c + wcl $(FLAGS) -c $(SRC)16.c + +# +#non executable objects libraries +# +16.lib: $(16LIBOBJS)# doslib.lib vgmsnd.lib + wlib -b -q $(16LIBOBJS) $(16LIBOBJS)# doslib.lib vgmsnd.lib + +# +#other~ +# +clean: .symbolic + @$(REMOVECOMMAND) $(EXEC) + @$(REMOVECOMMAND) *.$(OBJ)