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

📄 sunos5.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.# ## Config stuff for SunOS 5.x on sparc and x86#include $(MOD_DEPTH)/config/UNIX.mk## XXX# Temporary define for the Client; to be removed when binary release is used#ifdef MOZILLA_CLIENTifneq ($(USE_PTHREADS),1)LOCAL_THREADS_ONLY = 1endififndef NS_USE_NATIVENS_USE_GCC = 1endifendif## The default implementation strategy on Solaris is pthreads.# Global threads only and local threads only are also available.#ifeq ($(GLOBAL_THREADS_ONLY),1)  IMPL_STRATEGY = _NATIVE  DEFINES += -D_PR_GLOBAL_THREADS_ONLYelse  ifeq ($(LOCAL_THREADS_ONLY),1)    IMPL_STRATEGY = _EMU    DEFINES += -D_PR_LOCAL_THREADS_ONLY  else    USE_PTHREADS = 1    IMPL_STRATEGY = _PTH  endifendififdef NS_USE_GCCCC			= gcc -WallCCC			= g++ -WallASFLAGS			+= -Wa,-PCOMPILER_TAG		= _gccifdef NO_MDUPDATEOS_CFLAGS		= $(NOMD_OS_CFLAGS)elseOS_CFLAGS		= $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES)endifelseCC			= cc -xstrconstCCC			= CC -Qoption cg -xstrconstASFLAGS			+= -Wa,-POS_CFLAGS		= $(NOMD_OS_CFLAGS)## If we are building for a release, we want to put all symbol# tables in the debug executable or share library instead of# the .o files, so that our clients can run dbx on the debug# library without having the .o files around.#ifdef BUILD_NUMBERifndef BUILD_OPTOS_CFLAGS		+= -xsendifendifendififeq ($(USE_64),1)ifndef INTERNAL_TOOLSifndef NS_USE_GCCCC			+= -xarch=v9CCC			+= -xarch=v9endifendifCOMPILER_TAG		= _64elseCOMPILER_TAG		= _32endifRANLIB			= echoOS_DEFINES		= -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS -DHAVE_FCNTL_FILE_LOCKINGifeq ($(OS_TEST),i86pc)CPU_ARCH		= x86OS_DEFINES		+= -Di386# The default debug format, DWARF (-g), is not supported by gcc# on i386-ANY-sysv4/solaris, but the stabs format is.  It is# assumed that the Solaris assembler /usr/ccs/bin/as is used.# If your gcc uses GNU as, you do not need the -Wa,-s option.ifndef BUILD_OPTifdef NS_USE_GCCOPTIMIZER		= -Wa,-s -gstabsendifendifelseCPU_ARCH		= sparcendifCPU_ARCH_TAG		= _$(CPU_ARCH)ifeq (5.5,$(findstring 5.5,$(OS_RELEASE)))OS_DEFINES		+= -DSOLARIS2_5elseifeq (,$(filter-out 5.3 5.4,$(OS_RELEASE)))OS_DEFINES		+= -D_PR_NO_LARGE_FILESelseOS_DEFINES		+= -D_PR_HAVE_OFF64_T# The lfcompile64(5) man page on Solaris 2.6 says:#     For applications that do not wish to conform to the POSIX or#     X/Open  specifications,  the  64-bit transitional interfaces#     are available by default.  No compile-time flags need to  be#     set.# But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default.# The native compiler, gcc 2.8.x, and egcs don't have this problem.ifdef NS_USE_GCCOS_DEFINES		+= -D_LARGEFILE64_SOURCEendifendifendififneq ($(LOCAL_THREADS_ONLY),1)OS_DEFINES		+= -D_REENTRANT -DHAVE_POINTER_LOCALTIME_Rendif# Purify doesn't like -MDupdateNOMD_OS_CFLAGS		= $(DSO_CFLAGS) $(OS_DEFINES) $(SOL_CFLAGS)MKSHLIB			= $(LD) $(DSO_LDOPTS)# ld options:# -G: produce a shared object# -z defs: no unresolved symbols allowedDSO_LDOPTS		= -G -h $(notdir $@)# -KPIC generates position independent code for use in shared libraries.# (Similarly for -fPIC in case of gcc.)ifdef NS_USE_GCCDSO_CFLAGS		= -fPICelseDSO_CFLAGS		= -KPICendifNOSUCHFILE		= /no-such-file## Library of atomic functions for UltraSparc systems## The nspr makefiles build ULTRASPARC_LIBRARY (which contains assembly language# implementation of the nspr atomic functions for UltraSparc systems) in addition# to libnspr.so. (The actual name of the library is# lib$(ULTRASPARC_LIBRARY)$(MOD_VERSION).so## The actual name of the filter-library, recorded in libnspr.so, is set to the# value of $(ULTRASPARC_FILTER_LIBRARY).# For an application to use the assembly-language implementation, a link should be# made so that opening ULTRASPARC_FILTER_LIBRARY results in opening# ULTRASPARC_LIBRARY. This indirection requires the user to explicitly set up# library for use on UltraSparc systems, thereby helping to avoid using it by# accident on non-UltraSparc systems.# The directory containing the ultrasparc libraries should be in LD_LIBRARY_PATH.#ifeq ($(OS_TEST),sun4u)ULTRASPARC_LIBRARY = ultrasparcULTRASPARC_FILTER_LIBRARY = libatomic.soDSO_LDOPTS		+= -f $(ULTRASPARC_FILTER_LIBRARY)endif

⌨️ 快捷键说明

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