2 # Higanbana Project makefile
5 # Possible optimizations for 8088 class processors
7 # -oa Relax alias checking
8 # -ob Try to generate straight line code
9 # -oe - expand user functions inline (-oe=20 is default, adds lots of code)
10 # -oh Enable repeated optimizations
11 # -oi generate certain lib funcs inline
12 # -oi+ Set max inline depth (C++ only, use -oi for C)
13 # -ok Flowing of register save into function flow graph
14 # -ol loop optimizations
15 # -ol+ loop optimizations plus unrolling
16 # -or Reorder for pipelined (486+ procs); not sure if good to use
17 # -os Favor space over time
18 # -ot Favor time over space
19 # -ei Allocate an "int" for all enum types
20 # -zp2 Allow compiler to add padding to structs
21 # -zpw Use with above; make sure you are warning free!
22 # -0 8088/8086 class code generation
23 # -s disable stack overflow checking
25 # -zk0u translate kanji to unicode... wwww
27 # -zkl current codepage
44 #IN=..$(DIRSEP)..$(DIRSEP)fdos$(DIRSEP)watcom2$(DIRSEP)h
50 #EXMMTESTDIR=16$(DIRSEP)exmmtest$(DIRSEP)
52 SRCLIB=$(SRC)lib$(DIRSEP)
54 AFLAGS=-mh -0 -d1 -e=65536
55 PLZFLAGS=-fh=plzpart.hed
56 SFLAGS=-sg -st -of+ -zu -zdf -zff -zgf -k32768
57 DFLAGS=-DTARGET_MSDOS=16 -DMSDOS=1 $(SFLAGS)
58 ZFLAGS=-zk0 -zq -zc -zp8# -zm
59 CFLAGS=$(AFLAGS) $(IFLAGS)-lr -l=dos -wo##wwww
60 OFLAGS=-obmiler -out -oh -ei -zp8 -fpi87 -onac -ol+ -ok####x
61 FLAGS=$(CFLAGS) $(OFLAGS) $(DFLAGS) $(ZFLAGS)
65 OBJS = copper.$(OBJ) tweak.$(OBJ) plz.$(OBJ) asmyt.$(OBJ)
70 #game and bakapi executables
72 plzpart.exe: plzpart.$(OBJ) $(OBJS)
73 wcl $(FLAGS) $(PLZFLAGS) plzpart.$(OBJ) $(OBJS) -fm=plzpart.map
79 plzpart.$(OBJ): plzpart.h plzpart.c
80 wcl $(FLAGS) -c plzpart.c
83 #non executable objects libraries
85 plz.$(OBJ): plz.h plz.c
87 tweak.$(OBJ): tweak.h tweak.c
88 wcl $(FLAGS) -c tweak.c
89 asmyt.$(OBJ): asmyt.h asmyt.c
90 wcl $(FLAGS) -c asmyt.c
91 copper.$(OBJ): copper.h copper.c
92 wcl $(FLAGS) -c copper.c
99 @$(REMOVECOMMAND) $(EXEC)
100 # @$(REMOVECOMMAND) *.$(OBJ)
101 @$(REMOVECOMMAND) *.o
104 # PLZPART_OBJS = plz.o copper.o asmyt.o tweak.o vect.o vga.o opengl.o \
105 # plza.o plzfill.o sinit.o spline.o main.o
107 # PLZPART_PATH = plzpart
109 # PLZPART_PATH_OBJS = $(addprefix $(PLZPART_PATH)/,$(PLZPART_OBJS))
111 # PLZPART_BIN = plzpart
113 # OBJS += $(PLZPART_PATH_OBJS)
116 # $(MAKE) -C .. plzpart-all
118 # plzpart-all: $(PLZPART_PATH)/$(PLZPART_BIN)
120 # $(PLZPART_PATH)/$(PLZPART_BIN): $(PLZPART_PATH_OBJS)
121 # $(LD) -o $@ $(LDFLAGS) $(PLZPART_PATH_OBJS) $(LIBS)
123 # plz.c: tweak.h ptau.pre