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

📄 hp-ux.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 HP-UX#include $(MOD_DEPTH)/config/UNIX.mkDLL_SUFFIX	= slifdef NS_USE_GCC	CC			        = gcc	CCC			        = g++	OS_CFLAGS		    =	COMPILER_TAG        = _gccelse	CC			        = cc -Ae	CCC			        = CC -ext	OS_CFLAGS           = +ESlitendifRANLIB			= echoCPU_ARCH		= hppaOS_CFLAGS		+= $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE## The header netdb.h on HP-UX 9 does not declare h_errno.# On 10.10 and 10.20, netdb.h declares h_errno only if# _XOPEN_SOURCE_EXTENDED is defined.  So we need to declare# h_errno ourselves.#ifeq ($(basename $(OS_RELEASE)),A.09)OS_CFLAGS		+= -D_PR_NEED_H_ERRNOendififeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))OS_CFLAGS		+= -D_PR_NEED_H_ERRNOendif# Do we have localtime_r()?  Does it return 'int' or 'struct tm *'?ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))OS_CFLAGS		+= -DHAVE_INT_LOCALTIME_Rendififeq (,$(filter-out B.10.30 B.11.00,$(OS_RELEASE)))OS_CFLAGS		+= -DHAVE_POINTER_LOCALTIME_Rendif## XXX# Temporary define for the Client; to be removed when binary release is used#ifdef MOZILLA_CLIENTCLASSIC_NSPR = 1endif## On HP-UX 9, the default (and only) implementation strategy is# classic nspr.## On HP-UX 10.10 and 10.20, the default implementation strategy is# pthreads (actually DCE threads).  Classic nspr is also available.## On HP-UX 10.30 and 11.00, the default implementation strategy is# pthreads.  Classic nspr and pthreads-user are also available.#ifeq ($(basename $(OS_RELEASE)),A.09)OS_CFLAGS		+= -DHPUX9DEFAULT_IMPL_STRATEGY = _EMUendififeq ($(OS_RELEASE),B.10.01)OS_CFLAGS		+= -DHPUX10DEFAULT_IMPL_STRATEGY = _EMUendififeq ($(OS_RELEASE),B.10.10)OS_CFLAGS		+= -DHPUX10 -DHPUX10_10DEFAULT_IMPL_STRATEGY = _PTHendififeq ($(OS_RELEASE),B.10.20)OS_CFLAGS		+= -DHPUX10 -DHPUX10_20ifndef NS_USE_GCCOS_CFLAGS		+= +DAportable +DS1.1endifDEFAULT_IMPL_STRATEGY = _PTHendif## On 10.30 and 11.00, we use the new ANSI C++ compiler aCC.#ifeq ($(OS_RELEASE),B.10.30)ifndef NS_USE_GCCCCC			= /opt/aCC/bin/aCC -extOS_CFLAGS		+= +DAportable +DS1.1endifOS_CFLAGS		+= -DHPUX10 -DHPUX10_30DEFAULT_IMPL_STRATEGY = _PTHendif# 11.00 is similar to 10.30.ifeq ($(OS_RELEASE),B.11.00)	ifndef NS_USE_GCC		CCC			        = /opt/aCC/bin/aCC -ext		ifeq ($(USE_64), 1)			OS_CFLAGS       += +DA2.0W +DS2.0			COMPILER_TAG    = _64		else			OS_CFLAGS       += +DAportable +DS2.0			COMPILER_TAG    = _32		endif	endifOS_CFLAGS		+= -DHPUX10 -DHPUX11 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -DHAVE_FCNTL_FILE_LOCKINGDEFAULT_IMPL_STRATEGY = _PTHendififeq ($(DEFAULT_IMPL_STRATEGY),_EMU)CLASSIC_NSPR = 1endififeq ($(DEFAULT_IMPL_STRATEGY),_PTH)USE_PTHREADS = 1IMPL_STRATEGY = _PTHifeq ($(CLASSIC_NSPR),1)USE_PTHREADS =IMPL_STRATEGY = _EMUendififeq ($(PTHREADS_USER),1)USE_PTHREADS =IMPL_STRATEGY = _PTH_USERendifendififeq ($(CLASSIC_NSPR),1)DEFINES			+= -D_PR_LOCAL_THREADS_ONLYendififeq (,$(filter-out A.09 B.10,$(basename $(OS_RELEASE))))DEFINES			+= -D_PR_NO_LARGE_FILESendif## To use the true pthread (kernel thread) library on 10.30 and# 11.00, we should define _POSIX_C_SOURCE to be 199506L.# The _REENTRANT macro is deprecated.#ifdef USE_PTHREADSifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))OS_CFLAGS		+= -D_REENTRANT -D_PR_DCETHREADSelseOS_CFLAGS		+= -D_POSIX_C_SOURCE=199506L -D_PR_HAVE_THREADSAFE_GETHOSTendifendififdef PTHREADS_USEROS_CFLAGS		+= -D_POSIX_C_SOURCE=199506LendifMKSHLIB			= $(LD) $(DSO_LDOPTS)DSO_LDOPTS		= -b +h $(notdir $@)# -fPIC or +Z generates position independent code for use in shared# libraries.ifdef NS_USE_GCCDSO_CFLAGS		= -fPICelseDSO_CFLAGS		= +Zendif

⌨️ 快捷键说明

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