# MAKEFILE for George's Bitmap Control OCX
#
# George Cross, Borland C++ Technical Support, July 1997
#
# Built with Borland C++Builder 1.0 (with patch)
# 
# Not dependent on BUILTINS.MAK, BCC32.CFG, TLINK32.CFG, PATH nor 
# any other environment variables.
#

.autodepend

TARGET = bmpctrl
OBJS = $(TARGET).obj dllentry.obj ioleobj.obj bmpctrl_i.obj 
RESES = $(TARGET).res

$(TARGET).ocx:  bcc.cfg $(TARGET).tlb $(OBJS) $(RESES)
  $(MAKEDIR)\tlink32.exe @&&|
    /Tpd /v /x /L$(MAKEDIR)\..\lib  +
    c0d32 $(OBJS)
    $.

    import32 cw32mt

    $&
|

bcc.cfg:
  copy &&|
    -DUNICODE -DSTRICT -DINC_OLE2 
    -I$(MAKEDIR)\..\include
    -Hc -H"$(TARGET).h" -H=$(TARGET).csm
    -c -v
| $.
  
.odl.tlb:
  $(MAKEDIR)\midl.exe @&&|
    /win32 /c_ext /ms_ext /I$(MAKEDIR)\..\include\idl
    /h bmpctrl_ifc.h
    /cpp_cmd $(MAKEDIR)\cpp32.exe 
    /cpp_opt "-oCON -I$(MAKEDIR)\..\include -D__MKTYPLIB__"
| $.

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

.c.obj:
  $(MAKEDIR)\bcc32 +bcc.cfg $.

.rc.res:
  $(MAKEDIR)\brcc32 $.

clean:
  del *.obj *.csm *.?0? *.t?2 *.dll *.ocx *.tlb \
      $(TARGET)_i.c $(TARGET)_ifc.h *.res *.cfg
