1 #
   2 # Copyright (c) 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 #
  27 # Variable definitions for SE Embedded builds.  This file should
  28 # not contain rules.
  29 #
  30 ifdef JAVASE_EMBEDDED
  31 
  32 # Compress jar files
  33 COMPRESS_JARS = true
  34 
  35 # Don't mmap zip files
  36 LIBZIP_CAN_USE_MMAP = false
  37 
  38 # Disable ALSA version check
  39 REQUIRED_ALSA_VERSION =
  40 
  41 # Compilation settings
  42 OTHER_CPPFLAGS += -DJAVASE_EMBEDDED
  43 
  44 # Product naming
  45 PRODUCT_SUFFIX = SE Runtime Environment for Embedded
  46 RUNTIME_NAME = $(PRODUCT_NAME) $(PRODUCT_SUFFIX)
  47 
  48 # Reduced JRE locations
  49 JRE_REDUCED_HEADLESS_IMAGE_DIR = $(ABS_OUTPUTDIR)/j2re-reduced-headless-image
  50 JRE_REDUCED_IMAGE_DIR = $(ABS_OUTPUTDIR)/j2re-reduced-image
  51 
  52 # Override on linux to further reduce binary/lib sizes in product build
  53 ifeq ($(PLATFORM), linux)
  54   ifeq ($(VARIANT), OPT)
  55     ifneq ($(NO_STRIP), true)
  56       ifneq ($(DEBUG_BINARIES), true)
  57         POST_STRIP_PROCESS = $(STRIP) --strip-unneeded
  58       endif
  59     endif
  60   endif
  61 endif
  62 
  63 # NIO Platform specific source file location
  64 ifdef CROSS_COMPILE_ARCH
  65   NIO_PLATFORM_CLASSES_ROOT_DIR = $(CLOSED_PLATFORM_SRC)/classes/
  66 endif
  67 
  68 # For ARM sflt we need to link to a library with improved FP accuracy
  69 # and it must be linked after fdlibm - this places it at the end after libc
  70 # -z muldefs avoids linker errors for duplicate symbols.
  71 ifeq ($(CROSS_COMPILE_ARCH), arm)
  72   EXTRA_LIBS +=  $(EXT_LIBS_PATH)/sflt_glibc_jdk.a -Xlinker -z -Xlinker muldefs
  73 endif
  74 
  75 endif # JAVASE_EMBEDDED
  76