langtools/make/Tools.gmk
author lana
Thu, 18 Dec 2014 19:57:51 -0800
changeset 28133 eebb3d0f5494
parent 27579 d1a63c99cdd5
child 28334 1633de6070ae
permissions -rw-r--r--
Added tag jdk9-b43 for changeset f5f19fe0e83b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     1
#
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     2
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     4
#
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    10
#
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    15
# accompanied this code).
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    16
#
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    20
#
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    23
# questions.
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    24
#
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    25
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    26
# This must be the first rule
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    27
default: all
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    28
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    29
include $(SPEC)
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    30
include MakeBase.gmk
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    31
include JavaCompilation.gmk
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    32
include SetupJavaCompilers.gmk
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    33
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    34
################################################################################
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    35
# Setup the compilation of the properties compilation tool. You can depend
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    36
# upon $(BUILD_TOOLS_LANGTOOLS) to trigger a compilation of the tools.
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    37
$(eval $(call SetupJavaCompilation,BUILD_TOOLS_LANGTOOLS, \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    38
    SETUP := BOOT_JAVAC, \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    39
    DISABLE_SJAVAC := true, \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    40
    ADD_JAVAC_FLAGS := -Xprefer:source, \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    41
    SRC := $(LANGTOOLS_TOPDIR)/make/tools, \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    42
    INCLUDES := compileproperties, \
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    43
    BIN := $(BUILDTOOLS_OUTPUTDIR)/langtools_tools_classes))
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    44
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    45
all: $(BUILD_TOOLS_LANGTOOLS)