makefiles/CompileNativeLibraries.gmk

Print this page
rev 6670 : 8010192: Enable native JGSS provider on Mac


2526                      -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio/MUSCLE,\
2527                 MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pcsc/mapfile-vers, \
2528                 LDFLAGS:=$(LDFLAGS_JDKLIB) \
2529                          $(call SET_SHARED_LIBRARY_ORIGIN),\
2530                 LDFLAGS_SUFFIX_posix:=$(LIBDL), \
2531                 LDFLAGS_SUFFIX_windows:=winscard.lib,\
2532                 LDFLAGS_SUFFIX_solaris:=-lc,\
2533                 VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
2534                 RC_FLAGS:=$(RC_FLAGS)\
2535                           -D "JDK_FNAME=j2pcsc.dll" \
2536                           -D "JDK_INTERNAL_NAME=j2pcsc" \
2537                           -D "JDK_FTYPE=0x2L",\
2538                 OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pcsc,\
2539                 DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
2540 
2541 BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC)
2542 
2543 ##########################################################################################
2544 
2545 ifneq ($(OPENJDK_TARGET_OS), windows)
2546 ifneq ($(OPENJDK_TARGET_OS), macosx)
2547 $(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS,\
2548                 LIBRARY:=j2gss,\
2549                 OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
2550                 SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \
2551                      $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\
2552                 LANG:=C,\
2553                 OPTIMIZATION:=LOW, \
2554                 CFLAGS:=$(CFLAGS_JDKLIB) \
2555                      -I$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \
2556                      -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\
2557                 MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2gss/mapfile-vers, \
2558                 LDFLAGS:=$(LDFLAGS_JDKLIB) \
2559                          $(call SET_SHARED_LIBRARY_ORIGIN),\
2560                 LDFLAGS_SUFFIX:=$(LIBDL),\
2561                 LDFLAGS_SUFFIX_solaris:=-lc,\
2562                 OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2gss))
2563 
2564 BUILD_LIBRARIES += $(BUILD_LIBJ2GSS)
2565 endif
2566 endif
2567 
2568 ##########################################################################################
2569 
2570 BUILD_LIBKRB5_NAME:=
2571 ifeq ($(OPENJDK_TARGET_OS), windows)
2572      BUILD_LIBKRB5_NAME:=w2k_lsa_auth
2573      BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5
2574      BUILD_LIBKRB5_LIBS:=advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \
2575                          gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \
2576                          ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib
2577 else ifeq ($(OPENJDK_TARGET_OS), macosx)
2578      BUILD_LIBKRB5_NAME:=osxkrb5
2579      BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/krb5
2580      BUILD_LIBKRB5_LIBS:=-framework Kerberos
2581 endif
2582 
2583 ifneq ($(BUILD_LIBKRB5_NAME),)
2584 $(eval $(call SetupNativeCompilation,BUILD_LIBKRB5,\
2585                 LIBRARY:=$(BUILD_LIBKRB5_NAME),\
2586                 OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\




2526                      -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/smartcardio/MUSCLE,\
2527                 MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2pcsc/mapfile-vers, \
2528                 LDFLAGS:=$(LDFLAGS_JDKLIB) \
2529                          $(call SET_SHARED_LIBRARY_ORIGIN),\
2530                 LDFLAGS_SUFFIX_posix:=$(LIBDL), \
2531                 LDFLAGS_SUFFIX_windows:=winscard.lib,\
2532                 LDFLAGS_SUFFIX_solaris:=-lc,\
2533                 VERSIONINFO_RESOURCE:=$(JDK_TOPDIR)/src/windows/resource/version.rc,\
2534                 RC_FLAGS:=$(RC_FLAGS)\
2535                           -D "JDK_FNAME=j2pcsc.dll" \
2536                           -D "JDK_INTERNAL_NAME=j2pcsc" \
2537                           -D "JDK_FTYPE=0x2L",\
2538                 OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2pcsc,\
2539                 DEBUG_SYMBOLS:=$(WINDOWS_ONLY)))
2540 
2541 BUILD_LIBRARIES += $(BUILD_LIBJ2PCSC)
2542 
2543 ##########################################################################################
2544 
2545 ifneq ($(OPENJDK_TARGET_OS), windows)

2546 $(eval $(call SetupNativeCompilation,BUILD_LIBJ2GSS,\
2547                 LIBRARY:=j2gss,\
2548                 OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\
2549                 SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \
2550                      $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\
2551                 LANG:=C,\
2552                 OPTIMIZATION:=LOW, \
2553                 CFLAGS:=$(CFLAGS_JDKLIB) \
2554                      -I$(JDK_TOPDIR)/src/share/native/sun/security/jgss/wrapper \
2555                      -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/jgss/wrapper,\
2556                 MAPFILE:=$(JDK_TOPDIR)/makefiles/mapfiles/libj2gss/mapfile-vers, \
2557                 LDFLAGS:=$(LDFLAGS_JDKLIB) \
2558                          $(call SET_SHARED_LIBRARY_ORIGIN),\
2559                 LDFLAGS_SUFFIX:=$(LIBDL),\
2560                 LDFLAGS_SUFFIX_solaris:=-lc,\
2561                 OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/libj2gss))
2562 
2563 BUILD_LIBRARIES += $(BUILD_LIBJ2GSS)
2564 endif

2565 
2566 ##########################################################################################
2567 
2568 BUILD_LIBKRB5_NAME:=
2569 ifeq ($(OPENJDK_TARGET_OS), windows)
2570      BUILD_LIBKRB5_NAME:=w2k_lsa_auth
2571      BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/sun/security/krb5
2572      BUILD_LIBKRB5_LIBS:=advapi32.lib Secur32.lib netapi32.lib kernel32.lib user32.lib \
2573                          gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib \
2574                          ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib
2575 else ifeq ($(OPENJDK_TARGET_OS), macosx)
2576      BUILD_LIBKRB5_NAME:=osxkrb5
2577      BUILD_LIBKRB5_SRC:=$(JDK_TOPDIR)/src/share/native/sun/security/krb5
2578      BUILD_LIBKRB5_LIBS:=-framework Kerberos
2579 endif
2580 
2581 ifneq ($(BUILD_LIBKRB5_NAME),)
2582 $(eval $(call SetupNativeCompilation,BUILD_LIBKRB5,\
2583                 LIBRARY:=$(BUILD_LIBKRB5_NAME),\
2584                 OUTPUT_DIR:=$(INSTALL_LIBRARIES_HERE),\