home *** CD-ROM | disk | FTP | other *** search
- # This is a part of the Microsoft Foundation Classes C++ library.
- # Copyright (C) 1992 Microsoft Corporation
- # All rights reserved.
- #
- # This source code is only intended as a supplement to the
- # Microsoft Foundation Classes Reference and Microsoft
- # QuickHelp documentation provided with the library.
- # See these sources for detailed information regarding the
- # Microsoft Foundation Classes product.
- #
-
- # MFC200[D].DLL is a large model DLL built with MFC large model [debug] DLL
- # which exports all the MFC classes
- # If you need a private build of the MFC DLL, be sure to rename
- # "MFC200.DLL" to something more appropriate for you application.
- # Please do not re-distribute a privately built version with the
- # name "MFC200.DLL".
-
-
- MODEL=l
- TARGET=w
- DLL=2
- TARG=MFC200
-
- LFLAGS=/NOD /NOE /ONERROR:NOEXE /PACKDATA /NOPACKCODE
- # /NOPACKCODE => keep MFC library segmentation
-
- !if "$(DEBUG)"!="0"
- # Debug DLL build
- TARG=$(TARG)D
- OBJ=$$DLLD
- OBJ_LIB=$$DLLD.LIB
- AFXDLL_OBJ=afxdlld.obj
- RCDEFINES=/D_DEBUG
- CODEVIEW=1
- LFLAGS=$(LFLAGS) /CODEVIEW
-
- !ELSE
- # Release DLL build
- OBJ=$$DLL
- OBJ_LIB=$$DLL.LIB
- AFXDLL_OBJ=afxdll.obj
- RCDEFINES=
- CODEVIEW=0
- !ENDIF
-
- !ifdef RELEASE # Release VERSION info
- RCDEFINES=$(RCDEFINES) /DRELEASE
- !endif
-
- dll_goal: create2.dir $(TARG).dll ..\lib\$(TARG).lib
-
- #############################################################################
- # import most rules and library files from normal makefile
-
- !include makefile
-
- create2.dir:
- @-if not exist $(OBJ)\*.* mkdir $(OBJ)
- @-if not exist $(OBJ_LIB)\*.* mkdir $(OBJ_LIB)
-
- #############################################################################
- # Debug target
-
- $D\$(TARG).res: mfcdll.rc
- rc /r $(RCDEFINES) /fo $D\$(TARG).res mfcdll.rc
-
- DLL_OBJS=$(OBJECT) $(INLINES) $(FILES) $(COLLECTIONS1) $(COLLECTIONS2) $(MISC) \
- $(WINDOWS) $(DIALOG) $(WINMISC) $(DOCVIEW) $(APPLICATION) $(VBX_OBJ) $(OLE)
-
- $(TARG).dll: $(DLL_OBJS) $D\dllinit.obj $(TARG).def $D\$(TARG).res
- link $(LFLAGS) @<<
- $D\dllinit.obj+
- $(OBJECT)+
- $(INLINES)+
- $(FILES)+
- $(COLLECTIONS1)+
- $(COLLECTIONS2)+
- $(MISC)+
- $(WINDOWS)+
- $(DIALOG)+
- $(WINMISC)+
- $(DOCVIEW)+
- $(APPLICATION)+
- $(VBX_OBJ)+
- $(OLE),
- $(TARG).dll,
- $D\$(TARG).map/MAP:ADDRESS,
- ldllcew libw commdlg shell olecli olesvr,
- $(TARG).def;
- <<
- rc /31 /t $D\$(TARG).res $(TARG).dll
-
- #############################################################################
- # Special rules for building static linked library part
-
- # NonShared diagnostics and other hooks (see OBJDIAG in MAKEFILE)
- SLIB_OBJ= $(OBJ_LIB)\dumpinit.obj $(OBJ_LIB)\dumpout.obj \
- $(OBJ_LIB)\afxasert.obj $(OBJ_LIB)\afxmem.obj $(OBJ_LIB)\afxabort.obj
-
- # _AFXDLL defined (but not _WINDLL)
- TARGOPTS_LIB=/GA /GEf /GEs /G2
- CPPFLAGS_LIB=$(CL_MODEL) /W3 /WX /Zp $(TARGOPTS_LIB) $(DEFS) $(OPT)
-
- .cpp{$(OBJ_LIB)}.obj:
- $(CPP) @<<
- $(CPPFLAGS_LIB) /c /Fo$(OBJ_LIB)\ $<
- <<
-
- # AFXDLL.OBJ and AFXDLLD.OBJ are pre-built using the following MASM rules
- # afxdll.obj: afxdll.asm
- # masm /Mx afxdll.asm,afxdll.obj;
- # afxdlld.obj: afxdll.asm
- # masm /Mx /D_DEBUG afxdll.asm,afxdlld.obj;
-
- # import library
- ..\lib\$(TARG).lib: $(TARG).def $(AFXDLL_OBJ) $(SLIB_OBJ)
- implib ..\lib\$(TARG).lib $(TARG).def
- lib /NOEXT/PAGESIZE:16 @<<
- ..\lib\$(TARG).lib
- $(AFXDLL_OBJ)&
- $(SLIB_OBJ)
- ;
- <<
- erase ..\lib\$(TARG).bak
-
- #############################################################################
-