INCDIR = ../include
LIBDIR = ..
CC = bcc
CFLAGS = -ml -I$(INCDIR)
LFLAGS = -ml

$(LIBDIR)\rend386.lib: segment.obj 3dsupp.obj rendrep.obj intmathx.obj matrix.obj \
		inttrig.obj intsplit.obj vdrinte.obj drvload.obj
    del $(LIBDIR)\rend386.lib
    tlib $(LIBDIR)\rend386.lib +segment +3dsupp +rendrep +intmathx +matrix \
        +inttrig +intsplit +vdrinte +drvload

3dsupp.obj: 3dsupp.c 3dstruct.h $(INCDIR)\intmath.h 

rendrep.obj: rendrep.c 3dstruct.h $(INCDIR)\intmath.h $(INCDIR)\f3dkitd.h

segment.obj: segment.c 3dstruct.h $(INCDIR)\intmath.h

intmathx.obj: intmathx.c 3dstruct.h

matrix.obj: matrix.c 3dstruct.h

inttrig.obj: inttrig.c

intsplit.obj: intsplit.c $(INCDIR)\splitdef.h $(INCDIR)\splits.h

vdrinte.obj: vdrinte.asm
	$(CC) $(CFLAGS) -c vdrinte.asm

drvload.obj: drvload.c

######################################################
clean: 
        del *.obj
