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
  23 # questions.
  24 #
  25 
  26 WIN_VERIFY_LIB := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libverify/verify.lib
  27 
  28 ##########################################################################################
  29 # libfdlibm is statically linked with libjava below and not delivered into the
  30 # product on its own.
  31 
  32 BUILD_LIBFDLIBM_OPTIMIZATION := HIGH
  33 
  34 ifneq ($(OPENJDK_TARGET_OS), solaris)
  35   BUILD_LIBFDLIBM_OPTIMIZATION := NONE
  36 endif
  37 
  38 LIBFDLIBM_SRC := $(JDK_TOPDIR)/src/java.base/share/native/libfdlibm
  39 LIBFDLIBM_CFLAGS := -I$(LIBFDLIBM_SRC)
  40 
  41 ifneq ($(OPENJDK_TARGET_OS), macosx)
  42   $(eval $(call SetupNativeCompilation,BUILD_LIBFDLIBM, \
  43       STATIC_LIBRARY := fdlibm, \
  44       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \
  45       SRC := $(LIBFDLIBM_SRC), \
  46       OPTIMIZATION := $(BUILD_LIBFDLIBM_OPTIMIZATION), \
  47       CFLAGS := $(CFLAGS_JDKLIB) $(LIBFDLIBM_CFLAGS), \
  48       CFLAGS_windows_debug := -DLOGGING, \
  49       CFLAGS_aix := -qfloat=nomaf, \
  50       DISABLED_WARNINGS_gcc := sign-compare, \
  51       DISABLED_WARNINGS_microsoft := 4146 4244 4018, \
  52       ARFLAGS := $(ARFLAGS), \
  53       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfdlibm, \
  54       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  55 
  56 else
  57 
  58   # On macosx the old build does partial (incremental) linking of fdlibm instead of
  59   # a plain static library.
  60   $(eval $(call SetupNativeCompilation,BUILD_LIBFDLIBM_MAC, \
  61       LIBRARY := fdlibm, \
  62       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfdlibm, \
  63       SRC := $(LIBFDLIBM_SRC), \
  64       CFLAGS := $(CFLAGS_JDKLIB) $(LIBFDLIBM_CFLAGS), \
  65       LDFLAGS := -nostdlib -r -arch x86_64, \
  66       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfdlibm, \
  67       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
  68 
  69   BUILD_LIBFDLIBM := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/$(LIBRARY_PREFIX)fdlibm$(STATIC_LIBRARY_SUFFIX)
  70   $(BUILD_LIBFDLIBM): $(BUILD_LIBFDLIBM_MAC)
  71         $(call install-file)
  72 
  73 endif
  74 
  75 ##########################################################################################
  76 
  77 ifeq ($(OPENJDK_TARGET_OS), solaris)
  78   ifneq ($(OPENJDK_TARGET_CPU), x86_64)
  79     BUILD_LIBVERIFY_REORDER := $(JDK_TOPDIR)/make/mapfiles/libverify/reorder-$(OPENJDK_TARGET_CPU)
  80   endif
  81 endif
  82 
  83 LIBVERIFY_OPTIMIZATION := HIGH
  84 ifneq ($(findstring $(OPENJDK_TARGET_OS), solaris linux), )
  85   ifeq ($(ENABLE_DEBUG_SYMBOLS), true)
  86     LIBVERIFY_OPTIMIZATION := LOW
  87   endif
  88 endif
  89 
  90 $(eval $(call SetupNativeCompilation,BUILD_LIBVERIFY, \
  91     LIBRARY := verify, \
  92     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
  93     SRC := $(JDK_TOPDIR)/src/java.base/share/native/libverify, \
  94     OPTIMIZATION := $(LIBVERIFY_OPTIMIZATION), \
  95     CFLAGS := $(CFLAGS_JDKLIB), \
  96     DISABLED_WARNINGS_microsoft := 4244 4267, \
  97     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libverify/mapfile-vers, \
  98     LDFLAGS := $(LDFLAGS_JDKLIB) \
  99         $(call SET_SHARED_LIBRARY_ORIGIN), \
 100     LDFLAGS_SUFFIX_unix := -ljvm -lc, \
 101     LDFLAGS_SUFFIX_windows := jvm.lib, \
 102     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 103     RC_FLAGS := $(RC_FLAGS) \
 104         -D "JDK_FNAME=verify.dll" \
 105         -D "JDK_INTERNAL_NAME=verify" \
 106         -D "JDK_FTYPE=0x2L", \
 107     REORDER := $(BUILD_LIBVERIFY_REORDER), \
 108     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libverify, \
 109     DEBUG_SYMBOLS := true))
 110 
 111 TARGETS += $(BUILD_LIBVERIFY)
 112 
 113 ##########################################################################################
 114 
 115 LIBJAVA_SRC_DIRS := $(call FindSrcDirsForLib, java.base, java)
 116 
 117 LIBJAVA_CFLAGS := $(addprefix -I, $(LIBJAVA_SRC_DIRS)) \
 118     -I$(JDK_TOPDIR)/src/java.base/share/native/libfdlibm \
 119     -I$(SUPPORT_OUTPUTDIR)/headers/java.base \
 120     -DARCHPROPNAME='"$(OPENJDK_TARGET_CPU_OSARCH)"'
 121 
 122 LIBJAVA_CFLAGS += -DJDK_MAJOR_VERSION='"$(JDK_MAJOR_VERSION)"' \
 123     -DJDK_MINOR_VERSION='"$(JDK_MINOR_VERSION)"' \
 124     -DJDK_MICRO_VERSION='"$(JDK_MICRO_VERSION)"' \
 125      -DJDK_BUILD_NUMBER='"$(JDK_BUILD_NUMBER)"'
 126 
 127 ifneq (, $(JDK_UPDATE_VERSION))
 128   LIBJAVA_CFLAGS += -DJDK_UPDATE_VERSION='"$(JDK_UPDATE_VERSION)"'
 129 endif
 130 
 131 ifeq ($(OPENJDK_TARGET_OS), macosx)
 132   BUILD_LIBJAVA_java_props_md.c_CFLAGS := -x objective-c
 133   BUILD_LIBJAVA_java_props_macosx.c_CFLAGS := -x objective-c
 134 endif
 135 
 136 ifeq ($(OPENJDK_TARGET_OS), solaris)
 137   ifneq ($(OPENJDK_TARGET_CPU), x86_64)
 138     LIBJAVA_REORDER := $(JDK_TOPDIR)/make/mapfiles/libjava/reorder-$(OPENJDK_TARGET_CPU)
 139   endif
 140 endif
 141 
 142 $(eval $(call SetupNativeCompilation,BUILD_LIBJAVA, \
 143     LIBRARY := java, \
 144     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 145     SRC := $(LIBJAVA_SRC_DIRS), \
 146     OPTIMIZATION := HIGH, \
 147     CFLAGS := $(CFLAGS_JDKLIB) \
 148         $(LIBJAVA_CFLAGS), \
 149     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjava/mapfile-vers, \
 150     LDFLAGS := $(LDFLAGS_JDKLIB) \
 151         $(call SET_SHARED_LIBRARY_ORIGIN), \
 152     LDFLAGS_SUFFIX_unix := -ljvm -lverify, \
 153     LDFLAGS_SUFFIX_solaris := -lsocket -lnsl -lscf $(LIBDL) $(BUILD_LIBFDLIBM) -lc, \
 154     LDFLAGS_SUFFIX_linux := $(LIBDL) $(BUILD_LIBFDLIBM), \
 155     LDFLAGS_SUFFIX_aix := $(LIBDL) $(BUILD_LIBFDLIBM) -lm,\
 156     LDFLAGS_SUFFIX_macosx := -L$(SUPPORT_OUTPUTDIR)/native/$(MODULE)/ -lfdlibm \
 157         -framework CoreFoundation \
 158         -framework Foundation \
 159         -framework Security -framework SystemConfiguration, \
 160     LDFLAGS_SUFFIX_windows := -export:winFileHandleOpen -export:handleLseek \
 161         -export:getLastErrorString \
 162         jvm.lib $(BUILD_LIBFDLIBM) $(WIN_VERIFY_LIB) \
 163         shell32.lib delayimp.lib -DELAYLOAD:shell32.dll \
 164         advapi32.lib version.lib, \
 165     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 166     RC_FLAGS := $(RC_FLAGS) \
 167         -D "JDK_FNAME=java.dll" \
 168         -D "JDK_INTERNAL_NAME=java" \
 169         -D "JDK_FTYPE=0x2L", \
 170     REORDER := $(LIBJAVA_REORDER), \
 171     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjava, \
 172     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 173 
 174 TARGETS += $(BUILD_LIBJAVA)
 175 
 176 $(BUILD_LIBJAVA): $(BUILD_LIBVERIFY)
 177 
 178 $(BUILD_LIBJAVA): $(BUILD_LIBFDLIBM)
 179 
 180 ##########################################################################################
 181 
 182 BUILD_LIBZIP_EXCLUDES :=
 183 ifeq ($(USE_EXTERNAL_LIBZ), true)
 184   LIBZIP_EXCLUDES += zlib-1.2.8
 185 endif
 186 
 187 BUILD_LIBZIP_REORDER :=
 188 ifeq ($(OPENJDK_TARGET_OS), solaris)
 189   ifneq ($(OPENJDK_TARGET_CPU), x86_64)
 190     BUILD_LIBZIP_REORDER := $(JDK_TOPDIR)/make/mapfiles/libzip/reorder-$(OPENJDK_TARGET_CPU)
 191   endif
 192 endif
 193 
 194 ifeq ($(LIBZIP_CAN_USE_MMAP), true)
 195   BUILD_LIBZIP_MMAP := -DUSE_MMAP
 196 endif
 197 
 198 $(eval $(call SetupNativeCompilation,BUILD_LIBZIP, \
 199     LIBRARY := zip, \
 200     OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \
 201     OPTIMIZATION := LOW, \
 202     SRC := $(JDK_TOPDIR)/src/java.base/share/native/libzip, \
 203     EXCLUDES := $(LIBZIP_EXCLUDES), \
 204     CFLAGS := $(CFLAGS_JDKLIB) \
 205         $(ZLIB_CPPFLAGS) \
 206         -I$(JDK_TOPDIR)/src/java.base/share/native/libjava \
 207         -I$(JDK_TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \
 208         -I$(SUPPORT_OUTPUTDIR)/headers/java.base, \
 209     CFLAGS_unix := $(BUILD_LIBZIP_MMAP) -UDEBUG, \
 210     DISABLED_WARNINGS_gcc := parentheses, \
 211     DISABLED_WARNINGS_clang := dangling-else, \
 212     DISABLED_WARNINGS_microsoft := 4267, \
 213     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libzip/mapfile-vers, \
 214     REORDER := $(BUILD_LIBZIP_REORDER), \
 215     LDFLAGS := $(LDFLAGS_JDKLIB) \
 216         $(call SET_SHARED_LIBRARY_ORIGIN) \
 217         $(EXPORT_ZIP_FUNCS), \
 218     LDFLAGS_windows := -export:ZIP_Open -export:ZIP_Close -export:ZIP_FindEntry \
 219         -export:ZIP_ReadEntry -export:ZIP_GetNextEntry \
 220         -export:ZIP_InflateFully -export:ZIP_CRC32 \
 221         jvm.lib $(WIN_JAVA_LIB), \
 222     LDFLAGS_SUFFIX_linux := -ljvm -ljava $(LIBZ), \
 223     LDFLAGS_SUFFIX_solaris := -ljvm -ljava $(LIBZ) -lc, \
 224     LDFLAGS_SUFFIX_aix := -ljvm -ljava $(LIBZ),\
 225     LDFLAGS_SUFFIX_macosx := $(LIBZ) -ljava -ljvm, \
 226     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 227     RC_FLAGS := $(RC_FLAGS) \
 228         -D "JDK_FNAME=zip.dll" \
 229         -D "JDK_INTERNAL_NAME=zip" \
 230         -D "JDK_FTYPE=0x2L", \
 231     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libzip, \
 232     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 233 
 234 
 235 $(BUILD_LIBZIP): $(BUILD_LIBJAVA)
 236 
 237 TARGETS += $(BUILD_LIBZIP)
 238 
 239 ##########################################################################################
 240 
 241 LIBJLI_SRC_DIRS := $(call FindSrcDirsForLib, java.base, jli)
 242 
 243 LIBJLI_CFLAGS := $(CFLAGS_JDKLIB)
 244 
 245 ifeq ($(JVM_VARIANT_ZERO), true)
 246   ERGO_FAMILY := zero
 247 else
 248   ifeq ($(OPENJDK_TARGET_CPU_ARCH), x86)
 249     ERGO_FAMILY := i586
 250   else
 251     ERGO_FAMILY := $(OPENJDK_TARGET_CPU_ARCH)
 252   endif
 253 endif
 254 LIBJLI_ALL_ERGO := $(wildcard $(addsuffix /ergo_*.c, $(LIBJLI_SRC_DIRS)))
 255 LIBJLI_EXCLUDE_ERGO := $(filter-out %/ergo_$(ERGO_FAMILY).c, $(LIBJLI_ALL_ERGO))
 256 # If all specialized ergo files are excluded, use generic ergo
 257 ifeq ($(LIBJLI_ALL_ERGO), $(LIBJLI_EXCLUDE_ERGO))
 258   LIBJLI_CFLAGS += -DUSE_GENERIC_ERGO
 259 endif
 260 LIBJLI_EXCLUDE_FILES += $(notdir $(LIBJLI_EXCLUDE_ERGO))
 261 
 262 ifeq ($(OPENJDK_TARGET_OS), macosx)
 263   LIBJLI_EXCLUDE_FILES += java_md_solinux.c ergo.c ergo_i586.c
 264 
 265   BUILD_LIBJLI_java_md_macosx.c_CFLAGS := -x objective-c
 266   BUILD_LIBJLI_STATIC_java_md_macosx.c_CFLAGS := -x objective-c
 267 
 268   LIBJLI_CFLAGS += -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
 269 endif
 270 
 271 ifeq ($(OPENJDK_TARGET_OS), windows)
 272   # Staticically link with c runtime on windows.
 273   LIBJLI_CFLAGS := $(filter-out -MD, $(LIBJLI_CFLAGS))
 274   LIBJLI_OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE)
 275   # Supply the name of the C runtime lib.
 276   LIBJLI_CFLAGS += -DMSVCR_DLL_NAME='"$(notdir $(MSVCR_DLL))"'
 277   ifneq ($(MSVCP_DLL), )
 278     LIBJLI_CFLAGS += -DMSVCP_DLL_NAME='"$(notdir $(MSVCP_DLL))"'
 279   endif
 280 else
 281   LIBJLI_OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE)/jli
 282 endif
 283 
 284 LIBJLI_CFLAGS += $(addprefix -I, $(LIBJLI_SRC_DIRS))
 285 
 286 # Append defines depending on target platform
 287 LIBJLI_CFLAGS += $(OPENJDK_TARGET_CPU_JLI_CFLAGS)
 288 
 289 ifneq ($(USE_EXTERNAL_LIBZ), true)
 290   LIBJLI_CFLAGS += $(ZLIB_CPPFLAGS)
 291   LIBJLI_EXTRA_FILES += \
 292       $(addprefix $(JDK_TOPDIR)/src/java.base/share/native/libzip/zlib-1.2.8/, \
 293           inflate.c \
 294           inftrees.c \
 295           inffast.c \
 296           zadler32.c \
 297           zcrc32.c \
 298           zutil.c \
 299       )
 300 endif
 301 
 302 $(eval $(call SetupNativeCompilation,BUILD_LIBJLI, \
 303     LIBRARY := jli, \
 304     OUTPUT_DIR := $(LIBJLI_OUTPUT_DIR), \
 305     SRC := $(LIBJLI_SRC_DIRS), \
 306     EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
 307     EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
 308     OPTIMIZATION := HIGH, \
 309     CFLAGS := $(LIBJLI_CFLAGS), \
 310     DISABLED_WARNINGS_solstudio := E_ASM_DISABLES_OPTIMIZATION, \
 311     MAPFILE := $(JDK_TOPDIR)/make/mapfiles/libjli/mapfile-vers, \
 312     LDFLAGS := $(LDFLAGS_JDKLIB) \
 313         $(call SET_SHARED_LIBRARY_ORIGIN), \
 314     LDFLAGS_linux := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
 315     LDFLAGS_solaris := $(call SET_SHARED_LIBRARY_ORIGIN,/..), \
 316     LDFLAGS_macosx := -framework Cocoa -framework Security -framework ApplicationServices, \
 317     LDFLAGS_SUFFIX_solaris := $(LIBZ) $(LIBDL) -lc, \
 318     LDFLAGS_SUFFIX_linux := $(LIBZ) $(LIBDL) -lc -lpthread, \
 319     LDFLAGS_SUFFIX_aix := $(LIBZ) $(LIBDL),\
 320     LDFLAGS_SUFFIX_macosx := $(LIBZ), \
 321     LDFLAGS_SUFFIX_windows := \
 322         -export:JLI_Launch \
 323         -export:JLI_ManifestIterate \
 324         -export:JLI_SetTraceLauncher \
 325         -export:JLI_ReportErrorMessage \
 326         -export:JLI_ReportErrorMessageSys \
 327         -export:JLI_ReportMessage \
 328         -export:JLI_ReportExceptionDescription \
 329         -export:JLI_MemAlloc \
 330         -export:JLI_CmdToArgs \
 331         -export:JLI_GetStdArgc \
 332         -export:JLI_GetStdArgs \
 333         -export:JLI_DecodeArgs \
 334         advapi32.lib \
 335         comctl32.lib \
 336         user32.lib, \
 337     VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
 338     RC_FLAGS := $(RC_FLAGS) \
 339         -D "JDK_FNAME=jli.dll" \
 340         -D "JDK_INTERNAL_NAME=jli" \
 341         -D "JDK_FTYPE=0x2L", \
 342     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli, \
 343     DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 344 
 345 TARGETS += $(BUILD_LIBJLI)
 346 
 347 # On windows, the static library has the same suffix as the import library created by
 348 # with the shared library, so the static library is given a different name. No harm
 349 # in doing it for all platform to reduce complexity.
 350 ifeq ($(OPENJDK_TARGET_OS), windows)
 351   $(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC, \
 352       STATIC_LIBRARY := jli_static, \
 353       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \
 354       SRC := $(LIBJLI_SRC_DIRS), \
 355       EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
 356       EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
 357       OPTIMIZATION := HIGH, \
 358       CFLAGS := $(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS), \
 359       ARFLAGS := $(ARFLAGS), \
 360       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static, \
 361       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 362 
 363   TARGETS += $(BUILD_LIBJLI_STATIC)
 364 
 365 else ifeq ($(OPENJDK_TARGET_OS), macosx)
 366   #
 367   # On macosx they do partial (incremental) linking of libjli_static.a
 368   # code it here...rather than add support to NativeCompilation
 369   # as this is first time I see it
 370   $(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC, \
 371       LIBRARY := jli_static, \
 372       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \
 373       SRC := $(LIBJLI_SRC_DIRS), \
 374       EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
 375       EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
 376       OPTIMIZATION := HIGH, \
 377       CFLAGS := $(CFLAGS_JDKLIB) $(LIBJLI_CFLAGS), \
 378       LDFLAGS := -nostdlib -r, \
 379       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static, \
 380       DEBUG_SYMBOLS := $(DEBUG_ALL_BINARIES)))
 381 
 382   $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static.a: $(BUILD_LIBJLI_STATIC)
 383         $(call install-file)
 384 
 385   TARGETS += $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static.a
 386 
 387 else ifeq ($(OPENJDK_TARGET_OS), aix)
 388   # AIX also requires a static libjli because the compiler doesn't support '-rpath'
 389   $(eval $(call SetupNativeCompilation,BUILD_LIBJLI_STATIC, \
 390       STATIC_LIBRARY := jli_static, \
 391       OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE), \
 392       SRC := $(LIBJLI_SRC_DIRS), \
 393       EXCLUDE_FILES := $(LIBJLI_EXCLUDE_FILES), \
 394       EXTRA_FILES := $(LIBJLI_EXTRA_FILES), \
 395       OPTIMIZATION := HIGH, \
 396       CFLAGS := $(STATIC_LIBRARY_FLAGS) $(LIBJLI_CFLAGS), \
 397       ARFLAGS := $(ARFLAGS), \
 398       OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjli_static))
 399 
 400   TARGETS += $(BUILD_LIBJLI_STATIC)
 401 
 402 endif