1、# of MFC are created. Note: DLL=2 is to be used only from# MFCDLL.MAK, MFCOLE.MAK, or MFCDB.MAKDEBUG (defaults to 1)# If this item is 1, debugging support is compiled into# the library. If this item is 0, then debugging support# is disabled. Debug support does not include CodeView information.CODEVI
2、EW (defaults to 1 for DEBUG=1, 0 for DEBUG=0)# If this item is 1 CodeView information is compiled into# the library. You must use the /DEBUG:FULL and /DEBUGTYPE:cv link# options when linking your executable. A value of 0 indicates that# no CodeView information is to be generated.OBJ=.obj (defaults t
3、o $(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 de
4、sired, 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.NO_PDB=1# Set this item to override the default use of PDB files.BROWSE=1# Set this option to build the browse database for the MFC# library. By setti
5、ng BROWSE=1, both the .SBRs and the .BSC# files will be built along with the .OBJ and .LIB files that# are part of the normal build process.BROWSEONLY=1# Set this option to build the browse files without re-building# the MFC library itself. Note: This option is used internally# when BROWSE=1 is sele
6、cted.PLATFORM=INTEL (defaults depends on host)# This option chooses the appropriate tools and sources for the# different platforms supporting the Win32 API. Currently INTEL,# MIPS, ALPHA, PPC are supported.INCREMENTAL=1# This option enables incremental/minimal compilation and# incremental linking.#
7、Advanced Options:MBCS=0# To build an SBCS library instead of the default (MBCS)# you can use MBCS=0. This creates a slightly smaller# library, but the code will not work in far-east markets.# This option has no effect when UNICODE=1.MT=0# To build a non-multithreaded library instead of the default#
8、(which enables multitheading and uses the multithread# C-runtimes) you can use MT=0.# Define defaults if not defined# Default PLATFORM depending on host environment!ifndef PLATFORMifndef PROCESSOR_ARCHITECTUREPROCESSOR_ARCHITECTURE=x86endifif $(PROCESSOR_ARCHITECTURE) = x86PLATFORM=INTELMIPSPLATFORM
9、=MIPSALPHAPLATFORM=ALPHAPPCPLATFORM=PPC# Default to DEBUG modeifndef DEBUGDEBUG=1# Default to NOT DLLifndef DLLDLL=0# Default Codeview Infoifndef CODEVIEW$(DEBUG)1CODEVIEW=1elseCODEVIEW=0# BROWSEONLY is default 0 and implies BROWSE=1 if BROWSEONLY=1ifndef BROWSEONLYBROWSEONLY=0$(BROWSEONLY) != 0unde
10、f BROWSEBROWSE=1# Default to no BROWSE infoifndef BROWSEBROWSE=0# Default to no INCREMENTAL buildifndef DEVBUILDDEVBUILD=0ifndef INCREMENTALINCREMENTAL=$(DEVBUILD)INCREMENTAL=0# Default to _MBCS buildifndef MBCSMBCS=1# Default to multithreading supportifndef MTMT=1# normalize cases of parameters, or
11、 error check$(CPU)$(PLATFORM)error Must set PLATFORM=MIPS for MIPS buildserror Must set PLATFORM=ALPHA for ALPHA buildsBASE=W# Parse options# DEBUG OPTIONSDEBUGSUF=DDEBDEFS=/D_DEBUGDEBOPTS=/Od# NON-DEBUG OPTIONSDEBUGSUF=DEBDEFS=INTELDEBOPTS=/O1 /GyF# PLATFORM optionsCL_MODEL=/D_X86_CL_MODEL=/D_MIPS_
12、CL_MODEL=/D_ALPHA_CL_MODEL=/D_PPC_$(CL_MODEL)error PLATFORM must be one of INTEL, MIPS, ALPHA, or PPC.# TYPE = Library Type Designator# c = normal C library# d = DLL libraryTYPE=cDEXT=# Object File Directory$(OBJ)D=$(MODEL)$(BASE)$(DEBUGSUF)$(DEXT) # subdirectory specific to variantD=$(OBJ) # User s
13、pecified directory# _AFXDLL DLL Variant$(DLL)2# _AFXDLL libraryTYPE=eD=DLL$(DEBUGSUF).$(BASE)$(UNICODE)D=$(MODEL)$DD=$DTARGOPTS=$(TARGOPTS) /MD /D_DLL /GF$(MT)TARGOPTS=$(TARGOPTS) /D_MTTARGDEFS=$(TARGDEFS) /D_WINDLL /D_AFXDLL# not _AFXDLL library$(MD)TARGOPTS=$(TARGOPTS) /MDTARGOPTS=$(TARGOPTS) /MTM
14、ODEL=UTARGDEFS=$(TARGDEFS) /D_UNICODEMODEL=N$(MBCS)TARGDEFS=$(TARGDEFS) /D_MBCS & $(TARG)error DLL=2 is used only from MFCDLL.MAK, MFCOLE.MAK, or MFCDB.MAKGOAL=$(TARG)GOAL=$(MODEL)afx$(TYPE)$(BASE)$(DEBUGSUF)# CODEVIEW options$(CODEVIEW)$(NO_PDB)CVOPTS=/Z7$(PROFLIB)error Cant build for profiling wit
15、hout PDB files.CVOPTS=/ZiCVOPTS=$(CVOPTS) /GhPDBOPTS=/Fd$(GOAL).pdbPDBOPTS=/Fd.lib$(GOAL).pdb# INCREMENTAL options$(INCREMENTAL)INCROPTS=/Gi /GmINCROPTS=/Gi- /Gm-# COMPILER OPTIONSCL_OPT=/W4 /WX /Zl /GX /GR $(INCROPTS) $(DEBOPTS) $(CVOPTS) $(TARGOPTS)$(DEVBUILD)CL_OPT=$(CL_OPT) /D_AFX_DEVBUILD$(BROW
16、SE)CL_OPT=/FR$D $(CL_OPT)CL_OPT=/Zs $(CL_OPT)CL_OPT=/Fo$D $(CL_OPT)DEFS=$(DEFS) $(DEBDEFS) $(TARGDEFS)# Library ComponentsOBJECT=$Dobjcore.obj $Dexcept.obj $Dvalidadd.obj $Ddumpcont.obj $Ddumpflt.obj $Darccore.obj $Darcobj.obj $Darcex.obj $Darcstrm.obj# non-shared diagnosticsOBJDIAG=$Ddumpinit.obj $
17、Ddumpout.obj $Dafxasert.obj $Dafxmem.obj $Dafxabort.objFILES=$Dfilecore.obj $Dfiletxt.obj $Dfilemem.obj $Dfileshrd.obj $Dfilex.obj $Dfilest.objCOLL1=$Darray_b.obj $Darray_d.obj $Darray_p.obj $Darray_o.obj $Darray_s.obj $Darray_u.obj $Darray_w.obj $Dlist_o.obj $Dlist_p.obj $Dlist_s.objCOLL2=$Dmap_pp.
18、obj $Dmap_pw.obj $Dmap_so.obj $Dmap_sp.obj $Dmap_ss.obj $Dmap_wo.obj $Dmap_wp.obj $Dplex.objMISC= $Dstrcore.obj $Dstrex.obj $Dtimecore.obj $Dafxdbcs.obj $Dafxstate.obj $Dafxtls.obj $Dfixalloc.obj $Dmtcore.obj $Dmtex.objWINDOWS= $Dwincore.obj $Dwinfrm.obj $Dwinfrm2.obj $Dwinfrmx.obj $Dwinmdi.obj $Dto
19、oltip.obj $Dwinmini.obj $Dwinhand.obj $Dwinmain.obj $Dbarcore.obj $Dbartool.obj $Dbardlg.obj $Dbarstat.obj $Dbardock.obj $Ddockcont.obj $Ddockstat.obj $Ddcprev.obj $Ddcmeta.obj $Dtrckrect.obj $Dbarcool.objDIALOG= $Dwinctrl1.obj $Dwinctrl2.obj $Dwinctrl3.obj $Dwinctrl4.obj $Dwinbtn.obj $Ddlgcore.obj
20、$Ddlgdata.obj $Ddlgfloat.obj $Ddlgprop.obj $Ddlgcomm.obj $Ddlgfile.obj $Ddlgprnt.obj $Ddlgclr.obj $Ddlgfnt.obj $Ddlgfr.obj $Dccdata.obj $Ddlgtempl.obj $Dwinctrl6.obj $Dwinctrl7.objWINMISC= $Dwingdi.obj $Dwingdix.obj $Dwinstr.obj $Dwinmenu.obj $Dauxdata.obj $Dafxcrit.obj $Dafxtrace.obj $Dwinutil.obj $Dwinocc.objDOCVIEW= $Dcmdtarg.obj $Ddoccore.obj $Ddoctempl.obj $Ddocsingl.obj $Ddocmulti.obj $Ddocmgr
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1