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