1 #
2 # Copyright (c) 2011, 2016, 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
56 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inftrees$(OBJ_SUFFIX) \
57 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inffast$(OBJ_SUFFIX)
58
59 endif
60
61 UNPACK_MAPFILE_DIR := $(TOPDIR)/make/mapfiles/libunpack
62 UNPACK_MAPFILE_PLATFORM_FILE := \
63 $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200-$(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH)
64
65 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
66 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
67 # if feeded with a version script which contains named tags.
68 ifeq ($(USING_BROKEN_SUSE_LD), yes)
69 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200.anonymous
70 else ifneq ($(wildcard $(UNPACK_MAPFILE_PLATFORM_FILE)), )
71 UNPACK_MAPFILE := $(UNPACK_MAPFILE_PLATFORM_FILE)
72 else
73 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200
74 endif
75
76 $(eval $(call SetupNativeCompilation,BUILD_UNPACKEXE, \
77 SRC := $(UNPACKEXE_SRC), \
78 TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
79 OPTIMIZATION := LOW, \
80 CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \
81 CFLAGS_release := -DPRODUCT, \
82 CFLAGS_linux := -fPIC, \
83 CFLAGS_solaris := -KPIC, \
84 CFLAGS_macosx := -fPIC, \
85 DISABLED_WARNINGS_gcc := unused-result implicit-fallthrough, \
86 MAPFILE := $(UNPACK_MAPFILE),\
87 LDFLAGS := $(UNPACKEXE_ZIPOBJS) \
88 $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \
89 $(call SET_SHARED_LIBRARY_ORIGIN), \
90 LIBS := $(UNPACKEXE_LIBS) $(LIBCXX), \
91 LIBS_solaris := -lc, \
92 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpackexe, \
93 OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
94 PROGRAM := unpack200, \
95 VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
96 RC_FLAGS := $(RC_FLAGS) \
97 -D "JDK_FNAME=unpack200.exe" \
98 -D "JDK_INTERNAL_NAME=unpack200" \
99 -D "JDK_FTYPE=0x1L", \
100 MANIFEST := $(TOPDIR)/src/jdk.pack/windows/native/unpack200/unpack200_proto.exe.manifest, \
101 MANIFEST_VERSION := $(VERSION_NUMBER_FOUR_POSITIONS), \
102 ))
103
104 ifneq ($(USE_EXTERNAL_LIBZ), true)
105
106 $(BUILD_UNPACKEXE): $(UNPACKEXE_ZIPOBJS)
107
108 endif
109
110 TARGETS += $(BUILD_UNPACKEXE)
111
112 ################################################################################
|
1 #
2 # Copyright (c) 2011, 2018, 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
56 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inftrees$(OBJ_SUFFIX) \
57 $(SUPPORT_OUTPUTDIR)/native/java.base/libzip/inffast$(OBJ_SUFFIX)
58
59 endif
60
61 UNPACK_MAPFILE_DIR := $(TOPDIR)/make/mapfiles/libunpack
62 UNPACK_MAPFILE_PLATFORM_FILE := \
63 $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200-$(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH)
64
65 # The linker on older SuSE distros (e.g. on SLES 10) complains with:
66 # "Invalid version tag `SUNWprivate_1.1'. Only anonymous version tag is allowed in executable."
67 # if feeded with a version script which contains named tags.
68 ifeq ($(USING_BROKEN_SUSE_LD), yes)
69 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200.anonymous
70 else ifneq ($(wildcard $(UNPACK_MAPFILE_PLATFORM_FILE)), )
71 UNPACK_MAPFILE := $(UNPACK_MAPFILE_PLATFORM_FILE)
72 else
73 UNPACK_MAPFILE := $(UNPACK_MAPFILE_DIR)/mapfile-vers-unpack200
74 endif
75
76 $(eval $(call SetupNativeCompilation, BUILD_UNPACKEXE, \
77 NAME := unpack200, \
78 TYPE := EXECUTABLE, \
79 SRC := $(UNPACKEXE_SRC), \
80 TOOLCHAIN := TOOLCHAIN_LINK_CXX, \
81 OPTIMIZATION := LOW, \
82 CFLAGS := $(UNPACKEXE_CFLAGS) $(CXXFLAGS_JDKEXE) -DFULL, \
83 CFLAGS_release := -DPRODUCT, \
84 CFLAGS_linux := -fPIC, \
85 CFLAGS_solaris := -KPIC, \
86 CFLAGS_macosx := -fPIC, \
87 DISABLED_WARNINGS_gcc := unused-result implicit-fallthrough, \
88 MAPFILE := $(UNPACK_MAPFILE),\
89 LDFLAGS := $(UNPACKEXE_ZIPOBJS) \
90 $(LDFLAGS_JDKEXE) $(LDFLAGS_CXX_JDK) \
91 $(call SET_SHARED_LIBRARY_ORIGIN), \
92 LIBS := $(UNPACKEXE_LIBS) $(LIBCXX), \
93 LIBS_solaris := -lc, \
94 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/unpackexe, \
95 OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_cmds/$(MODULE), \
96 VERSIONINFO_RESOURCE := $(GLOBAL_VERSION_INFO_RESOURCE), \
97 RC_FLAGS := $(RC_FLAGS) \
98 -D "JDK_FNAME=unpack200.exe" \
99 -D "JDK_INTERNAL_NAME=unpack200" \
100 -D "JDK_FTYPE=0x1L", \
101 MANIFEST := $(TOPDIR)/src/jdk.pack/windows/native/unpack200/unpack200_proto.exe.manifest, \
102 MANIFEST_VERSION := $(VERSION_NUMBER_FOUR_POSITIONS), \
103 ))
104
105 ifneq ($(USE_EXTERNAL_LIBZ), true)
106
107 $(BUILD_UNPACKEXE): $(UNPACKEXE_ZIPOBJS)
108
109 endif
110
111 TARGETS += $(BUILD_UNPACKEXE)
112
113 ################################################################################
|