make/ToolsLangtools.gmk
author rfield
Fri, 23 Feb 2018 10:25:22 -0800
changeset 48939 ba545e52b932
parent 47217 72e3ae9a25eb
permissions -rw-r--r--
8166232: jshell tool: cannot access previous history Reviewed-by: jlahoda
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, \
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    41
    SRC := $(TOPDIR)/make/langtools/tools, \
28334
1633de6070ae 8058542: Devise scheme for better diagnostic creation
mcimadamore
parents: 27579
diff changeset
    42
    INCLUDES := compileproperties propertiesparser, \
28458
f20c5dd05e34 8069164: Fix langtools make build so that diagnostic framework can be used
mcimadamore
parents: 28334
diff changeset
    43
    COPY := .properties, \
27579
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    44
    BIN := $(BUILDTOOLS_OUTPUTDIR)/langtools_tools_classes))
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    45
d1a63c99cdd5 8049367: Modular Run-Time Images
chegar
parents:
diff changeset
    46
all: $(BUILD_TOOLS_LANGTOOLS)