# Makefile for Turbo-C 2.0.
# Assumes an assembler is available, since compilation is done via
# assembly.
#
# If you do not have an assembler, you can modify the source code to use
# C's int86() and int86x() functions to do what is done with inline assembly
# code.
#
# This makefile has a ``test'' for primary target.  This setup runs the 
# program from ``make'' thus showing an allocation chain that includes 
# MAKE.EXE as one of the owners of MCB's.
#
# CFLAGS is set up for maximum optimization, and no debugging information.
# The Huge model is used to insure 32-bit data pointers.  A couple of other
# models generate this pointer size also, and you may want to experiment with
# those as well by changing the ``-mh'' option.
#
CC = tcc
CFLAGS = -mh -B -Z -O -G -r+ -v- -y-

test: trace.exe trace2.exe
    trace
    trace2

trace.exe: trace.c
    $(CC) $(CFLAGS) trace.c
    del trace.obj

trace2.exe: trace2.c
    $(CC) $(CFLAGS) trace2.c
    del trace2.obj


