1 #
2 # Copyright (c) 2011, 2017, 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
57 ifeq ($(OPENJDK_TARGET_OS), windows)
58 $(eval $(call SetupBuildLauncher, javaw, \
59 CFLAGS := -DJAVAW -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
60 LIBS_windows := user32.lib comctl32.lib, \
61 RC_FLAGS := $(JAVA_RC_FLAGS), \
62 VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
63 WINDOWS_STATIC_LINK := true, \
64 NO_JAVA_MS := true, \
65 ))
66 endif
67
68 $(eval $(call SetupBuildLauncher, keytool, \
69 MAIN_CLASS := sun.security.tools.keytool.Main, \
70 ))
71
72 ################################################################################
73
74 ifeq ($(OPENJDK_TARGET_OS), linux)
75 $(eval $(call SetupNativeCompilation, BUILD_JEXEC, \
76 SRC := $(TOPDIR)/src/$(MODULE)/unix/native/launcher, \
77 INCLUDE_FILES := jexec.c, \
78 OPTIMIZATION := LOW, \
79 CFLAGS := $(CFLAGS_JDKEXE) \
80 -I$(TOPDIR)/src/$(MODULE)/share/native/libjli, \
81 CFLAGS_linux := -fPIC, \
82 CFLAGS_solaris := -KPIC, \
83 LDFLAGS := $(LDFLAGS_JDKEXE), \
84 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/jexec_obj, \
85 OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
86 PROGRAM := jexec, \
87 ))
88
89 TARGETS += $(BUILD_JEXEC)
90 endif
91
92 ################################################################################
93
94 ifneq ($(findstring $(OPENJDK_TARGET_OS), macosx solaris aix), )
95 $(eval $(call SetupNativeCompilation, BUILD_JSPAWNHELPER, \
96 SRC := $(TOPDIR)/src/$(MODULE)/unix/native/jspawnhelper, \
97 OPTIMIZATION := LOW, \
98 CFLAGS := $(CFLAGS_JDKEXE) -I$(TOPDIR)/src/$(MODULE)/unix/native/libjava, \
99 EXTRA_OBJECT_FILES := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjava/childproc.o, \
100 LDFLAGS := $(LDFLAGS_JDKEXE), \
101 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/jspawnhelper, \
102 OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
103 PROGRAM := jspawnhelper, \
104 ))
105
106 TARGETS += $(BUILD_JSPAWNHELPER)
107 endif
108
109 ################################################################################
|
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
57 ifeq ($(OPENJDK_TARGET_OS), windows)
58 $(eval $(call SetupBuildLauncher, javaw, \
59 CFLAGS := -DJAVAW -DEXPAND_CLASSPATH_WILDCARDS -DENABLE_ARG_FILES, \
60 LIBS_windows := user32.lib comctl32.lib, \
61 RC_FLAGS := $(JAVA_RC_FLAGS), \
62 VERSION_INFO_RESOURCE := $(JAVA_VERSION_INFO_RESOURCE), \
63 WINDOWS_STATIC_LINK := true, \
64 NO_JAVA_MS := true, \
65 ))
66 endif
67
68 $(eval $(call SetupBuildLauncher, keytool, \
69 MAIN_CLASS := sun.security.tools.keytool.Main, \
70 ))
71
72 ################################################################################
73
74 ifeq ($(OPENJDK_TARGET_OS), linux)
75 $(eval $(call SetupNativeCompilation, BUILD_JEXEC, \
76 NAME := jexec, \
77 TYPE := EXECUTABLE, \
78 SRC := $(TOPDIR)/src/$(MODULE)/unix/native/launcher, \
79 INCLUDE_FILES := jexec.c, \
80 OPTIMIZATION := LOW, \
81 CFLAGS := $(CFLAGS_JDKEXE) \
82 -I$(TOPDIR)/src/$(MODULE)/share/native/libjli, \
83 CFLAGS_linux := -fPIC, \
84 CFLAGS_solaris := -KPIC, \
85 LDFLAGS := $(LDFLAGS_JDKEXE), \
86 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/jexec_obj, \
87 OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
88 ))
89
90 TARGETS += $(BUILD_JEXEC)
91 endif
92
93 ################################################################################
94
95 ifneq ($(findstring $(OPENJDK_TARGET_OS), macosx solaris aix), )
96 $(eval $(call SetupNativeCompilation, BUILD_JSPAWNHELPER, \
97 NAME := jspawnhelper, \
98 TYPE := EXECUTABLE, \
99 SRC := $(TOPDIR)/src/$(MODULE)/unix/native/jspawnhelper, \
100 OPTIMIZATION := LOW, \
101 CFLAGS := $(CFLAGS_JDKEXE) -I$(TOPDIR)/src/$(MODULE)/unix/native/libjava, \
102 EXTRA_OBJECT_FILES := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libjava/childproc.o, \
103 LDFLAGS := $(LDFLAGS_JDKEXE), \
104 OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/jspawnhelper, \
105 OUTPUT_DIR := $(SUPPORT_OUTPUTDIR)/modules_libs/$(MODULE), \
106 ))
107
108 TARGETS += $(BUILD_JSPAWNHELPER)
109 endif
110
111 ################################################################################
|