make/ExplodedImageOptimize.gmk
author coleenp
Wed, 12 Sep 2018 08:26:31 -0400
changeset 53323 bc9faf59936d
parent 51808 3f32076a43a6
child 53241 7327a62f3c04
permissions -rw-r--r--
8210624: Clean up better loading tests Reviewed-by: hseigel, jwilhelm
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
41171
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
     1
#
51808
3f32076a43a6 8210919: Remove statically linked libjli on Windows
ihse
parents: 47217
diff changeset
     2
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
41171
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
     4
#
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    10
#
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    15
# accompanied this code).
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    16
#
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    20
#
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    23
# questions.
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    24
#
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    25
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    26
# Runs a tool on the exploded image to improve performance
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    27
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    28
default: all
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    29
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    30
include $(SPEC)
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    31
include MakeBase.gmk
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 41659
diff changeset
    32
include $(TOPDIR)/make/ModuleTools.gmk
41171
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    33
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    34
################################################################################
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    35
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    36
PACKAGES_ATTRIBUTE_TARGET := $(JDK_OUTPUTDIR)/_packages_attribute.done
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    37
ALL_MODULEINFO_CLASSES := $(wildcard $(JDK_OUTPUTDIR)/modules/*/module_info.class)
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    38
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    39
$(PACKAGES_ATTRIBUTE_TARGET): $(ALL_MODULEINFO_CLASSES) $(BUILD_JIGSAW_CLASSES)
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    40
	$(call LogInfo, Optimizing the exploded image)
51808
3f32076a43a6 8210919: Remove statically linked libjli on Windows
ihse
parents: 47217
diff changeset
    41
	$(call ExecuteWithLog, $@, $(TOOL_ADD_PACKAGES_ATTRIBUTE) $(JDK_OUTPUTDIR))
41659
7c2c5a03a45f 8168950: Incremental build of images always rebuilds jmods
erikj
parents: 41171
diff changeset
    42
	$(TOUCH) $@
41171
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    43
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    44
TARGETS := $(PACKAGES_ATTRIBUTE_TARGET)
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    45
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    46
################################################################################
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    47
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    48
all: $(TARGETS)
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    49
407480ec6872 8166948: Exploded image too slow to be usable
erikj
parents:
diff changeset
    50
.PHONY: all default