windows vc makefile.docx

上传人:b****5 文档编号:5796559 上传时间:2023-01-01 格式:DOCX 页数:20 大小:19.10KB
下载 相关 举报
windows vc makefile.docx_第1页
第1页 / 共20页
windows vc makefile.docx_第2页
第2页 / 共20页
windows vc makefile.docx_第3页
第3页 / 共20页
windows vc makefile.docx_第4页
第4页 / 共20页
windows vc makefile.docx_第5页
第5页 / 共20页
点击查看更多>>
下载资源
资源描述

windows vc makefile.docx

《windows vc makefile.docx》由会员分享,可在线阅读,更多相关《windows vc makefile.docx(20页珍藏版)》请在冰豆网上搜索。

windows vc makefile.docx

windowsvcmakefile

#Makefile:

BuildsaMicrosoftFoundationClasslibraryvariant.

#

#ThisisapartoftheMicrosoftFoundationClassesC++library.

#Copyright(C)1992-1998MicrosoftCorporation

#Allrightsreserved.

#

#Thissourcecodeisonlyintendedasasupplementtothe

#MicrosoftFoundationClassesReferenceandrelated

#electronicdocumentationprovidedwiththelibrary.

#Seethesesourcesfordetailedinformationregardingthe

#MicrosoftFoundationClassesproduct.

#

#Usage:

NMAKECLEAN(removesallintermediaryfiles)

#or:

NMAKEoptions(buildsonelibraryvariant(seebelow))

#NotethatanNMAKECLEANshouldbeperformedbeforebuildinganewvariant.

#

#'Options'areoneofeachof:

#"DLL"(defaultsto0)

#Ifthisitemis0,thenanormallibraryisgenerated.

#DLL=1isobsoleteandnotsupportedbythisrelease.

#Ifthisitemis2,objectssuitableforthesharedDLLversion

#ofMFCarecreated.Note:

DLL=2istobeusedonlyfrom

#MFCDLL.MAK,MFCOLE.MAK,orMFCDB.MAK

#

#"DEBUG"(defaultsto1)

#Ifthisitemis1,debuggingsupportiscompiledinto

#thelibrary.Ifthisitemis0,thendebuggingsupport

#isdisabled.DebugsupportdoesnotincludeCodeViewinformation.

#

#"CODEVIEW"(defaultsto1forDEBUG=1,0forDEBUG=0)

#Ifthisitemis1CodeViewinformationiscompiledinto

#thelibrary.Youmustusethe/DEBUG:

FULLand/DEBUGTYPE:

cvlink

#optionswhenlinkingyourexecutable.Avalueof0indicatesthat

#noCodeViewinformationistobegenerated.

#

#"OBJ=.\obj"(defaultsto'$$(MODEL)$(BASE)$(DEBUG)')

#ThisoptionalspecificationspecifieswheretemporaryOBJfiles

#arestoredduringthebuildprocess.Thedirectoryiscreatedor

#removedasnecessary.

#

#"OPT="(nodefaultvalue)

#Thisallowsadditionalcompileroptionstobeaddedtothebuild.

#Ifmorethanoneswitchisdesired,putdouble-quotesaroundthe

#wholeOPT=argument,e.g.,"OPT=/J/W3".

#

#"NO_PCH=1"

#Setthisitemtooverridethedefaultuseofprecompiledheaders.

#

#"NO_PDB=1"

#SetthisitemtooverridethedefaultuseofPDBfiles.

#

#"BROWSE=1"(defaultsto0)

#SetthisoptiontobuildthebrowsedatabasefortheMFC

#library.BysettingBROWSE=1,boththe.SBRsandthe.BSC

#fileswillbebuiltalongwiththe.OBJand.LIBfilesthat

#arepartofthenormalbuildprocess.

#

#"BROWSEONLY=1"(defaultsto0)

#Setthisoptiontobuildthebrowsefileswithoutre-building

#theMFClibraryitself.Note:

Thisoptionisusedinternally

#whenBROWSE=1isselected.

#

#"PLATFORM=INTEL"(defaultsdependsonhost)

