⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 win32.mk

📁 Netscape NSPR库源码
💻 MK
字号:
# # The contents of this file are subject to the Mozilla Public# License Version 1.1 (the "License"); you may not use this file# except in compliance with the License. You may obtain a copy of# the License at http://www.mozilla.org/MPL/# # Software distributed under the License is distributed on an "AS# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or# implied. See the License for the specific language governing# rights and limitations under the License.# # The Original Code is the Netscape Portable Runtime (NSPR).# # The Initial Developer of the Original Code is Netscape# Communications Corporation.  Portions created by Netscape are # Copyright (C) 1998-2000 Netscape Communications Corporation.  All# Rights Reserved.# # Contributor(s):# # Alternatively, the contents of this file may be used under the# terms of the GNU General Public License Version 2 or later (the# "GPL"), in which case the provisions of the GPL are applicable # instead of those above.  If you wish to allow use of your # version of this file only under the terms of the GPL and not to# allow others to use your version of this file under the MPL,# indicate your decision by deleting the provisions above and# replace them with the notice and other provisions required by# the GPL.  If you do not delete the provisions above, a recipient# may use your version of this file under either the MPL or the# GPL.# ## Configuration common to all versions of Windows NT# and Windows 95.### Client build: make sure we use the shmsdos.exe under $(MOZ_TOOLS).# $(MOZ_TOOLS_FLIPPED) is $(MOZ_TOOLS) with all the backslashes# flipped, so that gmake won't interpret them as escape characters.#ifdef PR_CLIENT_BUILD_WINDOWSSHELL := $(MOZ_TOOLS_FLIPPED)/bin/shmsdos.exeendifCC = clCCC = clLINK = linkAR = lib -NOLOGO -OUT:"$@"RANLIB = echoBSDECHO = echoSTRIP = echoNSINSTALL = nsinstallINSTALL	= $(NSINSTALL)define MAKE_OBJDIRif test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fiendefRC = rc.exeGARBAGE = $(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdbXP_DEFINE = -DXP_PCOBJ_SUFFIX = objLIB_SUFFIX = libDLL_SUFFIX = dllOS_CFLAGS = -W3 -nologo -GF -Gyifdef BUILD_OPTOS_CFLAGS += -MDOPTIMIZER = -O2DEFINES = -UDEBUG -U_DEBUG -DNDEBUGDLLFLAGS = -OUT:"$@"OBJDIR_TAG = _OPT# Add symbolic information for use by a profilerifdef MOZ_PROFILEOPTIMIZER += -Z7DLLFLAGS += -DEBUG -DEBUGTYPE:CVLDFLAGS += -DEBUG -DEBUGTYPE:CVendifelse## Define USE_DEBUG_RTL if you want to use the debug runtime library# (RTL) in the debug build#ifdef USE_DEBUG_RTLOS_CFLAGS += -MDdelseOS_CFLAGS += -MDendifOPTIMIZER = -Od -Z7#OPTIMIZER = -Zi -Fd$(OBJDIR)/ -OdDEFINES = -DDEBUG -D_DEBUG -UNDEBUGDLLFLAGS = -DEBUG -DEBUGTYPE:CV -OUT:"$@"ifdef GLOWCODEDLLFLAGS = -DEBUG -DEBUGTYPE:both -INCLUDE:_GlowCode -OUT:"$@"endifOBJDIR_TAG = _DBGLDFLAGS = -DEBUG -DEBUGTYPE:CV## When PROFILE=1 is defined, set the compile and link options# to build targets for use by the ms-win32 profiler#ifdef PROFILELDFLAGS += -PROFILE -MAPDLLFLAGS += -PROFILE -MAPendifendifDEFINES += -DWIN32## On Win95, we use the TlsXXX() interface by default because that# allows us to load the NSPR DLL dynamically at run time.# If you want to use static thread-local storage (TLS) for better# performance, build the NSPR library with USE_STATIC_TLS=1.#ifeq ($(USE_STATIC_TLS),1)DEFINES += -D_PR_USE_STATIC_TLSendif## NSPR uses both fibers and static thread-local storage# (i.e., __declspec(thread) variables) on NT.  We need the -GT# flag to turn off certain compiler optimizations so that fibers# can use static TLS safely.## Also, we optimize for Pentium (-G5) on NT.#ifeq ($(OS_TARGET),WINNT)OS_CFLAGS += -GTifeq ($(CPU_ARCH),x86)OS_CFLAGS += -G5endifDEFINES += -DWINNTelseDEFINES += -DWIN95 -D_PR_GLOBAL_THREADS_ONLYendififeq ($(CPU_ARCH),x86)DEFINES += -D_X86_elseifeq ($(CPU_ARCH),MIPS)DEFINES += -D_MIPS_elseifeq ($(CPU_ARCH),ALPHA)DEFINES += -D_ALPHA_=1elseCPU_ARCH = processor_is_undefinedendifendifendif# Name of the binary code directoriesifeq ($(CPU_ARCH),x86)CPU_ARCH_TAG =elseCPU_ARCH_TAG = $(CPU_ARCH)endififdef USE_DEBUG_RTLOBJDIR_SUFFIX = OBJDelseOBJDIR_SUFFIX = OBJendifOBJDIR_NAME = $(OS_CONFIG)$(CPU_ARCH_TAG)$(OBJDIR_TAG).$(OBJDIR_SUFFIX)OS_DLLFLAGS = -nologo -DLL -SUBSYSTEM:WINDOWS -PDB:NONE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -