author | jmasa |
Wed, 14 Aug 2013 19:52:16 -0700 | |
changeset 19347 | afb416fb8104 |
parent 15903 | bc0e6cd9d760 |
permissions | -rw-r--r-- |
0 | 1 |
# |
12256
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
2 |
# Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. |
0 | 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 |
|
5499 | 7 |
# published by the Free Software Foundation. Oracle designates this |
0 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5499 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
0 | 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 |
# |
|
5499 | 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. |
|
0 | 24 |
# |
25 |
||
26 |
################################################################ |
|
27 |
# JDK TARGETS |
|
28 |
################################################################ |
|
29 |
||
30 |
JDK_JAVA_EXE = $(OUTPUTDIR)/bin/java$(EXE_SUFFIX) |
|
31 |
||
32 |
# NO_IMAGES may be set in conjunction with DEV_ONLY |
|
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
33 |
IMAGES_TARGET = images |
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
34 |
ifdef DEV_ONLY |
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
35 |
ifdef NO_IMAGES |
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
36 |
IMAGES_TARGET = |
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
37 |
endif |
0 | 38 |
endif |
39 |
||
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
40 |
# GENERATE_DOCS determines if we ask for the docs target |
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
41 |
DOCS_TARGET = docs |
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
42 |
ifeq ($(GENERATE_DOCS),false) |
0 | 43 |
DOCS_TARGET = |
44 |
endif |
|
4309
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
45 |
|
39ca605f0647
6727046: Add message when docs are skipped in control build
ohair
parents:
3789
diff
changeset
|
46 |
JDK_BUILD_TARGETS = sanity all $(DOCS_TARGET) $(IMAGES_TARGET) |
0 | 47 |
|
48 |
JDK_CLOBBER_TARGETS = clobber |
|
49 |
||
50 |
JDK_BUILD_ARGUMENTS = $(COMMON_BUILD_ARGUMENTS) \ |
|
51 |
ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) |
|
52 |
||
53 |
ifeq ($(BUILD_LANGTOOLS), true) |
|
54 |
JDK_BUILD_ARGUMENTS += ALT_LANGTOOLS_DIST=$(ABS_LANGTOOLS_DIST) |
|
55 |
endif |
|
56 |
ifeq ($(BUILD_CORBA), true) |
|
57 |
JDK_BUILD_ARGUMENTS += ALT_CORBA_DIST=$(ABS_CORBA_DIST) |
|
58 |
endif |
|
59 |
ifeq ($(BUILD_JAXP), true) |
|
60 |
JDK_BUILD_ARGUMENTS += ALT_JAXP_DIST=$(ABS_JAXP_DIST) |
|
61 |
endif |
|
62 |
ifeq ($(BUILD_JAXWS), true) |
|
63 |
JDK_BUILD_ARGUMENTS += ALT_JAXWS_DIST=$(ABS_JAXWS_DIST) |
|
64 |
endif |
|
15903 | 65 |
ifeq ($(BUILD_NASHORN), true) |
66 |
JDK_BUILD_ARGUMENTS += ALT_NASHORN_DIST=$(ABS_NASHORN_DIST) |
|
67 |
endif |
|
0 | 68 |
|
69 |
ifeq ($(BUILD_HOTSPOT), true) |
|
70 |
JDK_BUILD_ARGUMENTS += ALT_HOTSPOT_IMPORT_PATH=$(HOTSPOT_DIR)/import |
|
71 |
endif |
|
72 |
||
73 |
JDK_BUILD_ARGUMENTS += \ |
|
74 |
BUILD_HOTSPOT=$(BUILD_HOTSPOT) |
|
75 |
||
12256
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
76 |
# Move to COMMON_BUILD_ARGUMENTS when all repos support |
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
77 |
# FULL_DEBUG_SYMBOLS and ZIP_DEBUGINFO_FILES: |
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
78 |
ifdef FULL_DEBUG_SYMBOLS |
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
79 |
JDK_BUILD_ARGUMENTS += FULL_DEBUG_SYMBOLS=$(FULL_DEBUG_SYMBOLS) |
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
80 |
endif |
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
81 |
|
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
82 |
ifdef ZIP_DEBUGINFO_FILES |
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
83 |
JDK_BUILD_ARGUMENTS += ZIP_DEBUGINFO_FILES="$(ZIP_DEBUGINFO_FILES)" |
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
84 |
endif |
e66c077cb815
7157296: FDS: ENABLE_FULL_DEBUG_SYMBOLS flag should only affect OPT builds
dcubed
parents:
8917
diff
changeset
|
85 |
|
0 | 86 |
|
87 |
$(JDK_JAVA_EXE):: jdk-build |
|
88 |
||
89 |
jdk: jdk-build |
|
90 |
jdk-build: |
|
8441 | 91 |
@$(call MakeStart,jdk,$(JDK_BUILD_TARGETS)) |
0 | 92 |
( $(CD) $(JDK_TOPDIR)/make && \ |
93 |
$(MAKE) $(JDK_BUILD_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) |
|
8441 | 94 |
@$(call MakeFinish,jdk,$(JDK_BUILD_TARGETS)) |
0 | 95 |
|
96 |
jdk-clobber:: |
|
8441 | 97 |
@$(call MakeStart,jdk,$(JDK_CLOBBER_TARGETS)) |
0 | 98 |
( $(CD) $(JDK_TOPDIR)/make && \ |
99 |
$(MAKE) $(JDK_CLOBBER_TARGETS) $(JDK_BUILD_ARGUMENTS) ; ) |
|
8441 | 100 |
@$(call MakeFinish,jdk,$(JDK_CLOBBER_TARGETS)) |
0 | 101 |
|
102 |
jdk-sanity:: |
|
2096
da51837a7368
6791649: add "SKIP_MSIVAL2=true" to the Windows section of make/jprt.config
ohair
parents:
668
diff
changeset
|
103 |
( $(CD) $(JDK_TOPDIR)/make && \ |
0 | 104 |
$(MAKE) sanity HOTSPOT_IMPORT_CHECK=false $(JDK_BUILD_ARGUMENTS) ; ) |
105 |
||
106 |
compare-images: compare-image |
|
107 |
compare-image: |
|
8441 | 108 |
@$(call MakeStart,jdk,compare-image) |
0 | 109 |
( $(CD) $(JDK_TOPDIR)/make && \ |
110 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image ) |
|
8441 | 111 |
@$(call MakeFinish,jdk,compare-image) |
0 | 112 |
|
113 |
compare-images-clobber: compare-image-clobber |
|
114 |
compare-image-clobber: |
|
8441 | 115 |
@$(call MakeStart,jdk,compare-image-clobber) |
0 | 116 |
( $(CD) $(JDK_TOPDIR)/make && \ |
117 |
$(MAKE) ALT_OUTPUTDIR=$(ABS_OUTPUTDIR) compare-image-clobber ) |
|
8441 | 118 |
@$(call MakeFinish,jdk,compare-image-clobber) |
0 | 119 |
|
120 |
.PHONY: jdk jdk-build jdk-clobber jdk-sanity |
|
121 |