#Thisoptionchoosestheappropriatetoolsandsourcesforthe

#differentplatformssupportingtheWin32API.CurrentlyINTEL,

#MIPS,ALPHA,PPCaresupported.

#

#"INCREMENTAL=1"(defaultsto0)

#Thisoptionenablesincremental/minimalcompilationand

#incrementallinking.

#

#AdvancedOptions:

#

#"MBCS=0"(defaultsto1)

#TobuildanSBCSlibraryinsteadofthedefault(MBCS)

#youcanuseMBCS=0.Thiscreatesaslightlysmaller

#library,butthecodewillnotworkinfar-eastmarkets.

#ThisoptionhasnoeffectwhenUNICODE=1.

#

#"MT=0"(defaultsto1)

#Tobuildanon-multithreadedlibraryinsteadofthedefault

#(whichenablesmultitheadingandusesthemultithread

#C-runtimes)youcanuseMT=0.

#

#############################################################################

#Definedefaultsifnotdefined

#DefaultPLATFORMdependingonhostenvironment

!

ifndefPLATFORM

!

ifndefPROCESSOR_ARCHITECTURE

PROCESSOR_ARCHITECTURE=x86

!

endif

!

if"$(PROCESSOR_ARCHITECTURE)"=="x86"

PLATFORM=INTEL

!

endif

!

if"$(PROCESSOR_ARCHITECTURE)"=="MIPS"

PLATFORM=MIPS

!

endif

!

if"$(PROCESSOR_ARCHITECTURE)"=="ALPHA"

PLATFORM=ALPHA

!

endif

!

if"$(PROCESSOR_ARCHITECTURE)"=="PPC"

PLATFORM=PPC

!

endif

!

endif

#DefaulttoDEBUGmode

!

ifndefDEBUG

DEBUG=1

!

endif

#DefaulttoNOTDLL

!

ifndefDLL

DLL=0

!

endif

#DefaultCodeviewInfo

!

ifndefCODEVIEW

!

if"$(DEBUG)"=="1"

CODEVIEW=1

!

else

CODEVIEW=0

!

endif

!

endif

#BROWSEONLYisdefault0andimpliesBROWSE=1ifBROWSEONLY=1

!

ifndefBROWSEONLY

BROWSEONLY=0

!

endif

!

if"$(BROWSEONLY)"!

="0"

!

undefBROWSE

BROWSE=1

!

endif

#DefaulttonoBROWSEinfo

!

ifndefBROWSE

BROWSE=0

!

endif

#DefaulttonoINCREMENTALbuild

!

ifndefDEVBUILD

DEVBUILD=0

!

endif

!

if"$(DEBUG)"!

="0"

!

ifndefINCREMENTAL

INCREMENTAL=$(DEVBUILD)

!

endif

!

endif

!

ifndefINCREMENTAL

INCREMENTAL=0

!

endif

#Defaultto_MBCSbuild

!

ifndefMBCS

MBCS=1

!

endif

#Defaulttomultithreadingsupport

!

ifndefMT

MT=1

!

endif

#############################################################################

#normalizecasesofparameters,orerrorcheck

!

if"$(CPU)"=="MIPS"

!

if"$(PLATFORM)"!

="MIPS"

!

errorMustsetPLATFORM=MIPSforMIPSbuilds

!

endif

!

endif

!

if"$(CPU)"=="ALPHA"

!

if"$(PLATFORM)"!

="ALPHA"

!

errorMustsetPLATFORM=ALPHAforALPHAbuilds

!

endif

!

endif

BASE=W

#############################################################################

#Parseoptions

#

#DEBUGOPTIONS

#

!

if"$(DEBUG)"!

="0"

DEBUGSUF=D

DEBDEFS=/D_DEBUG

DEBOPTS=/Od

!

endif

#

#NON-DEBUGOPTIONS

#

!

if"$(DEBUG)"=="0"

DEBUGSUF=

DEBDEFS=

!

if"$(PLATFORM)"=="INTEL"

DEBOPTS=/O1/GyF

!

endif

!

if"$(PLATFORM)"=="MIPS"

DEBOPTS=/O1/GyF

