Makefile revision 4632
4063N/A#
4063N/A# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
4063N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4063N/A#
4063N/A# This code is free software; you can redistribute it and/or modify it
4063N/A# under the terms of the GNU General Public License version 2 only, as
4063N/A# published by the Free Software Foundation. Oracle designates this
4063N/A# particular file as subject to the "Classpath" exception as provided
4063N/A# by Oracle in the LICENSE file that accompanied this code.
4063N/A#
4063N/A# This code is distributed in the hope that it will be useful, but WITHOUT
4063N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4063N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4063N/A# version 2 for more details (a copy is included in the LICENSE file that
4063N/A# accompanied this code).
4063N/A#
4063N/A# You should have received a copy of the GNU General Public License version
4063N/A# 2 along with this work; if not, write to the Free Software Foundation,
4063N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4063N/A#
4063N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4063N/A# or visit www.oracle.com if you need additional information or have any
4063N/A# questions.
4063N/A#
4063N/A
4063N/ABUILDDIR = ../../..
4063N/APACKAGE = sun.security.krb5
4063N/APRODUCT = sun
4063N/Ainclude $(BUILDDIR)/common/Defs.gmk
4063N/A
4063N/A#
4063N/A# Java Files
4063N/A#
4063N/AAUTO_FILES_JAVA_DIRS = sun/security/krb5
4063N/A
4063N/Aifeq ($(PLATFORM), windows)
4063N/A#
4063N/A# Java files that define native methods
4063N/A#
4063N/AFILES_export = \
4063N/A sun/security/krb5/Credentials.java \
4063N/A sun/security/krb5/Config.java
4063N/Ainclude FILES_c_windows.gmk
4063N/A# We need some extra libs for win32
4063N/ALIBRARY = w2k_lsa_auth
4063N/AEXTRA_LIBS += Secur32.lib netapi32.lib\
4063N/A kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
4063N/A advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
5177N/A odbccp32.lib wsock32.lib
5177N/Aendif # PLATFORM
5177N/A
5177N/A#
5177N/A# Find native code
5177N/A#
5177N/Avpath %.c \
5177N/A $(PLATFORM_SRC)/native/sun/security/krb5
5177N/A
5177N/AJGSS_NATIVE_SRC=$(PLATFORM_SRC)/native/sun/security/krb5
4063N/AJGSS_NATIVE_DIR_EXISTS := $(shell if [ -d $(JGSS_NATIVE_SRC) ] ; then echo true; else echo false; fi)
4063N/A
4063N/A#
4063N/A# Rules
4745N/A#
4745N/Aifeq ($(PLATFORM), windows)
4745N/A ifeq ($(JGSS_NATIVE_DIR_EXISTS), true)
4745N/A include $(BUILDDIR)/common/Library.gmk
4745N/A endif
4745N/Aelse
4745N/Ainclude $(BUILDDIR)/common/Classes.gmk
4745N/Aendif # PLATFORM
4745N/A
4745N/A#
4745N/A# Libraries to link
4745N/A#
4745N/Aifeq ($(PLATFORM), windows)
4745N/A OTHER_LDLIBS = $(JVMLIB)
4745N/Aelse
4063N/A OTHER_LDLIBS = $(LIBDL) $(JVMLIB)
4063N/Aendif
4745N/A
4745N/Abuild:
4063N/Aifeq ($(PLATFORM),windows)
4063N/A $(call make-launcher, kinit, sun.security.krb5.internal.tools.Kinit, , )
4063N/A $(call make-launcher, klist, sun.security.krb5.internal.tools.Klist, , )
4063N/A $(call make-launcher, ktab, sun.security.krb5.internal.tools.Ktab, , )
4063N/Aendif
4063N/A