home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / msj / v10n03 / bocole.exe / MAKEFILE. < prev    next >
Text File  |  1995-03-01  |  3KB  |  107 lines

  1. EXENAME     = MDI
  2. OBJS        = $(EXENAME).OBJ BOUNCE.OBJ HELLO.OBJ MAINFRM.OBJ \
  3.                 STDAFX.OBJ OCFHLPR.OBJ OCF4MFC.OBJ
  4.  
  5.  
  6. #
  7. # Uncomment and define the following macros if your setup differs
  8. # from the defaults ( C:\BORLANDC and C:\MSVC\MFC for BCPATH and
  9. # MFCPATH respectively )
  10. #
  11. #BCPATH=
  12. MFCPATH=\MFC
  13. #
  14.  
  15. # ==================================================================== #
  16. #  The following builds the executable EXENAME [macro defined above].  #
  17. #  The files 'EXENAME'.DEF and 'EXENAME'.RC must exist.                #
  18. #  Some of the MACROS used below may need to be defined above if your  #
  19. #  your setup differs from the expected default.                       #
  20. #                                                                      #
  21. #    MACRO        DEFAULT                                              #
  22. #   ------------ ----------------------------------------------------  #
  23. #    MODEL        l           ( i.e.  Large memory model )             #
  24. #    MFC_LIBNAME  BCMFCx      ( where x is the model, eg. BCMFCL       #
  25. #    BCPATH       C:\BORLANDC ( root directory of Borland C++ )        #
  26. #    MFCPATH      C:\MSVC\MFC ( root directory of MFC )                #
  27. #                                                                      #
  28. # ==================================================================== # 
  29.  
  30. .AUTODEPEND
  31.  
  32. !if !$d(MODEL)                  #Memory Model of Library & Example
  33. MODEL=l
  34. !endif
  35.  
  36. !if !$d(MFC_LIBNAME)            #Name of MFC library built using BC++
  37. MFC_LIBNAME=BCMFC$(MODEL)
  38. !endif
  39.  
  40. !if !$d(BCPATH)                 #Root directory of Borland C++
  41. BCPATH=$(MAKEDIR)\..
  42. !endif
  43.  
  44. !if !$d(MFCPATH)                #Root directory of MFC
  45. MFCPATH=C:\MSVC\MFC
  46. !endif
  47.  
  48. !if !$d(LIBPATH)                #Paths for Libraries (MFC & BC)
  49. LIBPATH=$(BCPATH)\LIB
  50. !endif
  51.  
  52. !if !$d(INCPATH)                #Paths for Include files (MFC & BC)
  53. INCPATH=$(BCPATH)\INCLUDE;$(MFCPATH)\INCLUDE;$(MFCPATH)\INCLUDE\MISC;$(MFCPATH)\SRC
  54. !endif
  55.  
  56. !if !$d(NODEBUG)
  57. DBGFLAGS=-v
  58. LNKDBG=/v+
  59. !else
  60. DBGFLAGS=-v-
  61. LNKDBG=/v-
  62. !endif
  63.  
  64. !if !$d(CFLAGS)
  65. CFLAGS= -c -Vh -w-hid -w-par -w-aus -m$(MODEL) -WS \
  66.          $(DBGFLAGS) -D_OCFPCH -G -H=$(EXENAME).CSM\
  67.          -D__TRACE -D__WARN
  68. !endif
  69.  
  70. TLINK = TLINK
  71. BCC   = BCC +$(EXENAME).CFG
  72. BRC   = BRC
  73.  
  74.  
  75. .cpp.obj:
  76.     $(BCC) -m$(MODEL) {$< }
  77.  
  78.  
  79. .rc.res:
  80.     $(BRC) -r -i$(INCPATH) $<
  81.  
  82.  
  83. $(EXENAME).exe: $(EXENAME).cfg $(OBJS) $(EXENAME).res $(EXENAME).def
  84.     $(TLINK) /Twe /L$(LIBPATH) $(LNKDBG) /Vt /c /C /M /s @&&|
  85. c0w$(MODEL) $(OBJS)        
  86. $(EXENAME)
  87. $(EXENAME)
  88. $(MFC_LIBNAME) mathw$(MODEL) ole2w16 ocfwl bidsl import cw$(MODEL)
  89. $(EXENAME).DEF
  90. |
  91.     $(BRC) -k $(EXENAME).res $(EXENAME).exe
  92.  
  93.  
  94. $(EXENAME).cfg : MAKEFILE
  95.  @copy &&|
  96. -I$(INCPATH)
  97. -L$(LIBPATH)
  98. $(CFLAGS)
  99. | $<
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.