jdk/make/gendata/Gendata-jdk.dev.gmk
author mchung
Fri, 29 Aug 2014 10:47:32 -0700
changeset 26227 aa7ada31eb77
child 27565 729f9700483a
permissions -rw-r--r--
8055856: checkdeps build target doesn't work for cross-compilation builds 8056113: [build] tools.jar missing modules.xml Reviewed-by: ihse, erikj
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26227
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     1
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     2
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     4
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    10
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    15
# accompanied this code).
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    16
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    20
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    23
# questions.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    24
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    25
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    26
include GendataCommon.gmk
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    27
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    28
$(eval $(call IncludeCustomExtension, jdk, gendata/Gendata-jdk.dev.gmk))
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    29
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    30
GENDATA := $(JDK_OUTPUTDIR)/modules/jdk.dev/com/sun/tools/jdeps/resources/jdeps-modules.xml
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    31
METADATA_FILES += $(TOPDIR)/modules.xml
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    32
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    33
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    34
# Generate modules.xml for jdeps to use
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    35
# It augments $(TOPDIR)/modules.xml to include module membership
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    36
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    37
$(GENDATA): $(BUILD_TOOLS_JDK) $(METADATA_FILES)
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    38
	$(MKDIR) -p $(@D)
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    39
	$(RM) $@
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    40
	$(TOOL_GENMODULESXML) -o $@ -mp $(JDK_OUTPUTDIR)/modules $(METADATA_FILES)
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    41
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    42
jdk.dev: $(GENDATA)
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    43
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    44
all: $(GENDATA)
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    45
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    46
.PHONY: all jdk.dev