equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
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 |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
49 -I$(TOPDIR)/src/java.base/share/native/libjli \ |
49 -I$(TOPDIR)/src/java.base/share/native/libjli \ |
50 -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjli \ |
50 -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjli \ |
51 -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libjli \ |
51 -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/native/libjli \ |
52 # |
52 # |
53 GLOBAL_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/common/version.rc |
53 GLOBAL_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/common/version.rc |
54 JAVA_VERSION_INFO_RESOURCE := $(TOPDIR)/src/java.base/windows/native/launcher/java.rc |
|
55 MACOSX_PLIST_DIR := $(TOPDIR)/src/java.base/macosx/native/launcher |
54 MACOSX_PLIST_DIR := $(TOPDIR)/src/java.base/macosx/native/launcher |
56 JAVA_MANIFEST := $(TOPDIR)/src/java.base/windows/native/launcher/java.manifest |
55 JAVA_MANIFEST := $(TOPDIR)/src/java.base/windows/native/launcher/java.manifest |
57 |
56 |
58 ################################################################################ |
57 ################################################################################ |
59 # Build standard launcher. |
58 # Build standard launcher. |
72 # EXTRA_JAVA_ARGS Processed into a -DEXTRA_JAVA_ARGS and is prepended |
71 # EXTRA_JAVA_ARGS Processed into a -DEXTRA_JAVA_ARGS and is prepended |
73 # before JAVA_ARGS to CFLAGS, primarily to allow long string literal |
72 # before JAVA_ARGS to CFLAGS, primarily to allow long string literal |
74 # compile time defines exceeding Visual Studio 2013 limitations. |
73 # compile time defines exceeding Visual Studio 2013 limitations. |
75 # CFLAGS Additional CFLAGS |
74 # CFLAGS Additional CFLAGS |
76 # CFLAGS_windows Additional CFLAGS_windows |
75 # CFLAGS_windows Additional CFLAGS_windows |
77 # LDFLAGS_solaris Additional LDFLAGS_solaris |
76 # EXTRA_RC_FLAGS Additional EXTRA_RC_FLAGS |
78 # RC_FLAGS Additional RC_FLAGS |
|
79 # MACOSX_SIGNED On macosx, sign this binary |
77 # MACOSX_SIGNED On macosx, sign this binary |
80 # OPTIMIZATION Override default optimization level (LOW) |
78 # OPTIMIZATION Override default optimization level (LOW) |
81 # OUTPUT_DIR Override default output directory |
79 # OUTPUT_DIR Override default output directory |
82 # VERSION_INFO_RESOURCE Override default Windows resource file |
80 # VERSION_INFO_RESOURCE Override default Windows resource file |
83 SetupBuildLauncher = $(NamedParamsMacroTemplate) |
81 SetupBuildLauncher = $(NamedParamsMacroTemplate) |
138 |
136 |
139 $$(eval $$(call SetupJdkExecutable, BUILD_LAUNCHER_$1, \ |
137 $$(eval $$(call SetupJdkExecutable, BUILD_LAUNCHER_$1, \ |
140 NAME := $1, \ |
138 NAME := $1, \ |
141 EXTRA_FILES := $(LAUNCHER_SRC)/main.c, \ |
139 EXTRA_FILES := $(LAUNCHER_SRC)/main.c, \ |
142 OPTIMIZATION := $$($1_OPTIMIZATION), \ |
140 OPTIMIZATION := $$($1_OPTIMIZATION), \ |
143 CFLAGS := $$(CFLAGS_JDKEXE) $$($1_CFLAGS) \ |
141 CFLAGS := $$(CFLAGS_JDKEXE) \ |
144 $(LAUNCHER_CFLAGS) \ |
142 $(LAUNCHER_CFLAGS) \ |
145 $(VERSION_CFLAGS) \ |
143 $(VERSION_CFLAGS) \ |
146 -DLAUNCHER_NAME='"$(LAUNCHER_NAME)"' \ |
144 -DLAUNCHER_NAME='"$(LAUNCHER_NAME)"' \ |
147 -DPROGNAME='"$1"' \ |
145 -DPROGNAME='"$1"' \ |
148 $$($1_CFLAGS), \ |
146 $$($1_CFLAGS), \ |