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

📄 jdk.mk

📁 支持SSL v2/v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509v3证书等安全协议或标准的开发库编译用到NSPR
💻 MK
📖 第 1 页 / 共 2 页
字号:
## 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 security libraries.# # The Initial Developer of the Original Code is Netscape# Communications Corporation.  Portions created by Netscape are # Copyright (C) 1994-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.#ifdef NS_USE_JDK######################################################################## [1] Define preliminary JDK "Core Components" toolset options        ######################################################################### set default JDK java threading modelifeq ($(JDK_THREADING_MODEL),)	JDK_THREADING_MODEL     = native_threads# no such thing as -native flag	JDK_THREADING_MODEL_OPT =endif######################################################################## [2] Define platform-independent JDK "Core Components" options       ######################################################################### set default location of the java classes repositoryifeq ($(JAVA_DESTPATH),)ifdef BUILD_OPT	JAVA_DESTPATH  = $(SOURCE_CLASSES_DIR)else	JAVA_DESTPATH  = $(SOURCE_CLASSES_DBG_DIR)endifendif# set default location of the package under the java classes repository# note that this overrides the default package value in ruleset.mkifeq ($(PACKAGE),)	PACKAGE = .endif# set default location of the java source code repositoryifeq ($(JAVA_SOURCEPATH),)	JAVA_SOURCEPATH	= .endif# add JNI directory to default include search pathifneq ($(JNI_GEN),)	ifdef NSBUILDROOT		INCLUDES += -I$(JNI_GEN_DIR) -I$(SOURCE_XP_DIR)	else		INCLUDES += -I$(JNI_GEN_DIR)	endifendif######################################################################## [3] Define platform-dependent JDK "Core Components" options         ######################################################################### set [Microsoft Windows] platformsifeq ($(OS_ARCH), WINNT)	# (1) specify "location" information	ifeq ($(JAVA_HOME),)		JAVA_HOME = //iridium/components/jdk/1.2.2_01/WINNT	endif	JAVA_CLASSES = $(JAVA_HOME)/lib/classes.zip	ifeq ($(JRE_HOME),)		JRE_HOME = $(JAVA_HOME)		JRE_CLASSES = $(JAVA_CLASSES)	else		ifeq ($(JRE_CLASSES),)			JRE_CLASSES = $(JRE_HOME)/lib/classes.zip		endif	endif	PATH_SEPARATOR = ;	# (2) specify "header" information	JAVA_ARCH = win32	INCLUDES += -I$(JAVA_HOME)/include	INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)	# (3) specify "linker" information	JAVA_CPU =	JAVA_LIBDIR = lib	JAVA_CLIBS =	JAVA_LIBS  = -LIBPATH:$(JAVA_HOME)/$(JAVA_LIBDIR) jvm.lib	JAVA_LIBS += $(JAVA_CLIBS)	LDFLAGS += $(JAVA_LIBS)	#     currently, disable JIT option on this platform	JDK_JIT_OPT = -nojitendif# set [Sun Solaris] platformsifeq ($(OS_ARCH), SunOS)	# (1) specify "location" information	ifeq ($(JAVA_HOME),)		JAVA_HOME = /share/builds/components/jdk/1.2.2_01/SunOS	endif	JAVA_CLASSES = $(JAVA_HOME)/lib/classes.zip	ifeq ($(JRE_HOME),)		JRE_HOME = $(JAVA_HOME)		JRE_CLASSES = $(JAVA_CLASSES)	else		ifeq ($(JRE_CLASSES),)			JRE_CLASSES = $(JRE_HOME)/lib/classes.zip		endif	endif	PATH_SEPARATOR = :	# (2) specify "header" information	JAVA_ARCH = solaris	INCLUDES += -I$(JAVA_HOME)/include	INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)	# (3) specify "linker" information	JAVA_CPU = sparc	JAVA_LIBDIR = jre/lib/$(JAVA_CPU)	#     ** IMPORTANT ** having -lthread before -lnspr is critical on solaris	#     when linking with -ljava as nspr redefines symbols in libthread that	#     cause JNI executables to fail with assert of bad thread stack values.	JAVA_CLIBS = -lthread	JAVA_LIBS  = -L$(JAVA_HOME)/$(JAVA_LIBDIR)/$(JDK_THREADING_MODEL) -lhpi	JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/classic -ljvm	JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR) -ljava	JAVA_LIBS += $(JAVA_CLIBS)	LDFLAGS += $(JAVA_LIBS)	#     currently, disable JIT option on this platform	JDK_JIT_OPT =endif# set [Hewlett Packard HP-UX] platformsifeq ($(OS_ARCH), HP-UX)	# (1) specify "location" information  (currently ONLY on "orville")	ifeq ($(JAVA_HOME),)		JAVA_HOME = /opt/java1.2	endif	JAVA_CLASSES = $(JAVA_HOME)/lib/classes.zip	ifeq ($(JRE_HOME),)		JRE_HOME = $(JAVA_HOME)		JRE_CLASSES = $(JAVA_CLASSES)	else		ifeq ($(JRE_CLASSES),)			JRE_CLASSES = $(JRE_HOME)/lib/classes.zip		endif	endif	PATH_SEPARATOR = :	# (2) specify "header" information	JAVA_ARCH = hp-ux	INCLUDES += -I$(JAVA_HOME)/include	INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)	# (3) specify "linker" information	JAVA_CPU = PA_RISC	JAVA_LIBDIR = jre/lib/$(JAVA_CPU)	JAVA_CLIBS =	JAVA_LIBS  = -L$(JAVA_HOME)/$(JAVA_LIBDIR)/$(JDK_THREADING_MODEL) -lhpi	JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/classic -ljvm	JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR) -ljava	JAVA_LIBS += $(JAVA_CLIBS)	LDFLAGS += $(JAVA_LIBS)	# no JIT option available on this platform	JDK_JIT_OPT =endif# set [Redhat Linux] platformsifeq ($(OS_ARCH), Linux)	# (1) specify "location" information	ifeq ($(JAVA_HOME),)		JAVA_HOME = /share/builds/components/jdk/1.2.2/Linux	endif	JAVA_CLASSES = $(JAVA_HOME)/lib/classes.zip	ifeq ($(JRE_HOME),)		JRE_HOME = $(JAVA_HOME)		JRE_CLASSES = $(JAVA_CLASSES)	else		ifeq ($(JRE_CLASSES),)			JRE_CLASSES = $(JRE_HOME)/lib/classes.zip		endif	endif	PATH_SEPARATOR = :	# (2) specify "header" information	JAVA_ARCH = linux	INCLUDES += -I$(JAVA_HOME)/include	INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)	# (3) specify "linker" information	JAVA_CPU = i386	JAVA_LIBDIR = jre/lib/$(JAVA_CPU)	JAVA_CLIBS =	JAVA_LIBS  = -L$(JAVA_HOME)/$(JAVA_LIBDIR)/$(JDK_THREADING_MODEL) -lhpi	JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/classic -ljvm	JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR) -ljava	JAVA_LIBS += $(JAVA_CLIBS)	LDFLAGS += $(JAVA_LIBS)	# no JIT option available on this platform	JDK_JIT_OPT =endif# set [IBM AIX] platformsifeq ($(OS_ARCH), AIX)	# (1) specify "location" information	ifeq ($(JAVA_HOME),)		JAVA_HOME = /share/builds/components/jdk/1.2.2/AIX	endif	JAVA_CLASSES = $(JAVA_HOME)/lib/classes.zip	ifeq ($(JRE_HOME),)		JRE_HOME = $(JAVA_HOME)		JRE_CLASSES = $(JAVA_CLASSES)	else		ifeq ($(JRE_CLASSES),)			JRE_CLASSES = $(JRE_HOME)/lib/classes.zip		endif	endif	PATH_SEPARATOR = :	# (2) specify "header" information	JAVA_ARCH = aix	INCLUDES += -I$(JAVA_HOME)/include	# (3) specify "linker" information	JAVA_CPU = aix	JAVA_LIBDIR = jre/bin	JAVA_CLIBS =	JAVA_LIBS  = -L$(JAVA_HOME)/$(JAVA_LIBDIR) -lhpi	JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR)/classic -ljvm	JAVA_LIBS += -L$(JAVA_HOME)/$(JAVA_LIBDIR) -ljava	JAVA_LIBS += $(JAVA_CLIBS)	LDFLAGS += $(JAVA_LIBS)	# no JIT option available on this platform	JDK_JIT_OPT =endif# set [Digital UNIX] platformsifeq ($(OS_ARCH), OSF1)	# (1) specify "location" information	ifeq ($(JAVA_HOME),)		JAVA_HOME = /share/builds/components/jdk/1.2.2_3/OSF1	endif	JAVA_CLASSES = $(JAVA_HOME)/lib/classes.zip	ifeq ($(JRE_HOME),)		JRE_HOME = $(JAVA_HOME)		JRE_CLASSES = $(JAVA_CLASSES)	else		ifeq ($(JRE_CLASSES),)			JRE_CLASSES = $(JRE_HOME)/lib/classes.zip		endif	endif	PATH_SEPARATOR = :	# (2) specify "header" information	JAVA_ARCH = alpha	INCLUDES += -I$(JAVA_HOME)/include	INCLUDES += -I$(JAVA_HOME)/include/$(JAVA_ARCH)

⌨️ 快捷键说明

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