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

📄 makefile.in

📁 Netscape NSPR库源码
💻 IN
字号:
# # 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.# #! gmakeMOD_DEPTH	= ../..topsrcdir	= @top_srcdir@srcdir		= @srcdir@VPATH		= @srcdir@include $(MOD_DEPTH)/config/autoconf.mkinclude $(topsrcdir)/config/config.mkDIRS = io linking malloc md memory misc threads# For VAC++ 4 geticcdata rule in config/OS2.mkifeq ($(MOZ_OS2_TOOLS),VACPP)CSRCS = prvrsion.cendififeq ($(USE_PTHREADS), 1)	DIRS += pthreadsendififeq ($(USE_BTHREADS), 1)	DIRS += bthreadsendififeq ($(USE_CPLUS), 1)	DIRS += cplusendif## Define platform-dependent OS_LIBS#ifeq ($(OS_ARCH),SunOS)ifeq ($(OS_RELEASE),4.1.3_U1)OS_LIBS			= -lmelse	# 4.1.3_U1## In Solaris 2.6 or earlier, -lrt is called -lposix4.# LIBRT_TEST=$(firstword $(sort 5.7 $(OS_RELEASE)))ifeq (5.7, $(LIBRT_TEST))LIBRT=-lrtelseLIBRT=-lposix4endififdef USE_PTHREADSOS_LIBS			= -lpthread -lthread ${LIBRT} -lsocket -lnsl -ldlelseifdef LOCAL_THREADS_ONLYOS_LIBS			= -lsocket -lnsl -ldlelseOS_LIBS			= -lthread ${LIBRT} -lsocket -lnsl -ldlendif	# LOCAL_THREADS_ONLYendif	# USE_PTHREADSendif	# 4.1.3_U1endif	# SunOSifeq ($(OS_ARCH), IRIX)ifeq ($(USE_PTHREADS), 1)OS_LIBS = -lpthreadendifOS_LIBS += -lcendififeq ($(OS_ARCH),AIX)ifeq ($(CLASSIC_NSPR),1)ifeq ($(OS_RELEASE),4.1)OS_LIBS		= -lsvld -lcelseOS_LIBS		= -ldl -lcendifelseifeq ($(OS_RELEASE),4.1)OS_LIBS		= -lpthreads -lsvld -lC_r -lC -lc_r -lm /usr/lib/libc.aelseOS_LIBS		= -lpthreads -ldl -lC_r -lC -lc_r -lm /usr/lib/libc.aendifendifendif# On AIX, we override malloc in non-pthread versions.  On AIX 4.2 or# above, this requires that we use the rtl-enabled version of libc.a.ifeq ($(OS_ARCH),AIX)ifneq (,$(filter-out 3.2 4.1,$(OS_RELEASE)))ifneq ($(USE_PTHREADS),1)BUILD_AIX_RTL_LIBC = 1AIX_RTL_LIBC	= $(OBJDIR)/libc.aendifendifendififeq ($(OS_ARCH),OSF1)ifeq ($(USE_PTHREADS), 1)OS_LIBS 	= -lpthread -lrtendififneq ($(OS_RELEASE),V2.0)OS_LIBS		+= -lc_rendifendififeq ($(OS_ARCH),Linux)ifeq ($(USE_PTHREADS), 1)OS_LIBS		= -lpthread -ldlelseOS_LIBS		= -ldlendifendififeq ($(OS_ARCH),HP-UX)ifeq ($(USE_PTHREADS), 1)ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE)))OS_LIBS 	= -ldceelseOS_LIBS 	= -lpthread -lrtendifendififeq ($(PTHREADS_USER), 1)OS_LIBS 	= -lpthreadendififeq ($(basename $(OS_RELEASE)),A.09)OS_LIBS		+= -ldld -L/lib/pa1.1 -lmelseOS_LIBS		+= -ldld -lm -lcendifendififeq ($(OS_ARCH),UNIXWARE)OS_LIBS		= -lsocket -lcendififeq ($(OS_ARCH),NEWS-OS)OS_LIBS		= -lsocket -lnsl -lgen -lresolvendififeq ($(OS_ARCH),WINNT)OS_LIBS		= advapi32.lib wsock32.libendififdef GC_LEAK_DETECTOREXTRA_LIBS	= -L$(dist_libdir) -lboehmendifEXTRA_LIBS += $(OS_LIBS)## Define platform-dependent OBJS#OBJS = \    $(OBJDIR)/prvrsion.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prfdcach.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prmwait.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prmapopt.$(OBJ_SUFFIX) \    io/$(OBJDIR)/priometh.$(OBJ_SUFFIX) \    io/$(OBJDIR)/pripv6.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prlayer.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prlog.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prmmap.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prpolevt.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prprf.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prscanf.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prstdio.$(OBJ_SUFFIX) \    threads/$(OBJDIR)/prcmon.$(OBJ_SUFFIX) \	threads/$(OBJDIR)/prrwlock.$(OBJ_SUFFIX) \	threads/$(OBJDIR)/prtpd.$(OBJ_SUFFIX) \    linking/$(OBJDIR)/prlink.$(OBJ_SUFFIX) \    malloc/$(OBJDIR)/prmem.$(OBJ_SUFFIX) \    md/$(OBJDIR)/prosdep.$(OBJ_SUFFIX) \    memory/$(OBJDIR)/prshm.$(OBJ_SUFFIX) \    memory/$(OBJDIR)/prshma.$(OBJ_SUFFIX) \    memory/$(OBJDIR)/prseg.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/pralarm.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/pratom.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prcountr.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prdtoa.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prenv.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prerr.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prerror.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prerrortable.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prinit.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prinrval.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/pripc.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prlog2.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prlong.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prnetdb.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prolock.$(OBJ_SUFFIX)	 \    misc/$(OBJDIR)/prrng.$(OBJ_SUFFIX)	 \    misc/$(OBJDIR)/prsystem.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prthinfo.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prtpool.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prtrace.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/prtime.$(OBJ_SUFFIX)# ilib now rejects empty objectsifneq ($(MOZ_OS2_TOOLS),VACPP)OBJS += malloc/$(OBJDIR)/prmalloc.$(OBJ_SUFFIX)endififdef USE_PTHREADSOBJS += \    pthreads/$(OBJDIR)/ptsynch.$(OBJ_SUFFIX) \    pthreads/$(OBJDIR)/ptio.$(OBJ_SUFFIX) \    pthreads/$(OBJDIR)/ptthread.$(OBJ_SUFFIX) \    pthreads/$(OBJDIR)/ptmisc.$(OBJ_SUFFIX)elseOBJS += \    io/$(OBJDIR)/prdir.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prfile.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prio.$(OBJ_SUFFIX) \    io/$(OBJDIR)/prsocket.$(OBJ_SUFFIX) \    misc/$(OBJDIR)/pripcsem.$(OBJ_SUFFIX)ifndef USE_BTHREADSOBJS += \	threads/$(OBJDIR)/prcthr.$(OBJ_SUFFIX) \	threads/$(OBJDIR)/prdump.$(OBJ_SUFFIX) \	threads/$(OBJDIR)/prmon.$(OBJ_SUFFIX) \	threads/$(OBJDIR)/prsem.$(OBJ_SUFFIX) \	threads/combined/$(OBJDIR)/prucpu.$(OBJ_SUFFIX) \	threads/combined/$(OBJDIR)/prucv.$(OBJ_SUFFIX) \	threads/combined/$(OBJDIR)/prulock.$(OBJ_SUFFIX) \	threads/combined/$(OBJDIR)/prustack.$(OBJ_SUFFIX) \	threads/combined/$(OBJDIR)/pruthr.$(OBJ_SUFFIX)endifendififeq ($(USE_CPLUS), 1)OBJS += \	cplus/$(OBJDIR)/rcbase.$(OBJ_SUFFIX) \	cplus/$(OBJDIR)/rccv.$(OBJ_SUFFIX) \	cplus/$(OBJDIR)/rcfileio.$(OBJ_SUFFIX) \	cplus/$(OBJDIR)/rcinrval.$(OBJ_SUFFIX) \	cplus/$(OBJDIR)/rcio.$(OBJ_SUFFIX) \	cplus/$(OBJDIR)/rclock.$(OBJ_SUFFIX) \	cplus/$(OBJDIR)/rcnetdb.$(OBJ_SUFFIX) \	cplus/$(OBJDIR)/rcnetio.$(OBJ_SUFFIX) \	cplus/$(OBJDIR)/rcthread.$(OBJ_SUFFIX) \	cplus/$(OBJDIR)/rctime.$(OBJ_SUFFIX)endififdef GC_LEAK_DETECTOROBJS += memory/$(OBJDIR)/prgcleak.$(OBJ_SUFFIX)endififeq ($(OS_ARCH), WINNT)DLLBASE=/BASE:0x30000000RES=$(OBJDIR)/nspr.resRESNAME=nspr.rcendif # WINNTinclude $(srcdir)/md/$(PR_MD_ARCH_DIR)/objs.mkifdef USE_BTHREADSinclude $(srcdir)/bthreads/objs.mkendifLIBRARY_NAME = nsprLIBRARY_VERSION = $(MOD_MAJOR_VERSION)RELEASE_LIBS = $(TARGETS)include $(topsrcdir)/config/rules.mkifeq ($(BUILD_AIX_RTL_LIBC),1)TARGETS		+= $(AIX_RTL_LIBC)# XXX is this a shared library?endif## Version information generation (begin)#ECHO = echoINCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include -I$(topsrcdir)/pr/include/privateTINC = $(OBJDIR)/_pr_bld.hifeq ($(OS_TARGET),OS2)PROD = nspr$(MOD_MAJOR_VERSION).$(DLL_SUFFIX)elsePROD = $(notdir $(SHARED_LIBRARY))endifNOW = $(MOD_DEPTH)/config/$(OBJDIR)/nowSH_DATE = $(shell date "+%Y-%m-%d %T")SH_NOW = $(shell $(NOW))ifeq ($(OS_ARCH), WINNT)	SUF = i64else	SUF = LLendifDEFINES		+= -D_NSPR_BUILD_GARBAGE += $(TINC)$(TINC):	@$(MAKE_OBJDIR)	@$(ECHO) '#define _BUILD_STRING "$(SH_DATE)"' > $(TINC)	@if test ! -z "$(SH_NOW)"; then \	    $(ECHO) '#define _BUILD_TIME $(SH_NOW)$(SUF)' >> $(TINC); \	else \	    true; \	fi	@$(ECHO) '#define _PRODUCTION "$(PROD)"' >> $(TINC)$(OBJDIR)/prvrsion.$(OBJ_SUFFIX): prvrsion.c $(TINC)ifeq ($(OS_ARCH), WINNT)	$(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<elseifeq ($(MOZ_OS2_TOOLS), VACPP)	$(CC) -Fo$@ -c $(CFLAGS) -I$(OBJDIR) $<else	$(CC) -o $@ -c $(CFLAGS) -I$(OBJDIR) $<endifendif## Version information generation (end)### The Client build wants the shared libraries in $(dist_bindir)# so we also install them there.#export:: $(TARGETS)	$(INSTALL) -m 444 $(TARGETS) $(dist_libdir)ifdef SHARED_LIBRARYifeq ($(OS_ARCH),HP-UX)	$(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_libdir)	$(INSTALL) -m 755 $(SHARED_LIBRARY) $(dist_bindir)else	$(INSTALL) -m 444 $(SHARED_LIBRARY) $(dist_bindir)endifendififeq ($(MOZ_BITS),16)	$(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/lib	$(INSTALL) -m 444 $(TARGETS) $(MOZ_DIST)/binendififeq ($(BUILD_AIX_RTL_LIBC),1)$(AIX_RTL_LIBC): /usr/ccs/lib/libc.a	rtl_enable -o $@ $<endif

⌨️ 快捷键说明

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