jdk/makefiles/sun/security/krb5/Makefile
changeset 12317 9670c1610c53
equal deleted inserted replaced
12316:ba6b7a51e226 12317:9670c1610c53
       
     1 #
       
     2 # Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
       
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4 #
       
     5 # This code is free software; you can redistribute it and/or modify it
       
     6 # under the terms of the GNU General Public License version 2 only, as
       
     7 # published by the Free Software Foundation.  Oracle designates this
       
     8 # particular file as subject to the "Classpath" exception as provided
       
     9 # by Oracle in the LICENSE file that accompanied this code.
       
    10 #
       
    11 # This code is distributed in the hope that it will be useful, but WITHOUT
       
    12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    14 # version 2 for more details (a copy is included in the LICENSE file that
       
    15 # accompanied this code).
       
    16 #
       
    17 # You should have received a copy of the GNU General Public License version
       
    18 # 2 along with this work; if not, write to the Free Software Foundation,
       
    19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    20 #
       
    21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    22 # or visit www.oracle.com if you need additional information or have any
       
    23 # questions.
       
    24 #
       
    25 
       
    26 BUILDDIR = ../../..
       
    27 PACKAGE = sun.security.krb5
       
    28 PRODUCT = sun
       
    29 include $(BUILDDIR)/common/Defs.gmk
       
    30 
       
    31 #
       
    32 # Java Files
       
    33 #
       
    34 AUTO_FILES_JAVA_DIRS = sun/security/krb5
       
    35 
       
    36 ifeq ($(PLATFORM), macosx)
       
    37 FILES_export = sun/security/krb5/Credentials.java
       
    38 FILES_c = nativeccache.c
       
    39 LIBRARY = osxkrb5
       
    40 endif # PLATFORM
       
    41 
       
    42 ifeq ($(PLATFORM), windows)
       
    43 #
       
    44 # Java files that define native methods
       
    45 #
       
    46 FILES_export = \
       
    47 	sun/security/krb5/Credentials.java \
       
    48 	sun/security/krb5/Config.java
       
    49 include FILES_c_windows.gmk
       
    50 # We need some extra libs for win32
       
    51 LIBRARY = w2k_lsa_auth
       
    52 EXTRA_LIBS += Secur32.lib netapi32.lib\
       
    53  kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
       
    54  advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib\
       
    55  odbccp32.lib wsock32.lib
       
    56 endif # PLATFORM
       
    57 
       
    58 #
       
    59 # Find native code
       
    60 #
       
    61 ifeq ($PLATFORM), macosx)
       
    62   vpath %.c $(call NativeSrcDirList,,native/sun/security/krb5)
       
    63 else
       
    64   vpath %.c \
       
    65     $(PLATFORM_SRC)/native/sun/security/krb5
       
    66 endif
       
    67 
       
    68 JGSS_NATIVE_SRC=$(PLATFORM_SRC)/native/sun/security/krb5
       
    69 JGSS_NATIVE_DIR_EXISTS := $(shell if [ -d $(JGSS_NATIVE_SRC) ] ; then echo true; else echo false; fi)
       
    70 
       
    71 #
       
    72 # Rules
       
    73 #
       
    74 ifeq ($(PLATFORM), windows)
       
    75   ifeq ($(JGSS_NATIVE_DIR_EXISTS), true)
       
    76     include $(BUILDDIR)/common/Library.gmk
       
    77   endif
       
    78 else ifeq ($(PLATFORM), macosx)
       
    79   include $(BUILDDIR)/common/Library.gmk
       
    80 else
       
    81 include $(BUILDDIR)/common/Classes.gmk
       
    82 endif # PLATFORM
       
    83 
       
    84 ifneq ($(PLATFORM), windows)
       
    85   ifeq ($(PLATFORM), macosx)
       
    86     OTHER_LDLIBS = $(LIBDL) -framework Kerberos
       
    87   else
       
    88     OTHER_LDLIBS = $(LIBDL)
       
    89   endif
       
    90 endif