# Borland C++Builder MAKEFILE for Kraig BrockSchmidt's Poly24.dll
# from "Inside OLE", MS Press
#
# Created by George Cross, Borland C++ Developer Support, July 1997
# 
# Not dependent on BUILTINS.MAK, any external .CFG file, the PATH
# or any other environmental variables.
#
# This project does require the "Inside OLE" CD, INOLE.DLL, an import
# library for it, and CLASSMDI.LIB also from the CD.  CLASSMDI.LIB I 
# have also built and it is available on my website.
#
.autodepend

TARGET = poly24
OBJS = DLLPOLY.OBJ CONTROL.OBJ ICONNPT.OBJ IDATAOBJ.OBJ IEXTCONN.OBJ \
       IIPAOBJ.OBJ IIPOBJ.OBJ IOLEOBJ.OBJ IPERSTMI.OBJ IPERSTOR.OBJ \
       IPOLYLIN.OBJ IRUNOBJ.OBJ IVIEWOBJ.OBJ POLYLINE.OBJ POLYWIN.OBJ
RESES = POLYLINE.RES

INOLEROOT = f:\inside.ole\code

DEFINES = -DSTRICT  -DUNICODE
INCFLAGS = -I.\;$(MAKEDIR)\..\include;$(INOLEROOT)\inc
PCHFLAGS = -Hc -H=$(TARGET).csm -H"$(TARGET).h"

CPPFLAGS = $(INCFLAGS) $(DEFINES) -v -x- -VF $(PCHFLAGS)    
LFLAGS = /v /Tpd /aa /L$(MAKEDIR)\..\lib;
RFLAGS = -i.\;$(MAKEDIR)\..\include;$(INOLEROOT)\inc 


$(TARGET).dll: bcc.cfg $(OBJS) $(RESES)
   $(MAKEDIR)\tlink32.exe @&&|
       $(LFLAGS) +
       c0d32 $(OBJS)                        #Startup and objs
       $&                                   #Target
					    #Map file
       inole classMDI cw32mt import32       #Static and import libraries
       win32.def                            #Module definition file
       $(RESES)                             #Resources
|



bcc.cfg:
  copy &&|
    -c $(CPPFLAGS) 
| $.

.cpp.obj:
  $(MAKEDIR)\bcc32.exe +bcc.cfg { $< }

.rc.res:
  $(MAKEDIR)\brcc32.exe $(RFLAGS) $<

clean:
  del *.obj *.exe *.csm *.?0? *.map *.res *.cfg *.t?2
