X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=makefile;h=a43cf7e5bc7ffdadba5ae0dca8a47b3108bccf00;hb=e600b06ae138ce44897e263457fc72668ac3775e;hp=66e40c4b086e3e937529c3652e0e22c398cee746;hpb=24c3f5a38faeaac043c74761e9f9dd63f15291e1;p=16.git diff --git a/makefile b/makefile index 66e40c4b..a43cf7e5 100755 --- a/makefile +++ b/makefile @@ -1,3 +1,30 @@ +# +# 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 + +#%.C +#192x144 +#wwww will add these !ifdef __LINUX__ REMOVECOMMAND=rm -f COPYCOMMAND=cp -f @@ -46,13 +73,12 @@ DOSLIBOBJ = adlib.$(OBJ) 8254.$(OBJ) 8259.$(OBJ) dos.$(OBJ) cpu.$(OBJ) #3812intf.$(OBJ) GFXLIBOBJS = modex16.$(OBJ) bitmap.$(OBJ) planar.$(OBJ) 16text.$(OBJ) bakapee.$(OBJ) scroll16.$(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 +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 # tsthimem.exe -#inputest.exe #testemm.exe testemm0.exe fonttes0.exe miditest.exe sega.exe sountest.exe EXEC = 16.exe bakapi.exe $(TESTEXEC) tesuto.exe -all: $(EXEC) +all: $(EXEC) comp # #game and bakapi executables @@ -71,9 +97,9 @@ scroll.$(OBJ): $(SRC)scroll.c wcl $(FLAGS) -c $(SRC)scroll.c tesuto.exe: tesuto.$(OBJ) - wcl -mh -d2 tesuto.$(OBJ) + wcl -zq -mh -d2 tesuto.$(OBJ) tesuto.$(OBJ): $(SRC)tesuto.c - wcl -mh -d2 -c $(SRC)tesuto.c + wcl -zq -mh -d2 -c $(SRC)tesuto.c #sega.exe: sega.$(OBJ) # wcl $(FLAGS) sega.$(OBJ) @@ -96,7 +122,7 @@ fontgfx.exe: fontgfx.$(OBJ) $(16LIBOBJS) gfx.lib wcl $(FLAGS) fontgfx.$(OBJ) $(16LIBOBJS) gfx.lib -fm=fontgfx.map inputest.exe: inputest.$(OBJ) $(16LIBOBJS) - wcl $(FLAGS) -D__DEBUG_InputMgr__=1 inputest.$(OBJ) $(16LIBOBJS) -fm=inputest.map + wcl $(FLAGS) inputest.$(OBJ) $(16LIBOBJS) -fm=inputest.map #sountest.exe: sountest.$(OBJ) $(16LIBOBJS) # wcl $(FLAGS) sountest.$(OBJ) $(16LIBOBJS) @@ -119,6 +145,9 @@ pcxtest.exe: pcxtest.$(OBJ) gfx.lib palettec.exe: palettec.$(OBJ) $(16LIBOBJS) gfx.lib wcl $(FLAGS) palettec.$(OBJ) $(16LIBOBJS) gfx.lib -fm=palettec.map +palettel.exe: palettel.$(OBJ) $(16LIBOBJS) gfx.lib + wcl $(FLAGS) palettel.$(OBJ) $(16LIBOBJS) gfx.lib -fm=palettel.map + pcxtest2.exe: pcxtest2.$(OBJ) gfx.lib wcl $(FLAGS) pcxtest2.$(OBJ) gfx.lib -fm=pcxtest2.map @@ -169,6 +198,9 @@ pcxtest2.$(OBJ): $(SRC)pcxtest2.c $(SRCLIB)modex16.h palettec.$(OBJ): $(SRC)palettec.c wcl $(FLAGS) -c $(SRC)palettec.c +palettel.$(OBJ): $(SRC)palettel.c + wcl $(FLAGS) -c $(SRC)palettel.c + maptest.$(OBJ): $(SRC)maptest.c $(SRCLIB)modex16.h wcl $(FLAGS) -c $(SRC)maptest.c @@ -365,7 +397,7 @@ clean: .symbolic # @echo $(INCLUDE) comp: .symbolic - upx -9 $(EXEC) + @upx -9 -qqq $(EXEC) updatelibs: .symbolic cd $(JSMNLIB)