blob: 089fae9d586cd42ef40e9db0c461e175f8046a23 [file] [log] [blame]
dholmes2f37b892011-03-22 18:56:16 -04001#
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#
30ifdef JAVASE_EMBEDDED
31
32# Compress jar files
33COMPRESS_JARS = true
34
35# Don't mmap zip files
36LIBZIP_CAN_USE_MMAP = false
37
38# Disable ALSA version check
39REQUIRED_ALSA_VERSION =
40
41# Compilation settings
42OTHER_CPPFLAGS += -DJAVASE_EMBEDDED
43
44# Product naming
45PRODUCT_SUFFIX = SE Runtime Environment for Embedded
46RUNTIME_NAME = $(PRODUCT_NAME) $(PRODUCT_SUFFIX)
47
48# Reduced JRE locations
49JRE_REDUCED_HEADLESS_IMAGE_DIR = $(ABS_OUTPUTDIR)/j2re-reduced-headless-image
50JRE_REDUCED_IMAGE_DIR = $(ABS_OUTPUTDIR)/j2re-reduced-image
51
dholmes7b902dc2011-05-27 19:04:48 -040052# Override on linux to further reduce binary/lib sizes in product build
53ifeq ($(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
61endif
62
dholmes1a94dee2011-06-27 20:13:48 -040063# NIO Platform specific source file location
64ifdef CROSS_COMPILE_ARCH
65 NIO_PLATFORM_CLASSES_ROOT_DIR = $(CLOSED_PLATFORM_SRC)/classes/
66endif
67
dholmes78bb2762011-11-29 00:26:22 -050068# 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.
71ifeq ($(CROSS_COMPILE_ARCH), arm)
72 EXTRA_LIBS += $(EXT_LIBS_PATH)/sflt_glibc_jdk.a -Xlinker -z -Xlinker muldefs
73endif
74
dholmes2f37b892011-03-22 18:56:16 -040075endif # JAVASE_EMBEDDED
76