< prev index next >

jdk/make/lib/Lib-java.security.jgss.gmk

Print this page


   1 #
   2 # Copyright (c) 2011, 2014, 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


  24 #
  25 
  26 include LibCommon.gmk
  27 
  28 ################################################################################
  29 
  30 ifneq ($(OPENJDK_TARGET_OS), windows)
  31   LIBJ2GSS_SRC := $(JDK_TOPDIR)/src/java.security.jgss/share/native/libj2gss \
  32       $(JDK_TOPDIR)/src/java.security.jgss/$(OPENJDK_TARGET_OS_TYPE)/native/libj2gss \
  33       #
  34 
  35   $(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS, \
  36       LIBRARY := j2gss, \
  37       OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  38       SRC := $(LIBJ2GSS_SRC), \
  39       LANG := C, \
  40       OPTIMIZATION := LOW, \
  41       CFLAGS := $(CFLAGS_JDKLIB) $(addprefix -I, $(LIBJ2GSS_SRC)) \
  42           $(LIBJAVA_HEADER_FLAGS) \
  43           -I$(SUPPORT_OUTPUTDIR)/headers/java.security.jgss, \

  44       MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libj2gss/mapfile-vers, \
  45       LDFLAGS := $(LDFLAGS_JDKLIB) \
  46           $(call SET_SHARED_LIBRARY_ORIGIN), \
  47       LDFLAGS_SUFFIX := $(LIBDL), \
  48       LDFLAGS_SUFFIX_solaris := -lc, \
  49       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libj2gss, \
  50       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  51 
  52   TARGETS += $(BUILD_LIBJ2GSS)
  53 endif
  54 
  55 ################################################################################
  56 
  57 ifneq ($(BUILD_CRYPTO), no)
  58   BUILD_LIBKRB5_NAME :=
  59   ifeq ($(OPENJDK_TARGET_OS), windows)
  60     BUILD_LIBKRB5_NAME := w2k_lsa_auth
  61     BUILD_LIBKRB5_SRC := $(JDK_TOPDIR)/src/java.security.jgss/$(OPENJDK_TARGET_OS_TYPE)/native/libw2k_lsa_auth
  62     BUILD_LIBKRB5_LIBS := advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \
  63         gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \


  65   else ifeq ($(OPENJDK_TARGET_OS), macosx)
  66     BUILD_LIBKRB5_NAME := osxkrb5
  67     BUILD_LIBKRB5_SRC := $(JDK_TOPDIR)/src/java.security.jgss/macosx/native/libosxkrb5
  68     BUILD_LIBKRB5_LIBS := \
  69         -framework JavaNativeFoundation \
  70         -framework Cocoa \
  71         -framework SystemConfiguration \
  72         -framework Kerberos
  73   endif
  74 
  75   ifneq ($(BUILD_LIBKRB5_NAME), )
  76     $(eval $(call SetupNativeCompilation,BUILD_LIBKRB5, \
  77         LIBRARY := $(BUILD_LIBKRB5_NAME), \
  78         OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  79         SRC := $(BUILD_LIBKRB5_SRC), \
  80         LANG := C, \
  81         OPTIMIZATION := LOW, \
  82         CFLAGS := $(CFLAGS_JDKLIB) \
  83             $(addprefix -I, $(BUILD_LIBKRB5_SRC)) \
  84             -I$(SUPPORT_OUTPUTDIR)/headers/java.security.jgss, \

  85         LDFLAGS := $(LDFLAGS_JDKLIB) \
  86             $(call SET_SHARED_LIBRARY_ORIGIN), \
  87         LDFLAGS_SUFFIX := $(BUILD_LIBKRB5_LIBS), \
  88         VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  89         RC_FLAGS := $(RC_FLAGS) \
  90             -D "JDK_FNAME=$(BUILD_LIBKRB5_NAME).dll" \
  91             -D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \
  92             -D "JDK_FTYPE=0x2L", \
  93         OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libkrb5, \
  94         DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  95 
  96     TARGETS += $(BUILD_LIBKRB5)
  97   endif
  98 endif
  99 
 100 ################################################################################
   1 #
   2 # Copyright (c) 2011, 2015, 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


  24 #
  25 
  26 include LibCommon.gmk
  27 
  28 ################################################################################
  29 
  30 ifneq ($(OPENJDK_TARGET_OS), windows)
  31   LIBJ2GSS_SRC := $(JDK_TOPDIR)/src/java.security.jgss/share/native/libj2gss \
  32       $(JDK_TOPDIR)/src/java.security.jgss/$(OPENJDK_TARGET_OS_TYPE)/native/libj2gss \
  33       #
  34 
  35   $(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS, \
  36       LIBRARY := j2gss, \
  37       OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  38       SRC := $(LIBJ2GSS_SRC), \
  39       LANG := C, \
  40       OPTIMIZATION := LOW, \
  41       CFLAGS := $(CFLAGS_JDKLIB) $(addprefix -I, $(LIBJ2GSS_SRC)) \
  42           $(LIBJAVA_HEADER_FLAGS) \
  43           -I$(SUPPORT_OUTPUTDIR)/headers/java.security.jgss, \
  44       DISABLED_WARNINGS_gcc := pointer-to-int-cast, \
  45       MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libj2gss/mapfile-vers, \
  46       LDFLAGS := $(LDFLAGS_JDKLIB) \
  47           $(call SET_SHARED_LIBRARY_ORIGIN), \
  48       LDFLAGS_SUFFIX := $(LIBDL), \
  49       LDFLAGS_SUFFIX_solaris := -lc, \
  50       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libj2gss, \
  51       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  52 
  53   TARGETS += $(BUILD_LIBJ2GSS)
  54 endif
  55 
  56 ################################################################################
  57 
  58 ifneq ($(BUILD_CRYPTO), no)
  59   BUILD_LIBKRB5_NAME :=
  60   ifeq ($(OPENJDK_TARGET_OS), windows)
  61     BUILD_LIBKRB5_NAME := w2k_lsa_auth
  62     BUILD_LIBKRB5_SRC := $(JDK_TOPDIR)/src/java.security.jgss/$(OPENJDK_TARGET_OS_TYPE)/native/libw2k_lsa_auth
  63     BUILD_LIBKRB5_LIBS := advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \
  64         gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \


  66   else ifeq ($(OPENJDK_TARGET_OS), macosx)
  67     BUILD_LIBKRB5_NAME := osxkrb5
  68     BUILD_LIBKRB5_SRC := $(JDK_TOPDIR)/src/java.security.jgss/macosx/native/libosxkrb5
  69     BUILD_LIBKRB5_LIBS := \
  70         -framework JavaNativeFoundation \
  71         -framework Cocoa \
  72         -framework SystemConfiguration \
  73         -framework Kerberos
  74   endif
  75 
  76   ifneq ($(BUILD_LIBKRB5_NAME), )
  77     $(eval $(call SetupNativeCompilation,BUILD_LIBKRB5, \
  78         LIBRARY := $(BUILD_LIBKRB5_NAME), \
  79         OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  80         SRC := $(BUILD_LIBKRB5_SRC), \
  81         LANG := C, \
  82         OPTIMIZATION := LOW, \
  83         CFLAGS := $(CFLAGS_JDKLIB) \
  84             $(addprefix -I, $(BUILD_LIBKRB5_SRC)) \
  85             -I$(SUPPORT_OUTPUTDIR)/headers/java.security.jgss, \
  86         DISABLED_WARNINGS_clang := implicit-function-declaration, \
  87         LDFLAGS := $(LDFLAGS_JDKLIB) \
  88             $(call SET_SHARED_LIBRARY_ORIGIN), \
  89         LDFLAGS_SUFFIX := $(BUILD_LIBKRB5_LIBS), \
  90         VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
  91         RC_FLAGS := $(RC_FLAGS) \
  92             -D "JDK_FNAME=$(BUILD_LIBKRB5_NAME).dll" \
  93             -D "JDK_INTERNAL_NAME=$(BUILD_LIBKRB5_NAME)" \
  94             -D "JDK_FTYPE=0x2L", \
  95         OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libkrb5, \
  96         DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  97 
  98     TARGETS += $(BUILD_LIBKRB5)
  99   endif
 100 endif
 101 
 102 ################################################################################
< prev index next >