
TARGET = main.exe

OBJS = main.obj clip.obj draw.obj &
       flat.obj gouraud.obj txtmap.obj txtarb.obj txttil.obj 


CPPOPT  = -fpi87 -fp5 -5r -oneatx -s
LINKOPT = system dos4g
# LINKOPT = system pmodew


$(TARGET) : $(OBJS) makefile
    *wlink $(LINKOPT) name $(TARGET) file {$(OBJS)}
#     pmwlite /c4 $(TARGET)



main.obj : main.cpp misc.h makefile
    *wpp386 $(CPPOPT) main.cpp

clip.obj : clip.cpp misc.h makefile
    *wpp386 $(CPPOPT) clip.cpp

draw.obj : draw.cpp misc.h makefile
    *wpp386 $(CPPOPT) draw.cpp

flat.obj : flat.cpp misc.h makefile
    *wpp386 $(CPPOPT) flat.cpp

gouraud.obj : gouraud.cpp misc.h makefile
    *wpp386 $(CPPOPT) gouraud.cpp

txtmap.obj : txtmap.cpp misc.h makefile
    *wpp386 $(CPPOPT) txtmap.cpp

txttil.obj : txttil.cpp misc.h makefile
    *wpp386 $(CPPOPT) txttil.cpp

txtarb.obj : txtarb.cpp misc.h makefile
    *wpp386 $(CPPOPT) txtarb.cpp

