jaxp/make/BuildJaxp.gmk
author adlertz
Fri, 24 Jan 2014 13:06:52 +0100
changeset 22804 401135897b65
parent 21875 f5b0b2f02db6
child 23381 600159f2e53f
permissions -rw-r--r--
8031498: Cleanup and re-factorize PhaseChaitin::build_ifg_physical Summary: Created sub-functions, added data structures, improved naming and removed unnecessary code Reviewed-by: kvn, roland, rbackman
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14250
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     1
#
15154
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
     2
# Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
14250
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     4
#
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    10
#
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    15
# accompanied this code).
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    16
#
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    20
#
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    23
# questions.
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    24
#
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    25
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    26
# This must be the first rule
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    27
default: all
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    28
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    29
-include $(SPEC)
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    30
include MakeBase.gmk
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    31
include JavaCompilation.gmk
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    32
20586
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    33
DISABLE_JAXP_WARNINGS := -Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough
14250
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    34
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    35
# The generate new bytecode uses the new compiler for to generate bytecode
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    36
# for the new jdk that is being built. The code compiled by this setup
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    37
# cannot necessarily be run with the boot jdk.
20586
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    38
$(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE_DEBUG, \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    39
    JVM := $(JAVA), \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    40
    JAVAC := $(NEW_JAVAC), \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    41
    FLAGS := -XDignore.symbol.file=true $(DISABLE_JAXP_WARNINGS) -g, \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    42
    SERVER_DIR := $(SJAVAC_SERVER_DIR), \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    43
    SERVER_JVM := $(SJAVAC_SERVER_JAVA)))
14250
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    44
20586
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    45
$(eval $(call SetupJavaCompilation,BUILD_JAXP, \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    46
    SETUP := GENERATE_NEWBYTECODE_DEBUG, \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    47
    SRC := $(JAXP_TOPDIR)/src, \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    48
    BIN := $(JAXP_OUTPUTDIR)/classes, \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    49
    SRCZIP := $(JAXP_OUTPUTDIR)/dist/lib/src.zip))
14250
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    50
20586
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    51
# Imitate the property cleaning mechanism in the old build. This will likely be replaced
15154
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    52
# by the unified functionality in JavaCompilation.gmk, but keep it the same as old build
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    53
# for now, even though it actually breaks properties containing # in the value.
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    54
# Using nawk to avoid solaris sed.
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    55
$(JAXP_OUTPUTDIR)/classes/%.properties: $(JAXP_TOPDIR)/src/%.properties
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    56
	$(MKDIR) -p $(@D)
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    57
	$(RM) $@ $@.tmp
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    58
	$(CAT) $< | LANG=C $(NAWK) '{ sub(/#.*$$/,"#"); print }' > $@.tmp
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    59
	$(MV) $@.tmp $@
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    60
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    61
SRC_PROP_FILES := $(shell $(FIND) $(JAXP_TOPDIR)/src -name "*.properties")
20586
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    62
TARGET_PROP_FILES := $(patsubst $(JAXP_TOPDIR)/src/%, $(JAXP_OUTPUTDIR)/classes/%, $(SRC_PROP_FILES))
15154
408fa7cb0a4c 8005575: build-infra: Three JCK tests fails on Solaris with new RE Autoconf-Based build
erikj
parents: 14250
diff changeset
    63
20586
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    64
$(eval $(call SetupArchive,ARCHIVE_JAXP, $(BUILD_JAXP) $(TARGET_PROP_FILES), \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    65
    SRCS := $(JAXP_OUTPUTDIR)/classes, \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    66
    SUFFIXES := .class .properties, \
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    67
    JAR := $(JAXP_OUTPUTDIR)/dist/lib/classes.jar))
14250
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    68
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    69
all: $(JAXP_OUTPUTDIR)/dist/lib/classes.jar $(JAXP_OUTPUTDIR)/dist/lib/src.zip
d3604db57c7b 8000992: Update new build-infra makefiles
ohair
parents:
diff changeset
    70
20586
93084708a137 8001931: The new build system whitespace cleanup
ihse
parents: 15412
diff changeset
    71
.PHONY: default all