home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Troubleshooting Netware Systems
/
CSTRIAL0196.BIN
/
attach
/
msj
/
v10n03
/
bocole.exe
/
MAKEFILE.
< prev
next >
Wrap
Text File
|
1995-03-01
|
3KB
|
107 lines
EXENAME = MDI
OBJS = $(EXENAME).OBJ BOUNCE.OBJ HELLO.OBJ MAINFRM.OBJ \
STDAFX.OBJ OCFHLPR.OBJ OCF4MFC.OBJ
#
# Uncomment and define the following macros if your setup differs
# from the defaults ( C:\BORLANDC and C:\MSVC\MFC for BCPATH and
# MFCPATH respectively )
#
#BCPATH=
MFCPATH=\MFC
#
# ==================================================================== #
# The following builds the executable EXENAME [macro defined above]. #
# The files 'EXENAME'.DEF and 'EXENAME'.RC must exist. #
# Some of the MACROS used below may need to be defined above if your #
# your setup differs from the expected default. #
# #
# MACRO DEFAULT #
# ------------ ---------------------------------------------------- #
# MODEL l ( i.e. Large memory model ) #
# MFC_LIBNAME BCMFCx ( where x is the model, eg. BCMFCL #
# BCPATH C:\BORLANDC ( root directory of Borland C++ ) #
# MFCPATH C:\MSVC\MFC ( root directory of MFC ) #
# #
# ==================================================================== #
.AUTODEPEND
!if !$d(MODEL) #Memory Model of Library & Example
MODEL=l
!endif
!if !$d(MFC_LIBNAME) #Name of MFC library built using BC++
MFC_LIBNAME=BCMFC$(MODEL)
!endif
!if !$d(BCPATH) #Root directory of Borland C++
BCPATH=$(MAKEDIR)\..
!endif
!if !$d(MFCPATH) #Root directory of MFC
MFCPATH=C:\MSVC\MFC
!endif
!if !$d(LIBPATH) #Paths for Libraries (MFC & BC)
LIBPATH=$(BCPATH)\LIB
!endif
!if !$d(INCPATH) #Paths for Include files (MFC & BC)
INCPATH=$(BCPATH)\INCLUDE;$(MFCPATH)\INCLUDE;$(MFCPATH)\INCLUDE\MISC;$(MFCPATH)\SRC
!endif
!if !$d(NODEBUG)
DBGFLAGS=-v
LNKDBG=/v+
!else
DBGFLAGS=-v-
LNKDBG=/v-
!endif
!if !$d(CFLAGS)
CFLAGS= -c -Vh -w-hid -w-par -w-aus -m$(MODEL) -WS \
$(DBGFLAGS) -D_OCFPCH -G -H=$(EXENAME).CSM\
-D__TRACE -D__WARN
!endif
TLINK = TLINK
BCC = BCC +$(EXENAME).CFG
BRC = BRC
.cpp.obj:
$(BCC) -m$(MODEL) {$< }
.rc.res:
$(BRC) -r -i$(INCPATH) $<
$(EXENAME).exe: $(EXENAME).cfg $(OBJS) $(EXENAME).res $(EXENAME).def
$(TLINK) /Twe /L$(LIBPATH) $(LNKDBG) /Vt /c /C /M /s @&&|
c0w$(MODEL) $(OBJS)
$(EXENAME)
$(EXENAME)
$(MFC_LIBNAME) mathw$(MODEL) ole2w16 ocfwl bidsl import cw$(MODEL)
$(EXENAME).DEF
|
$(BRC) -k $(EXENAME).res $(EXENAME).exe
$(EXENAME).cfg : MAKEFILE
@copy &&|
-I$(INCPATH)
-L$(LIBPATH)
$(CFLAGS)
| $<