ID: Q107776
3.00 WINDOWS kbtool kbprg
The information in this article applies to:
- Professional Edition of Microsoft Visual Basic for Windows,
  version 3.0
This article gives a sample .MAK file for compiling a Microsoft Visual Basic custom control using Borland C++ version 3.1. Sample C code is not provided with this example.
Borland C++ is manufactured by Borland International, Inc., a vendor independent of Microsoft. We make no warranty, implied or otherwise, regarding this product's performance or reliability.
Run the MAKE utility without the -N compatibility option when using the sample .MAK file below.
.nosilent
OBJPATH = ..\obj\               # comment to prevent trailing \ 
MAINTPATH = ..\maint\           # comment to prevent trailing \ 
           $(OBJPATH)winqfile.obj
.path.obj = $(OBJPATH) .path.res = $(OBJPATH) .path.rsp = $(MAINTPATH) .path.sym = $(OBJPATH)
LIBPATH = $(BORPATH)\LIB;c:\vb3.0\cdk;c:\idk\lib\win CDEFS = -DSTRICT MEM = s DLL = ! MODEL = $(MEM)$(DLL) CFLAGS = -n$(OBJPATH) -m$(MODEL) -WD /I$(KMSTOOLS) /I$(BORPATH)/include /Ic:\vb3.0\cdk /Ic:\idk\include
#       Implicit rules
      $(RC) $(RFLAGS) -r $&.rc
      copy  $&.res $(OBJPATH)$&.res
      del   $&.res
      $(RC) $(RFLAGS) -r $&.rc
#       Links
    $(LNK) /Twd/v/x/P-/L$(LIBPATH) @&&|
|
    rc $(OBJPATH)winq.res $<
$(MAINTPATH)bcc.rsp: $(MAINTPATH)makefile.mak
    copy &&|
| $(MAINTPATH)bcc.rsp
#       Compiles
     del $(OBJPATH)*.sym
     $(CC) -H=$(OBJPATH)winqinc.sym @$(MAINTPATH)bcc.rsp {$&.cpp }
     $(MAINTPATH)bcc.rsp winqinc.sym $(RESFILES) $(HDRFILES)
     $(CC) -H=$(OBJPATH)winqmain.sym @$(MAINTPATH)bcc.rsp {$&.cpp }
     $(HDRFILES)
     $(CC) -H=$(OBJPATH)winqinc.sym @$(MAINTPATH)bcc.rsp {$&.cpp }
     $(HDRFILES)
     $(CC) -H=$(OBJPATH)winqinc.sym @$(MAINTPATH)bcc.rsp {$&.cpp }
Additional reference words: 3.00 KBCategory: kbtool kbprg KBSubcategory: TlsCDK
Keywords          : TlsCDK 
Version           : 3.00
Platform          : WINDOWSLast Reviewed: February 19, 1996