# Parse Makefile

OBJFILES=\
   agenda.obj \
   category.obj \
   chart.obj \
   edge.obj \
   main.obj \
   parse.obj \
   rules.obj \
   tree.obj

EXENAME=parse

CC=c:\borlandc\bin\bccx
#CC=c:\tc\bin\tcc
LINK=c:\borlandc\bin\tlinkx
INCDIR=c:\borlandc\include
LIBDIR=c:\borlandc\lib

MODEL=l
!if $(DEBUGGING)
OPTIONS=-v -vi-
!else
OPTIONS=
!endif

$(EXENAME).exe: $(OBJFILES)
   $(LINK) /v/d $(LIBDIR)\c0$(MODEL) @&&!
$(OBJFILES), +
$(EXENAME), $(EXENAME), +
$(ZLIB) $(LIBDIR)\emu $(LIBDIR)\math$(MODEL) $(LIBDIR)\c$(MODEL)
!

.cpp.obj:
   $(CC) -c -m$(MODEL) -P -w -w-inl -V -v -vi- $(OPTIONS) { $< }

#  use -w-inl to get rid of not inlined warnings
#  use -c to compile only     
#  use -mh to compile using huge model (>64K static data)
#  use -w to turn on all warnings (very good)
#  use -Y to make overlay compatible  
#  use -v for souce debugging
#  use -vi to inline when using -v ; warning inlines buggy in TC++1.0
#  use -I to tell where #include <libfile.h> 's are located ('.'==current dir)
#  use -V to create smart virtual tables
#  use -O to optimize jumps, -G to optimize speed,
#  use -Z to supress redundant register loads (no aliasing)
#  use -N to check stack ; buggy in TC++1.0
