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