!

endif

!

if"$(PLATFORM)"=="ALPHA"

DEBOPTS=/O1/GyF

!

endif

!

if"$(PLATFORM)"=="PPC"

DEBOPTS=/O1/GyF

!

endif

!

endif

#

#PLATFORMoptions

#

!

if"$(PLATFORM)"=="INTEL"

CL_MODEL=/D_X86_

!

endif

!

if"$(PLATFORM)"=="MIPS"

CL_MODEL=/D_MIPS_

!

endif

!

if"$(PLATFORM)"=="ALPHA"

CL_MODEL=/D_ALPHA_

!

endif

!

if"$(PLATFORM)"=="PPC"

CL_MODEL=/D_PPC_

!

endif

!

if"$(CL_MODEL)"==""

!

errorPLATFORMmustbeoneofINTEL,MIPS,ALPHA,orPPC.

!

endif

#TYPE=LibraryTypeDesignator

#c=normalClibrary

#d=DLLlibrary

TYPE=c

DEXT=

#

#ObjectFileDirectory

#

!

if"$(OBJ)"==""

D=$$$(MODEL)$(BASE)$(DEBUGSUF)$(DEXT)#subdirectoryspecifictovariant

!

else

D=$(OBJ)#Userspecifieddirectory

!

endif

#

#_AFXDLLDLLVariant

#

!

if"$(DLL)"=="2"

#_AFXDLLlibrary

TYPE=e

!

if"$(OBJ)"==""

D=DLL$(DEBUGSUF).$(BASE)

!

if"$(UNICODE)"=="1"

D=$(MODEL)$D

!

endif

D=$$$D

!

endif

TARGOPTS=$(TARGOPTS)/MD/D_DLL/GF

!

if"$(MT)"!

="0"

TARGOPTS=$(TARGOPTS)/D_MT

!

endif

TARGDEFS=$(TARGDEFS)/D_WINDLL/D_AFXDLL

!

else

#not_AFXDLLlibrary

!

if"$(MD)"=="1"

TARGOPTS=$(TARGOPTS)/MD

!

else

!

if"$(MT)"!

="0"

TARGOPTS=$(TARGOPTS)/MT

!

endif

!

endif

!

endif

!

if"$(UNICODE)"=="1"

MODEL=U

TARGDEFS=$(TARGDEFS)/D_UNICODE

!

else

MODEL=N

!

if"$(MBCS)"!

="0"

TARGDEFS=$(TARGDEFS)/D_MBCS

!

endif

!

endif

!

if"$(DLL)"=="2"&&"$(BROWSEONLY)"!

="1"

!

if"$(TARG)"==""

!

errorDLL=2isusedonlyfromMFCDLL.MAK,MFCOLE.MAK,orMFCDB.MAK

!

endif

GOAL=$(TARG)

!

else

GOAL=$(MODEL)afx$(TYPE)$(BASE)$(DEBUGSUF)

!

endif

#

#CODEVIEWoptions

#

!

if"$(CODEVIEW)"=="1"

!

if"$(NO_PDB)"=="1"

CVOPTS=/Z7

!

if"$(PROFLIB)"!

=""

!

errorCan'tbuildforprofilingwithoutPDBfiles.

!

endif

!

else

CVOPTS=/Zi

!

if"$(PROFLIB)"!

=""

CVOPTS=$(CVOPTS)/Gh

!

endif

!

if"$(DLL)"=="2"

PDBOPTS=/Fd$(GOAL).pdb

!

else

PDBOPTS=/Fd..\lib\$(GOAL).pdb

!

endif

!

endif

!

endif

#

#INCREMENTALoptions

#

!

if"$(INCREMENTAL)"=="1"

INCROPTS=/Gi/Gm

!

else

INCROPTS=/Gi-/Gm-

!

endif

#

#COMPILEROPTIONS

#

!

if"$(PLATFORM)"=="INTEL"

CL_OPT=/W4/WX/Zl/GX/GR$(INCROPTS)$(DEBOPTS)$(CVOPTS)$(TARGOPTS)

!

endif

!

if"$(PLATFORM)"=="MIPS"

