author | johnc |
Tue, 21 Aug 2012 10:05:57 -0700 | |
changeset 13481 | 4f6460af9ba2 |
parent 12905 | b91260f33470 |
child 13712 | 8ffefae0bc1c |
permissions | -rw-r--r-- |
12325
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
2 |
# Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
4 |
# |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
10 |
# |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
15 |
# accompanied this code). |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
16 |
# |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
20 |
# |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
23 |
# questions. |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
24 |
# |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
25 |
|
12905 | 26 |
# This must be the first rule |
27 |
default: all |
|
28 |
||
12325
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
29 |
-include $(SPEC) |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
30 |
include MakeBase.gmk |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
31 |
include JavaCompilation.gmk |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
32 |
|
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
33 |
JAVAC_JARS ?= "-Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar" \ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
34 |
-jar $(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
35 |
DISABLE_JAXP_WARNINGS:=-Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
36 |
|
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
37 |
# The generate new bytecode uses the new compiler for to generate bytecode |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
38 |
# for the new jdk that is being built. The code compiled by this setup |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
39 |
# cannot necessarily be run with the boot jdk. |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
40 |
$(eval $(call SetupJavaCompiler,GENERATE_NEWBYTECODE_DEBUG,\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
41 |
JVM:=$(JAVA),\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
42 |
JAVAC:=$(JAVAC_JARS),\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
43 |
FLAGS:=-Xprefer:source -XDignore.symbol.file=true $(DISABLE_JAXP_WARNINGS) -g,\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
44 |
SERVER_DIR:=$(JAVAC_SERVERS),\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
45 |
SERVER_JVM:=$(SERVER_JAVA),\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
46 |
MODE:=$(JAVAC_USE_MODE),\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
47 |
USE_DEPS:=$(JAVAC_USE_DEPS))) |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
48 |
|
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
49 |
$(eval $(call SetupJavaCompilation,BUILD_JAXP,\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
50 |
SETUP:=GENERATE_NEWBYTECODE_DEBUG,\ |
12484
106e8b1b0eb3
7165312: Fix jaxp source movement for new build-infra
ohair
parents:
12325
diff
changeset
|
51 |
SRC:=$(JAXP_TOPDIR)/src,\ |
12325
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
52 |
CLEAN:=.properties,\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
53 |
BIN:=$(JAXP_OUTPUTDIR)/classes,\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
54 |
SRCZIP:=$(JAXP_OUTPUTDIR)/dist/lib/src.zip)) |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
55 |
|
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
56 |
$(eval $(call SetupArchive,ARCHIVE_JAXP,$(BUILD_JAXP),\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
57 |
SRCS:=$(JAXP_OUTPUTDIR)/classes,\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
58 |
SUFFIXES:=.class .properties,\ |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
59 |
JAR:=$(JAXP_OUTPUTDIR)/dist/lib/classes.jar)) |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
60 |
|
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
61 |
all: $(JAXP_OUTPUTDIR)/dist/lib/classes.jar $(JAXP_OUTPUTDIR)/dist/lib/src.zip |
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
62 |
|
38c8fdc2bb80
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
63 |
.PHONY: default all |