CC      =tcc
OBJ     =obj

CFLAGS  =-1 -f287 -ml -DTURBOC
#CFLAGS  =-1 -f287 -ml -v
LIBS =graphics.lib

# Tell the dos compiler how to make "obj" files from "c" files.
.c.obj :
 $(CC) $(CFLAGS) -c $*.c

# list of object files necessary to make aewire.
WIREOBJS = aewire.obj handlers.obj ibm.obj methods.obj \
	wiremath.obj matrices.obj renderer.obj

# Make the program
aewire.exe : $(WIREOBJS)
        $(CC) $(CFLAGS) $(WIREOBJS) $(LIBS)

aewire.obj : aewire.c wireframe.h
handlers.obj : handlers.c wireframe.h
ibm.obj : ibm.c wireframe.h
methods.obj : methods.c wireframe.h
wiremath.obj : wiremath.c wireframe.h
matrices.obj : matrices.c wireframe.h
renderer.obj : renderer.c wireframe.h
