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

$(LIBDIR)\userint.lib: userint.obj joystick.obj cursors.obj \
        gloveptr.obj mouseptr.obj keyboard.obj anim.obj world.obj \
        hdmanip.obj render.obj colormap.obj
   del $(LIBDIR)\userint.lib
   tlib $(LIBDIR)\userint +userint +joystick +cursors +gloveptr \
        +mouseptr +keyboard +anim +world +hdmanip +render +colormap

userint.obj: userint.c $(INCDIR)\userint.h $(INCDIR)\rend386.h \
		$(INCDIR)\pointer.h $(INCDIR)\cursor.h

joystick.obj: joystick.c $(INCDIR)\userint.h

colormap.obj: colormap.c $(INCDIR)\rend386.h $(INCDIR)\f3dkitd.h

render.obj: render.c $(INCDIR)\rend386.h $(INCDIR)\f3dkitd.h \
        $(INCDIR)\intmath.h $(INCDIR)\splits.h $(INCDIR)\userint.h

hdmanip.obj: hdmanip.c $(INCDIR)\rend386.h $(INCDIR)\userint.h \
        $(INCDIR)\intmath.h $(INCDIR)\splits.h $(INCDIR)\segasupp.h \
        $(INCDIR)\pointer.h $(INCDIR)\cursor.h

mouseptr.obj: mouseptr.c $(INCDIR)\rend386.h $(INCDIR)\pointer.h

gloveptr.obj: gloveptr.c $(INCDIR)\rend386.h $(INCDIR)\pointer.h \
        $(INCDIR)\segasupp.h $(INCDIR)\intmath.h

cursors.obj: cursors.c $(INCDIR)/rend386.h  $(INCDIR)\userint.h \
        $(INCDIR)/f3dkitd.h $(INCDIR)/intmath.h $(INCDIR)/pointer.h \
        $(INCDIR)/cursor.h $(INCDIR)\segio.h $(INCDIR)\splits.h \
        $(INCDIR)\plg.h

keyboard.obj: keyboard.c $(INCDIR)\rend386.h $(INCDIR)\userint.h \
        $(INCDIR)\plg.h $(INCDIR)\pointer.h $(INCDIR)\splits.h \
        $(INCDIR)\intmath.h $(INCDIR)\cursor.h $(INCDIR)\segio.h \
        $(INCDIR)\eprint.h

world.obj: world.c $(INCDIR)\rend386.h $(INCDIR)\userint.h \
        $(INCDIR)\tasks.h $(INCDIR)\plg.h $(INCDIR)\intmath.h \
        $(INCDIR)\splits.h $(INCDIR)\pointer.h $(INCDIR)\cursor.h \
        $(INCDIR)\segasupp.h $(INCDIR)\segio.h $(INCDIR)\eprint.h \
        $(INCDIR)\gdc.h

anim.obj: anim.c $(INCDIR)\rend386.h $(INCDIR)\tasks.h $(INCDIR)\intmath.h

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

