]> 4ch.mooo.com Git - 16.git/blobdiff - makefile
pcxtest0 for planar dump test
[16.git] / makefile
index 2aca190bb741d99ad834c8adb5ec81641dd6b41e..ff72a7f0ce542a6a170f807a36f083e797d631d7 100755 (executable)
--- 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,10 +73,10 @@ 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 inputest.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
 #testemm.exe testemm0.exe fonttes0.exe miditest.exe sega.exe sountest.exe
-EXEC = 16.exe bakapi.exe $(TESTEXEC) tesuto.exe
+EXEC = 16.exe bakapi.exe $(TESTEXEC) tesutobakapee.exe
 
 all: $(EXEC) comp
 
@@ -69,18 +96,18 @@ scroll.exe: scroll.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib
 scroll.$(OBJ): $(SRC)scroll.c
        wcl $(FLAGS) -c $(SRC)scroll.c
 
-tesuto.exe: tesuto.$(OBJ)
-       wcl -zq -mh -d2 tesuto.$(OBJ)
-tesuto.$(OBJ): $(SRC)tesuto.c
-       wcl -zq -mh -d2 -c $(SRC)tesuto.c
+tesutobakapee.exe: tesutobakapee.$(OBJ)
+       wcl -zq -mh -d2 tesutobakapee.$(OBJ)
+tesutobakapee.$(OBJ): $(SRC)tesutobakapee.c
+       wcl -zq -mh -d2 -c $(SRC)tesutobakapee.c
 
 #sega.exe: sega.$(OBJ)
 #      wcl $(FLAGS) sega.$(OBJ)
 #sega.$(OBJ): $(SRC)sega.c
 #      wcl $(FLAGS) -c $(SRC)sega.c
 
-test.exe: test.$(OBJ) gfx.lib
-       wcl $(FLAGS) test.$(OBJ) gfx.lib -fm=test.map
+test.exe: test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ)
+       wcl $(FLAGS) test.$(OBJ) gfx.lib 16_in.$(OBJ) 16_head.$(OBJ) -fm=test.map
 
 test2.exe: test2.$(OBJ) gfx.lib
        wcl $(FLAGS) test2.$(OBJ) gfx.lib -fm=test2.map
@@ -118,9 +145,15 @@ 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
 
+pcxtest0.exe: pcxtest0.$(OBJ) gfx.lib
+       wcl $(FLAGS) pcxtest0.$(OBJ) gfx.lib -fm=pcxtest0.map
+
 maptest.exe: maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib
        wcl $(FLAGS) maptest.$(OBJ) mapread.$(OBJ) jsmn.$(OBJ) $(16LIBOBJS) gfx.lib -fm=maptest.map
 
@@ -162,12 +195,18 @@ test2.$(OBJ): $(SRC)test2.c $(SRCLIB)modex16.h
 pcxtest.$(OBJ): $(SRC)pcxtest.c $(SRCLIB)modex16.h
        wcl $(FLAGS) -c $(SRC)pcxtest.c
 
+pcxtest0.$(OBJ): $(SRC)pcxtest0.c $(SRCLIB)modex16.h
+       wcl $(FLAGS) -c $(SRC)pcxtest0.c
+
 pcxtest2.$(OBJ): $(SRC)pcxtest2.c $(SRCLIB)modex16.h
        wcl $(FLAGS) -c $(SRC)pcxtest2.c
 
 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
 
@@ -364,7 +403,7 @@ clean: .symbolic
 #      @echo $(INCLUDE)
 
 comp: .symbolic
-       upx -9 -qqq $(EXEC)
+       @upx -9 -qqq $(EXEC)
 
 updatelibs: .symbolic
        cd $(JSMNLIB)