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