|
@@ -1,3 +1,5 @@
|
|
|
|
+!include ../../Makefile.inc
|
|
|
|
+
|
|
# BORLAND.MAK: Borland makefile for MFC variants
|
|
# BORLAND.MAK: Borland makefile for MFC variants
|
|
#
|
|
#
|
|
# Usage: MAKE -F BORLAND.MAK CLEAN (removes all intermediary files)
|
|
# Usage: MAKE -F BORLAND.MAK CLEAN (removes all intermediary files)
|
|
@@ -5,152 +7,37 @@
|
|
# Note that an MAKE CLEAN should be performed before building a new variant.
|
|
# Note that an MAKE CLEAN should be performed before building a new variant.
|
|
#
|
|
#
|
|
# 'Options' are one of each of:
|
|
# 'Options' are one of each of:
|
|
-# "DLL" (defaults to 0)
|
|
|
|
-# If this item is 0, then a normal library is generated.
|
|
|
|
-# DLL=1 is obsolete and not supported by this release.
|
|
|
|
-# If this item is 2, objects suitable for the shared DLL version
|
|
|
|
-# of MFC are created. Note: DLL=2 is to be used only from
|
|
|
|
-# MFCDLL.MAK, MFCOLE.MAK, or MFCDB.MAK
|
|
|
|
-#
|
|
|
|
# "DEBUG" (defaults to 1)
|
|
# "DEBUG" (defaults to 1)
|
|
# If this item is 1, diagnostic support is compiled into
|
|
# If this item is 1, diagnostic support is compiled into
|
|
# the library. If this item is 0, then diagnostic support
|
|
# the library. If this item is 0, then diagnostic support
|
|
# is disabled. Diagnostic support does not include debug info
|
|
# is disabled. Diagnostic support does not include debug info
|
|
# information.
|
|
# information.
|
|
#
|
|
#
|
|
-# "OBJ=.\obj" (defaults to '$$(MODEL)$(BASE)$(DEBUG)')
|
|
|
|
-# This optional specification specifies where temporary OBJ files
|
|
|
|
-# are stored during the build process. The directory is created or
|
|
|
|
-# removed as necessary.
|
|
|
|
-#
|
|
|
|
-# "OPT=" (no default value)
|
|
|
|
-# This allows additional compiler options to be added to the build.
|
|
|
|
-# If more than one switch is desired, put double-quotes around the
|
|
|
|
-# whole OPT= argument, e.g., "OPT=/J /W3".
|
|
|
|
-#
|
|
|
|
-# "NO_PCH=1"
|
|
|
|
-# Set this item to override the default use of precompiled headers.
|
|
|
|
-#
|
|
|
|
-# "BROWSE=1" (defaults to 0)
|
|
|
|
-# Set this option to build browse info
|
|
|
|
-#
|
|
|
|
-# "MT=0" (defaults to 1)
|
|
|
|
-# To build a non-multithreaded library instead of the default
|
|
|
|
-# (which enables multitheading and uses the multithread
|
|
|
|
-# C-runtimes) you can use MT=0.
|
|
|
|
-#
|
|
|
|
-#=============================================================================
|
|
|
|
-# Borland Additional flags
|
|
|
|
-#=============================================================================
|
|
|
|
-#
|
|
|
|
-# "NO_CLEAN_PCH" (defaults to off)
|
|
|
|
-# To prevent deleting an existing PCH (.csm) file
|
|
|
|
-#
|
|
|
|
-# "DBGINFO" (defaults to 0)
|
|
|
|
-# If this item is 1, Turbo Debugger debug info is compiled into
|
|
|
|
-# the library. If it's 0, then no debugger info is added.
|
|
|
|
-#
|
|
|
|
-# "LIBDIR=..\..\lib"
|
|
|
|
-# Directory for libraries that are created
|
|
|
|
-#
|
|
|
|
-# "MFCINCL=..\..\include\mfc"
|
|
|
|
-# MFC Include directory base
|
|
|
|
-#
|
|
|
|
-# "BCINCL=..\..\include"
|
|
|
|
-# BC++ Include directory
|
|
|
|
-#
|
|
|
|
#############################################################################
|
|
#############################################################################
|
|
# Define defaults if not defined
|
|
# Define defaults if not defined
|
|
-UNICODE=1
|
|
|
|
-# Default to DEBUG mode
|
|
|
|
!ifndef DEBUG
|
|
!ifndef DEBUG
|
|
DEBUG=0
|
|
DEBUG=0
|
|
!endif
|
|
!endif
|
|
|
|
|
|
-# Default to No Debug Info mode
|
|
|
|
-!ifndef DBGINFO
|
|
|
|
-DBGINFO=0
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-# Check for MS syntax
|
|
|
|
-!ifdef CODEVIEW
|
|
|
|
-DBGINFO=$(CODEVIEW)
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-# Default to NOT DLL
|
|
|
|
-!ifndef DLL
|
|
|
|
-DLL=0
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-# Default to no BROWSE info
|
|
|
|
-!ifndef BROWSE
|
|
|
|
-BROWSE=0
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-# Default to no precompiled headers
|
|
|
|
-#!ifndef NO_PCH
|
|
|
|
-#NO_PCH=1
|
|
|
|
-#!endif
|
|
|
|
-
|
|
|
|
-# Default to _MBCS build
|
|
|
|
-MBCS=1
|
|
|
|
-
|
|
|
|
-# Default to multithreading support
|
|
|
|
-!ifndef MT
|
|
|
|
-MT=1
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-# Default to not enable Borland CodeGuard
|
|
|
|
-!ifndef CG
|
|
|
|
-CG=0
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-# Lib directory
|
|
|
|
-!ifndef LIBDIR
|
|
|
|
-LIBDIR=$(LIB_PATH)
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
# Lib Path
|
|
# Lib Path
|
|
-!ifndef LPATH
|
|
|
|
-LPATH=..\..\LIB;..\..\LIB\PSDK
|
|
|
|
-!endif
|
|
|
|
|
|
+LPATH=..\..\lib;..\..\lib\psdk
|
|
|
|
|
|
# MFC Include directory base
|
|
# MFC Include directory base
|
|
-!ifndef MFCINCL
|
|
|
|
MFCINCL=..\include
|
|
MFCINCL=..\include
|
|
-!endif
|
|
|
|
|
|
|
|
# BC Include directory
|
|
# BC Include directory
|
|
-!ifndef BCINCL
|
|
|
|
BCINCL=..\..\include;..\..\include\atl
|
|
BCINCL=..\..\include;..\..\include\atl
|
|
-!endif
|
|
|
|
-
|
|
|
|
-# Disable Warnings
|
|
|
|
-!ifndef NO_WARNINGS
|
|
|
|
-NO_WARNINGS=0
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-# Clean up PCH file
|
|
|
|
-!ifndef NO_CLEAN_PCH
|
|
|
|
-NO_CLEAN_PCH=0
|
|
|
|
-!endif
|
|
|
|
|
|
|
|
BASE=W
|
|
BASE=W
|
|
MODEL=U
|
|
MODEL=U
|
|
-TARGDEFS=/D_UNICODE /DUNICODE /DWINSCP \
|
|
|
|
- /D_AFX_NO_OLEDB_SUPPORT /D_AFX_NO_OCC_SUPPORT /D_AFX_NO_OCX_SUPPORT /D_AFX_NO_DB_SUPPORT \
|
|
|
|
- /D_AFX_NO_AFXCMN_SUPPORT /D_AFX_NO_RICHEDIT_SUPPORT /D_AFX_NO_INET_SUPPORT /D_AFX_NO_DHTML_SUPPORT \
|
|
|
|
- /D_AFX_NO_OLE_SUPPORT /D_AFX_NO_SOCKET_SUPPORT /D_AFX_NO_SYNC_SUPPORT
|
|
|
|
-!if "$(MBCS)" != "0"
|
|
|
|
-TARGDEFS=$(TARGDEFS) /D_MBCS
|
|
|
|
-!endif
|
|
|
|
-PLATFORM=INTEL
|
|
|
|
|
|
+TARGDEFS=_UNICODE;UNICODE;WINSCP
|
|
|
|
+TARGDEFS=$(TARGDEFS);_AFX_NO_OLEDB_SUPPORT;_AFX_NO_OCC_SUPPORT;_AFX_NO_OCX_SUPPORT;_AFX_NO_DB_SUPPORT
|
|
|
|
+TARGDEFS=$(TARGDEFS);_AFX_NO_AFXCMN_SUPPORT;_AFX_NO_RICHEDIT_SUPPORT;_AFX_NO_INET_SUPPORT;_AFX_NO_DHTML_SUPPORT
|
|
|
|
+TARGDEFS=$(TARGDEFS);_AFX_NO_OLE_SUPPORT;_AFX_NO_SOCKET_SUPPORT;_AFX_NO_SYNC_SUPPORT
|
|
|
|
+TARGDEFS=$(TARGDEFS);_MBCS;_MT=1;_X86_
|
|
|
|
|
|
LFLAGS=$(LFLAGS) /j$(LPATH) /L$(LPATH)
|
|
LFLAGS=$(LFLAGS) /j$(LPATH) /L$(LPATH)
|
|
-!if "$(NO_WARNINGS)" == "1"
|
|
|
|
LFLAGS=$(LFLAGS) /w-
|
|
LFLAGS=$(LFLAGS) /w-
|
|
-!endif
|
|
|
|
|
|
|
|
#
|
|
#
|
|
# DEBUG OPTIONS
|
|
# DEBUG OPTIONS
|
|
@@ -158,139 +45,45 @@ LFLAGS=$(LFLAGS) /w-
|
|
!if "$(DEBUG)" != "0"
|
|
!if "$(DEBUG)" != "0"
|
|
|
|
|
|
DEBUGSUF=D
|
|
DEBUGSUF=D
|
|
-DEBDEFS=/D_DEBUG
|
|
|
|
-DEBOPTS=
|
|
|
|
|
|
+DEBDEFS=;_DEBUG
|
|
|
|
|
|
-!endif
|
|
|
|
|
|
+!else
|
|
|
|
|
|
#
|
|
#
|
|
# NON-DEBUG OPTIONS
|
|
# NON-DEBUG OPTIONS
|
|
#
|
|
#
|
|
-!if "$(DEBUG)" == "0"
|
|
|
|
|
|
|
|
DEBUGSUF=
|
|
DEBUGSUF=
|
|
DEBDEFS=
|
|
DEBDEFS=
|
|
-DEBOPTS=/O1
|
|
|
|
-
|
|
|
|
-!endif
|
|
|
|
|
|
|
|
-!if "$(DBGINFO)" == "1"
|
|
|
|
-DEBOPTS=/Od /v /vi
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-!if "$(CG)" == "1"
|
|
|
|
-DEBOPTS=$(DEBOPTS) -vG
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-#
|
|
|
|
-# PLATFORM options
|
|
|
|
-#
|
|
|
|
-CC=bcc32
|
|
|
|
-LIB32=tlib
|
|
|
|
-!ifndef LINK32
|
|
|
|
-LINK32=ilink32 /Gn
|
|
|
|
-!endif
|
|
|
|
-CL_MODEL=/D_X86_
|
|
|
|
-GENDEFS=perl -w $(MAKEDIR)\gendefs.pl
|
|
|
|
-
|
|
|
|
-# TYPE = Library Type Designator
|
|
|
|
-# c = normal C library
|
|
|
|
-# d = DLL library
|
|
|
|
-TYPE=c
|
|
|
|
-
|
|
|
|
-!if "$(DEXT)" == ""
|
|
|
|
-DEXT=
|
|
|
|
!endif
|
|
!endif
|
|
|
|
|
|
#
|
|
#
|
|
# Object File Directory
|
|
# Object File Directory
|
|
#
|
|
#
|
|
-!if "$(OBJ)" == ""
|
|
|
|
-D=$$$(MODEL)$(BASE)$(DEBUGSUF)$(DEXT) # subdirectory specific to variant
|
|
|
|
-!else
|
|
|
|
-D=$(OBJ) # User specified directory
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-#
|
|
|
|
-# _AFXDLL DLL Variant
|
|
|
|
-#
|
|
|
|
-!if "$(DLL)" == "2"
|
|
|
|
-!if "$(TARG)" == ""
|
|
|
|
-!error DLL=2 is used only from BFCDLL.MAK, BFCOLE.MAK, or BFCDB.MAK
|
|
|
|
-!endif
|
|
|
|
-GOAL=$(TARG)
|
|
|
|
-TYPE=e
|
|
|
|
-!if "$(OBJ)" == ""
|
|
|
|
-D=DLL$(DEBUGSUF).$(BASE)
|
|
|
|
-!if "$(UNICODE)" == "1"
|
|
|
|
-D=$(MODEL)$(D)
|
|
|
|
-!endif
|
|
|
|
-D=$$$(D)
|
|
|
|
-!endif
|
|
|
|
-TARGDEFS=$(TARGDEFS) /D_WINDLL /D_AFXDLL
|
|
|
|
-!else
|
|
|
|
-GOAL=$(MODEL)afx$(TYPE)$(BASE)$(DEBUGSUF)
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-#
|
|
|
|
-# Threaded-ness
|
|
|
|
-#
|
|
|
|
-!if "$(MT)" != "0"
|
|
|
|
-TARGOPTS=$(TARGOPTS) /WM /D_MT=1
|
|
|
|
-!else
|
|
|
|
-!error This makefile only builds multi-threaded libraries, not single threaded.
|
|
|
|
-!endif
|
|
|
|
|
|
+D=$$$(MODEL)$(BASE)$(DEBUGSUF) # subdirectory specific to variant
|
|
|
|
|
|
-#
|
|
|
|
-# Import libraries for the DLL builds
|
|
|
|
-#
|
|
|
|
-IMPORT_LIBS=import32.lib inet.lib odbc32.lib
|
|
|
|
|
|
+GOAL=$(MODEL)afxc$(BASE)$(DEBUGSUF)
|
|
|
|
|
|
#
|
|
#
|
|
# COMPILER OPTIONS
|
|
# COMPILER OPTIONS
|
|
#
|
|
#
|
|
|
|
+# -VF4 Support MFC 4.0
|
|
|
|
+CL_OPT=-VF4 -n$(D) -w-
|
|
|
|
|
|
-DEFS=$(DEFS) -D_declspec=__declspec /D_WCHAR_T_DEFINED /D__MSC /D_ANONYMOUS_STRUCT -D_MSC_VER=1200 -D_WINDOWS
|
|
|
|
-!if "$(DLL)" == "2"
|
|
|
|
-DEFS=$(DEFS) /D_RTLDLL /D_DLL
|
|
|
|
-!endif
|
|
|
|
-CL_OPT= -a8 -g0 -j2 -jb -VF4 $(INCROPTS) $(DEBOPTS) $(CVOPTS) $(TARGOPTS)
|
|
|
|
-
|
|
|
|
-#
|
|
|
|
-# Internal debugging switch for the compiler (-=xx)
|
|
|
|
-#
|
|
|
|
-!ifdef COMPILER_DIAG
|
|
|
|
-CL_OPT= $(CL_OPT) -=o
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-!if "$(BROWSE)" != "0"
|
|
|
|
-CL_OPT=-R $(CL_OPT)
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-CL_OPT=-n$(D) $(CL_OPT)
|
|
|
|
-
|
|
|
|
-!if "$(NO_WARNINGS)" == "1"
|
|
|
|
-CL_OPT=$(CL_OPT) -w-
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-!if "$(DEVBUILD)" != "0"
|
|
|
|
-CL_OPT=$(CL_OPT) /D_AFX_DEVBUILD
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-DEFS=$(DEFS) $(DEBDEFS) $(TARGDEFS)
|
|
|
|
|
|
+DEFS=_declspec=__declspec;_WCHAR_T_DEFINED;__MSC;_ANONYMOUS_STRUCT;_MSC_VER=1200;_WINDOWS
|
|
|
|
+DEFS=$(DEFS)$(DEBDEFS);$(TARGDEFS)
|
|
|
|
|
|
#############################################################################
|
|
#############################################################################
|
|
# Library Components
|
|
# Library Components
|
|
|
|
|
|
-OBJECT=objcore.obj except.obj validadd.obj \
|
|
|
|
|
|
+OBJECT = objcore.obj except.obj validadd.obj
|
|
|
|
|
|
-FILES=filecore.obj filex.obj filest.obj
|
|
|
|
|
|
+FILES = filecore.obj filex.obj filest.obj
|
|
|
|
|
|
-MISC= strcore.obj strex.obj timecore.obj \
|
|
|
|
- fixalloc.obj \
|
|
|
|
- plex.obj
|
|
|
|
|
|
+MISC = strcore.obj strex.obj timecore.obj fixalloc.obj plex.obj
|
|
|
|
|
|
-WINMISC= winstr.obj apphelp.obj
|
|
|
|
|
|
+WINMISC = winstr.obj apphelp.obj
|
|
|
|
|
|
!if "$(DEBUG)" == "1"
|
|
!if "$(DEBUG)" == "1"
|
|
INLINES = afxinl1.obj afxinl2.obj afxinl3.obj
|
|
INLINES = afxinl1.obj afxinl2.obj afxinl3.obj
|
|
@@ -298,11 +91,9 @@ INLINES = afxinl1.obj afxinl2.obj afxinl3.obj
|
|
INLINES =
|
|
INLINES =
|
|
!endif
|
|
!endif
|
|
|
|
|
|
-CPP_OBJS=$(OBJECT) $(INLINES) $(FILES) $(MISC) \
|
|
|
|
- $(WINMISC)
|
|
|
|
-
|
|
|
|
|
|
+CPP_OBJS=$(OBJECT) $(INLINES) $(FILES) $(MISC) $(WINMISC)
|
|
|
|
|
|
-OBJS=$(CPP_OBJS) $(OLEASM)
|
|
|
|
|
|
+OBJS=$(CPP_OBJS)
|
|
|
|
|
|
|
|
|
|
#############################################################################
|
|
#############################################################################
|
|
@@ -311,90 +102,39 @@ OBJS=$(CPP_OBJS) $(OLEASM)
|
|
#############################################################################
|
|
#############################################################################
|
|
# Set CPPFLAGS for use with .cpp.obj and .c.obj rules
|
|
# Set CPPFLAGS for use with .cpp.obj and .c.obj rules
|
|
# Define rule for use with OBJ directory
|
|
# Define rule for use with OBJ directory
|
|
-# C++ uses a PCH file
|
|
|
|
|
|
|
|
-CPPFLAGS=$(CPPFLAGS) $(CL_MODEL) $(CL_OPT) $(PDBOPTS) $(DEFS) $(OPT)
|
|
|
|
-BORRSP=bor.rsp
|
|
|
|
|
|
+CPPFLAGS=$(CFLAG_COMMON) $(CL_OPT) -D$(DEFS:;= -D)
|
|
|
|
|
|
-!ifndef NO_PCH
|
|
|
|
-!ifndef PCH_FILE
|
|
|
|
-# put the PCH file in the OBJ directory for easy cleanup later
|
|
|
|
-PCH_FILE=$(D)\stdafx
|
|
|
|
-!if "$(BROWSE)" != "0"
|
|
|
|
-PCH_FILE=$(PCH_FILE)b
|
|
|
|
-!endif
|
|
|
|
-PCH_FILE=$(PCH_FILE).csm
|
|
|
|
-!endif
|
|
|
|
-!ifndef PCH_CPP
|
|
|
|
-PCH_CPP=objcore
|
|
|
|
-!endif
|
|
|
|
-PCH_CMD=-Hc -H=$(PCH_FILE)
|
|
|
|
-!else
|
|
|
|
-PCH_CMD=-H-
|
|
|
|
-PCH_FILE=
|
|
|
|
-!endif
|
|
|
|
-CPPFLAGS=$(CPPFLAGS) $(PCH_CMD)
|
|
|
|
|
|
+INCL=$(BCINCL);$(MFCINCL)
|
|
|
|
|
|
-!ifdef JOHNS_CPP32
|
|
|
|
-PREPROCFLAGS=-Sd -Sk -Sr -P-
|
|
|
|
-!else
|
|
|
|
-PREPROCFLAGS=-Sd -Sk -Ss -P
|
|
|
|
-!endif
|
|
|
|
|
|
+BORFLAGS=$(CPPFLAGS) -I$(INCL:;= -I)
|
|
|
|
|
|
.SUFFIXES: .cpp
|
|
.SUFFIXES: .cpp
|
|
|
|
|
|
.path.obj = $(D)
|
|
.path.obj = $(D)
|
|
|
|
|
|
-
|
|
|
|
-.cpp.i:
|
|
|
|
- cpp32 @$(BORRSP) $(PREPROCFLAGS) $<
|
|
|
|
-
|
|
|
|
.cpp.obj:
|
|
.cpp.obj:
|
|
-!if $d(FORCE_CPP32)
|
|
|
|
- cpp32 @$(BORRSP) $(PREPROCFLAGS) $<
|
|
|
|
-!else
|
|
|
|
- $(CC) @$(BORRSP) /c { $< }
|
|
|
|
-!endif
|
|
|
|
-
|
|
|
|
-!ifndef NO_PCH
|
|
|
|
-PCH_TARGETS=$(PCH_FILE) $(D)\$(PCH_CPP).obj
|
|
|
|
-!endif
|
|
|
|
|
|
+ $(CC) $(BORFLAGS) { $< }
|
|
|
|
|
|
#############################################################################
|
|
#############################################################################
|
|
# Goals to build
|
|
# Goals to build
|
|
|
|
|
|
-GOALS=log.mode create.dir create.rsp
|
|
|
|
-!ifndef NO_PCH
|
|
|
|
-GOALS=$(GOALS) $(PCH_TARGETS)
|
|
|
|
-!endif
|
|
|
|
-GOALS=$(GOALS) $(LIBDIR)\$(GOAL).lib
|
|
|
|
|
|
+LIB=$(LIB_PATH)\$(GOAL).lib
|
|
|
|
+GOALS=log.mode create.dir $(LIB)
|
|
|
|
|
|
goal: $(GOALS)
|
|
goal: $(GOALS)
|
|
|
|
|
|
log.mode:
|
|
log.mode:
|
|
@-echo BORLAND.MAK:
|
|
@-echo BORLAND.MAK:
|
|
- @-echo GOAL=$(GOAL), DLL=$(DLL), DEBUG=$(DEBUG),
|
|
|
|
- @-echo DBGINFO=$(DBGINFO), RCDEFINES=$(RCDEFINES),
|
|
|
|
- @-echo CL_OPT=$(CL_OPT), DEFS=$(DEFS),
|
|
|
|
|
|
+ @-echo GOAL=$(GOAL), DEBUG=$(DEBUG),
|
|
|
|
+ @-echo CL_OPT=$(CL_OPT)
|
|
|
|
+ @-echo DEFS=$(DEFS),
|
|
@-echo CPPFLAGS=$(CPPFLAGS)
|
|
@-echo CPPFLAGS=$(CPPFLAGS)
|
|
@-echo D=$(D)
|
|
@-echo D=$(D)
|
|
- @-echo STATICLINK_OBJS=$(STATICLINK_OBJS)
|
|
|
|
-
|
|
|
|
-create.rsp:
|
|
|
|
-!ifndef NO_PCH
|
|
|
|
-!if "$(NO_CLEAN_PCH)" == "0"
|
|
|
|
- @-if exist $(PCH_FILE) echo Erasing PCH file: $(PCH_FILE) for a fresh build
|
|
|
|
- @-if exist $(PCH_FILE) erase $(PCH_FILE) > nul
|
|
|
|
-!endif
|
|
|
|
-!endif
|
|
|
|
- @-if exist $(BORRSP) erase $(BORRSP) > nul
|
|
|
|
- copy &&|
|
|
|
|
-$(CPPFLAGS) -I$(BCINCL);$(MFCINCL)
|
|
|
|
-| $(BORRSP)
|
|
|
|
|
|
|
|
create.dir:
|
|
create.dir:
|
|
@-if not exist $(D) mkdir $(D)
|
|
@-if not exist $(D) mkdir $(D)
|
|
- @-if not exist $(LIBDIR) mkdir $(LIBDIR)
|
|
|
|
|
|
+ @-if not exist $(LIB_PATH) mkdir $(LIB_PATH)
|
|
|
|
|
|
clean:
|
|
clean:
|
|
@-if exist *.map erase *.map
|
|
@-if exist *.map erase *.map
|
|
@@ -402,9 +142,6 @@ clean:
|
|
@-if exist *.cfg erase *.cfg
|
|
@-if exist *.cfg erase *.cfg
|
|
@-if exist *.rsp erase *.rsp
|
|
@-if exist *.rsp erase *.rsp
|
|
@-if exist *.tds erase *.tds
|
|
@-if exist *.tds erase *.tds
|
|
-!if $d(INTEGRATION_BUILD)
|
|
|
|
- @-if exist $(PLATFORM)\*.def erase $(PLATFORM)\*.def
|
|
|
|
-!endif
|
|
|
|
@-if exist $$DLLD.W rmdir $$DLLD.W /s
|
|
@-if exist $$DLLD.W rmdir $$DLLD.W /s
|
|
@-if exist $$DLL.W rmdir $$DLL.W /s
|
|
@-if exist $$DLL.W rmdir $$DLL.W /s
|
|
@-if exist $$NW rmdir $$NW /s
|
|
@-if exist $$NW rmdir $$NW /s
|
|
@@ -414,36 +151,17 @@ clean:
|
|
#############################################################################
|
|
#############################################################################
|
|
# Precompiled header file
|
|
# Precompiled header file
|
|
|
|
|
|
-!ifndef NO_PCH
|
|
|
|
-
|
|
|
|
!if "$(DEBUG)" == "1"
|
|
!if "$(DEBUG)" == "1"
|
|
HDRS =$(MFCINCL)\*.h
|
|
HDRS =$(MFCINCL)\*.h
|
|
!else
|
|
!else
|
|
HDRS =$(MFCINCL)\*.h $(MFCINCL)\*.inl
|
|
HDRS =$(MFCINCL)\*.h $(MFCINCL)\*.inl
|
|
!endif
|
|
!endif
|
|
|
|
|
|
-!if "$(DLL)" != "2"
|
|
|
|
-$(PCH_TARGETS): $(PCH_CPP).cpp
|
|
|
|
- $(CC) @&&!
|
|
|
|
-$(CPPFLAGS) -I$(BCINCL);$(MFCINCL) /c $(PCH_CPP).cpp
|
|
|
|
-!
|
|
|
|
-
|
|
|
|
-!endif # DLL != 2
|
|
|
|
-!endif # NO_PCH
|
|
|
|
-
|
|
|
|
-
|
|
|
|
#############################################################################
|
|
#############################################################################
|
|
# Build the library from the up-to-date objs
|
|
# Build the library from the up-to-date objs
|
|
|
|
|
|
-!if "$(DLL)" != "2"
|
|
|
|
# Build final library
|
|
# Build final library
|
|
-$(LIBDIR)\$(GOAL).lib: $(D)\$(OBJS)
|
|
|
|
- # @-if exist $@ erase $@
|
|
|
|
- @$(LIB32) $@ /P2048 @&&!
|
|
|
|
-+$(**: = &^
|
|
|
|
-+)
|
|
|
|
-!
|
|
|
|
-
|
|
|
|
-!endif #DLL!=2
|
|
|
|
|
|
+$(LIB): $(OBJS)
|
|
|
|
+ $(MKLIB) $@ $(**)
|
|
|
|
|
|
#############################################################################
|
|
#############################################################################
|