CL_OPT=/W4/WX/Zl/GX/GR$(INCROPTS)$(DEBOPTS)$(CVOPTS)$(TARGOPTS)

!

endif

!

if"$(PLATFORM)"=="ALPHA"

CL_OPT=/W4/WX/Zl/GX/GR$(INCROPTS)$(DEBOPTS)$(CVOPTS)$(TARGOPTS)

!

endif

!

if"$(PLATFORM)"=="PPC"

CL_OPT=/W4/WX/Zl/GX/GR$(INCROPTS)$(DEBOPTS)$(CVOPTS)$(TARGOPTS)

!

endif

!

if"$(DEVBUILD)"!

="0"

CL_OPT=$(CL_OPT)/D_AFX_DEVBUILD

!

endif

!

if"$(BROWSE)"!

="0"

CL_OPT=/FR$D\$(CL_OPT)

!

endif

!

if"$(BROWSEONLY)"!

="0"

CL_OPT=/Zs$(CL_OPT)

!

else

CL_OPT=/Fo$D\$(CL_OPT)

!

endif

DEFS=$(DEFS)$(DEBDEFS)$(TARGDEFS)

#############################################################################

#LibraryComponents

OBJECT=$D\objcore.obj$D\except.obj\

$D\validadd.obj$D\dumpcont.obj$D\dumpflt.obj\

$D\arccore.obj$D\arcobj.obj$D\arcex.obj\

$D\arcstrm.obj

#non-shareddiagnostics

OBJDIAG=$D\dumpinit.obj$D\dumpout.obj\

$D\afxasert.obj$D\afxmem.obj$D\afxabort.obj

FILES=$D\filecore.obj$D\filetxt.obj$D\filemem.obj$D\fileshrd.obj\

$D\filex.obj$D\filest.obj

COLL1=$D\array_b.obj$D\array_d.obj$D\array_p.obj$D\array_o.obj\

$D\array_s.obj$D\array_u.obj$D\array_w.obj\

$D\list_o.obj$D\list_p.obj$D\list_s.obj

COLL2=$D\map_pp.obj$D\map_pw.obj$D\map_so.obj\

$D\map_sp.obj$D\map_ss.obj$D\map_wo.obj$D\map_wp.obj$D\plex.obj

MISC=\

$D\strcore.obj$D\strex.obj$D\timecore.obj\

$D\afxdbcs.obj$D\afxstate.obj$D\afxtls.obj$D\fixalloc.obj\

$D\mtcore.obj$D\mtex.obj

WINDOWS=\

$D\wincore.obj$D\winfrm.obj$D\winfrm2.obj$D\winfrmx.obj\

$D\winmdi.obj$D\tooltip.obj$D\winmini.obj$D\winhand.obj\

$D\winmain.obj$D\barcore.obj$D\bartool.obj$D\bardlg.obj\

$D\barstat.obj$D\bardock.obj$D\dockcont.obj$D\dockstat.obj\

$D\dcprev.obj$D\dcmeta.obj$D\trckrect.obj$D\barcool.obj

DIALOG=\

$D\winctrl1.obj$D\winctrl2.obj$D\winctrl3.obj$D\winctrl4.obj\

$D\winbtn.obj$D\dlgcore.obj$D\dlgdata.obj$D\dlgfloat.obj\

$D\dlgprop.obj$D\dlgcomm.obj$D\dlgfile.obj$D\dlgprnt.obj\

$D\dlgclr.obj$D\dlgfnt.obj$D\dlgfr.obj$D\ccdata.obj\

$D\dlgtempl.obj$D\winctrl6.obj$D\winctrl7.obj

WINMISC=\

$D\wingdi.obj$D\wingdix.obj$D\winstr.obj$D\winmenu.obj\

$D\auxdata.obj$D\afxcrit.obj$D\afxtrace.obj$D\winutil.obj\

$D\winocc.obj

DOCVIEW=\

$D\cmdtarg.obj$D\doccore.obj$D\doctempl.obj\

$D\docsingl.obj$D\docmulti.obj$D\docmgr

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 医药卫生 > 基础医学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1