jdk/make/CompileJavaClasses.gmk
author weijun
Mon, 11 Aug 2014 11:11:55 +0800
changeset 25974 850dc36ea410
parent 24699 3ca47cd995d3
permissions -rw-r--r--
6997010: Consolidate java.security files into one file with modifications Reviewed-by: mullan, erikj
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     1
#
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 22967
diff changeset
     2
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     4
#
9670c1610c53 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
9670c1610c53 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
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    10
#
9670c1610c53 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
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9670c1610c53 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
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    15
# accompanied this code).
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    16
#
9670c1610c53 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
9670c1610c53 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,
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    20
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9670c1610c53 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
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    23
# questions.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    24
#
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    25
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    26
default: all
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    27
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    28
include $(SPEC)
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    29
include MakeBase.gmk
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    30
include JavaCompilation.gmk
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    31
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    32
# Setup the java compilers for the JDK build.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    33
include Setup.gmk
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    34
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    35
JARS :=
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    36
EXFILES :=
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    37
EXCLUDES :=
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    38
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    39
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    40
24570
73964a8ec72d 8043958: Remove unused com.sun.pept classes from jdk repository
alanb
parents: 24271
diff changeset
    41
EXCLUDES += \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    42
    com/sun/tools/example/trace \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    43
    com/sun/tools/example/debug/bdi \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    44
    com/sun/tools/example/debug/event \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    45
    com/sun/tools/example/debug/gui
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    46
22937
f28798de1e6f 8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents: 22611
diff changeset
    47
ifeq ($(RMICONNECTOR_IIOP), false)
f28798de1e6f 8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents: 22611
diff changeset
    48
  EXCLUDES += com/sun/jmx/remote/protocol/iiop
f28798de1e6f 8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents: 22611
diff changeset
    49
endif
f28798de1e6f 8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents: 22611
diff changeset
    50
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    51
ifdef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    52
  EXCLUDES += sun/dc \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    53
      com/sun/jmx/snmp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    54
      sun/management/snmp \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    55
      com/sun/script
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    56
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    57
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    58
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    59
  # There exists two versions of this file...
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    60
  EXFILES := $(JDK_TOPDIR)/src/share/classes/javax/crypto/JarVerifier.java
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13586
diff changeset
    61
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    62
  ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    63
    # This gets built on unix platforms implicitly in the old build even though
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    64
    # it's excluded in the closed build.
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    65
    EXCLUDES += sun/java2d/pisces
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
    66
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    67
    # AccessBridge is compiled separately below.
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    68
    EXFILES += AccessBridge.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    69
        AccessBridgeLoader.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    70
        com/sun/java/accessibility/util/java/awt/ChoiceTranslator.java
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    71
    # This seems to never be built
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    72
    EXCLUDES += com/sun/java/accessibility/extensions
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    73
  endif
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13586
diff changeset
    74
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    75
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
    76
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    77
ifneq ($(OPENJDK_TARGET_OS), solaris)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    78
  # Exclude Solaris nio and two security related files in src/share/classes
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    79
  EXFILES += SolarisAclFileAttributeView.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    80
      SolarisFileStore.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    81
      SolarisFileSystem.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    82
      SolarisFileSystemProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    83
      SolarisNativeDispatcher.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    84
      SolarisUserDefinedFileAttributeView.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    85
      SolarisWatchService.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    86
      SolarisAclFileAttributeView.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    87
      sun/nio/ch/DevPollArrayWrapper.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    88
      sun/nio/ch/DevPollSelectorImpl.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    89
      sun/nio/ch/DevPollSelectorProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    90
      sun/nio/ch/EventPortSelectorImpl.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    91
      sun/nio/ch/EventPortSelectorProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    92
      sun/nio/ch/EventPortWrapper.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    93
      sun/nio/ch/SolarisAsynchronousChannelProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    94
      sun/nio/ch/SolarisEventPort.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    95
      sun/tools/attach/SolarisAttachProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    96
      sun/tools/attach/SolarisVirtualMachine.java
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 14708
diff changeset
    97
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
    98
  EXCLUDES += com/oracle/security
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
    99
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   100
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   101
ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   102
  # Don't build GTK L&F on Windows
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   103
  EXCLUDES += com/sun/java/swing/plaf/gtk
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   104
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   105
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   106
ifneq ($(OPENJDK_TARGET_OS), linux)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   107
  EXFILES += sun/tools/attach/LinuxAttachProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   108
      sun/tools/attach/LinuxVirtualMachine.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   109
      sun/nio/ch/EPoll.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   110
      sun/nio/ch/EPollArrayWrapper.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   111
      sun/nio/ch/EPollPort.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   112
      sun/nio/ch/EPollSelectorImpl.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   113
      sun/nio/ch/EPollSelectorProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   114
      sun/nio/ch/LinuxAsynchronousChannelProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   115
      sun/nio/fs/LinuxDosFileAttributeView.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   116
      sun/nio/fs/LinuxFileStore.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   117
      sun/nio/fs/LinuxFileSystem.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   118
      sun/nio/fs/LinuxFileSystemProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   119
      sun/nio/fs/MagicFileTypeDetector.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   120
      sun/nio/fs/LinuxNativeDispatcher.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   121
      sun/nio/fs/LinuxUserDefinedFileAttributeView.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   122
      sun/nio/fs/LinuxWatchService.java
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   123
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   124
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   125
ifneq ($(OPENJDK_TARGET_OS), macosx)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   126
  EXFILES += sun/nio/ch/BsdAsynchronousChannelProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   127
      sun/nio/ch/KQueue.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   128
      sun/nio/ch/KQueuePort.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   129
      sun/nio/fs/BsdFileStore.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   130
      sun/nio/fs/BsdFileSystem.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   131
      sun/nio/fs/BsdFileSystemProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   132
      sun/nio/fs/BsdNativeDispatcher.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   133
      sun/nio/fs/MacOSXFileSystemProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   134
      sun/nio/fs/MacOSXFileSystem.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   135
      sun/nio/fs/MacOSXNativeDispatcher.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   136
      sun/tools/attach/BsdAttachProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   137
      sun/tools/attach/BsdVirtualMachine.java
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   138
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   139
22593
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 17922
diff changeset
   140
ifneq ($(OPENJDK_TARGET_OS),aix)
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 17922
diff changeset
   141
    EXFILES+=sun/nio/ch/AixAsynchronousChannelProvider.java \
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 17922
diff changeset
   142
             sun/nio/ch/AixPollPort.java \
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 17922
diff changeset
   143
             sun/nio/fs/AixFileStore.java \
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 17922
diff changeset
   144
             sun/nio/fs/AixFileSystem.java \
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 17922
diff changeset
   145
             sun/nio/fs/AixFileSystemProvider.java \
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   146
             sun/nio/fs/AixNativeDispatcher.java \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   147
             sun/tools/attach/AixAttachProvider.java \
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   148
             sun/tools/attach/AixVirtualMachine.java
22593
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 17922
diff changeset
   149
endif
938340719ac2 8024900: PPC64: Enable new build on AIX (jdk part)
simonis
parents: 17922
diff changeset
   150
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   151
# Exclude BreakIterator classes that are just used in compile process to generate
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   152
# data files and shouldn't go in the product
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   153
EXFILES += sun/text/resources/BreakIteratorRules.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   154
    sun/text/resources/BreakIteratorRules_th.java
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   155
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   156
# TODO: Add BUILD_HEADLESS_ONLY to configure?
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   157
ifdef BUILD_HEADLESS_ONLY
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   158
  EXCLUDES += sun/applet
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   159
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   160
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   161
ifdef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   162
  EXCLUDES += sun/java2d/cmm/kcms
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   163
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   164
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   165
# Used on windows and macosx
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   166
ifeq (, $(filter $(OPENJDK_TARGET_OS), windows macosx))
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   167
  EXFILES += sun/awt/AWTCharset.java
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   168
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   169
21130
0f0b9c8f701a 8025673: [macosx] Disable X11 AWT toolkit
dholmes
parents: 21128
diff changeset
   170
ifeq ($(OPENJDK_TARGET_OS), macosx)
0f0b9c8f701a 8025673: [macosx] Disable X11 AWT toolkit
dholmes
parents: 21128
diff changeset
   171
  # exclude all X11 on Mac, we can't exclude some like below or we'll have compilation errors
0f0b9c8f701a 8025673: [macosx] Disable X11 AWT toolkit
dholmes
parents: 21128
diff changeset
   172
  EXCLUDES += sun/awt/X11
0f0b9c8f701a 8025673: [macosx] Disable X11 AWT toolkit
dholmes
parents: 21128
diff changeset
   173
else
0f0b9c8f701a 8025673: [macosx] Disable X11 AWT toolkit
dholmes
parents: 21128
diff changeset
   174
  # TBD: figure out how to eliminate this long list
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   175
  EXFILES += sun/awt/X11/ScreenFormat.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   176
      sun/awt/X11/XArc.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   177
      sun/awt/X11/XChar2b.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   178
      sun/awt/X11/XCharStruct.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   179
      sun/awt/X11/XClassHint.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   180
      sun/awt/X11/XComposeStatus.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   181
      sun/awt/X11/XExtCodes.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   182
      sun/awt/X11/XFontProp.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   183
      sun/awt/X11/XFontSetExtents.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   184
      sun/awt/X11/XFontStruct.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   185
      sun/awt/X11/XGCValues.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   186
      sun/awt/X11/XHostAddress.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   187
      sun/awt/X11/XIMCallback.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   188
      sun/awt/X11/XIMHotKeyTrigger.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   189
      sun/awt/X11/XIMHotKeyTriggers.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   190
      sun/awt/X11/XIMPreeditCaretCallbackStruct.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   191
      sun/awt/X11/XIMPreeditDrawCallbackStruct.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   192
      sun/awt/X11/XIMPreeditStateNotifyCallbackStruct.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   193
      sun/awt/X11/XIMStatusDrawCallbackStruct.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   194
      sun/awt/X11/XIMStringConversionCallbackStruct.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   195
      sun/awt/X11/XIMStringConversionText.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   196
      sun/awt/X11/XIMStyles.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   197
      sun/awt/X11/XIMText.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   198
      sun/awt/X11/XIMValuesList.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   199
      sun/awt/X11/XImage.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   200
      sun/awt/X11/XKeyboardControl.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   201
      sun/awt/X11/XKeyboardState.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   202
      sun/awt/X11/XOMCharSetList.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   203
      sun/awt/X11/XOMFontInfo.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   204
      sun/awt/X11/XOMOrientation.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   205
      sun/awt/X11/XPoint.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   206
      sun/awt/X11/XRectangle.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   207
      sun/awt/X11/XSegment.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   208
      sun/awt/X11/XStandardColormap.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   209
      sun/awt/X11/XTextItem.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   210
      sun/awt/X11/XTextItem16.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   211
      sun/awt/X11/XTextProperty.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   212
      sun/awt/X11/XTimeCoord.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   213
      sun/awt/X11/XWindowChanges.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   214
      sun/awt/X11/XdbeSwapInfo.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   215
      sun/awt/X11/XmbTextItem.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   216
      sun/awt/X11/XwcTextItem.java
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   217
endif
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   218
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   219
# Exclude another implicitly not included file.
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   220
EXFILES += sun/util/locale/AsciiUtil.java
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   221
22605
dba3d6b22818 8031581: PPC64: Addons and fixes for AIX to pass the jdk regression tests
simonis
parents: 22598
diff changeset
   222
ifeq (, $(filter $(OPENJDK_TARGET_OS), solaris macosx aix))
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   223
  #
22605
dba3d6b22818 8031581: PPC64: Addons and fixes for AIX to pass the jdk regression tests
simonis
parents: 22598
diff changeset
   224
  # only solaris, macosx and aix
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   225
  #
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   226
  EXFILES += sun/nio/fs/PollingWatchService.java
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   227
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   228
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12893
diff changeset
   229
ifeq ($(OPENJDK_TARGET_OS), windows)
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   230
  EXFILES += sun/nio/ch/AbstractPollSelectorImpl.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   231
      sun/nio/ch/PollSelectorProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   232
      sun/nio/ch/SimpleAsynchronousFileChannelImpl.java
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   233
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   234
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   235
# These files do not appear in the build result of the old build. This
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   236
# is because they are generated sources, but the AUTO_JAVA_FILES won't
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   237
# pick them up since they aren't generated when the source dirs are
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   238
# searched and they aren't referenced by any other classes so they won't
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   239
# be picked up by implicit compilation. On a rebuild, they are picked up
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   240
# and compiled. Exclude them here to produce the same rt.jar as the old
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   241
# build does when building just once.
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   242
EXFILES += javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   243
    javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   244
    javax/swing/plaf/nimbus/ScrollBarPainter.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   245
    javax/swing/plaf/nimbus/SliderPainter.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   246
    javax/swing/plaf/nimbus/SpinnerPainter.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   247
    javax/swing/plaf/nimbus/SplitPanePainter.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   248
    javax/swing/plaf/nimbus/TabbedPanePainter.java
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   249
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   250
# Acquire a list of files that should be copied straight over to the classes.
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   251
include CopyIntoClasses.gmk
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   252
# Now we have COPY_PATTERNS, COPY_FILES and COPY_EXTRA
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   253
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   254
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   255
  CLOSED_SRC_DIRS := $(JDK_TOPDIR)/src/closed/share/classes \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   256
      $(JDK_TOPDIR)/src/closed/$(OPENJDK_TARGET_OS_API_DIR)/classes
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   257
endif
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   258
23586
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   259
# No SCTP implementation on Mac OS X or AIX. These classes should be excluded.
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   260
SCTP_IMPL_CLASSES = \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   261
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/AssociationChange.java\
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   262
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/AssociationImpl.java \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   263
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/PeerAddrChange.java \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   264
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/ResultContainer.java \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   265
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpChannelImpl.java \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   266
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpMultiChannelImpl.java \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   267
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpNet.java \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   268
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpNotification.java \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   269
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SctpServerChannelImpl.java \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   270
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/SendFailed.java \
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   271
    $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/sctp/Shutdown.java
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   272
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   273
MACOSX_SRC_DIRS :=
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   274
ifeq ($(OPENJDK_TARGET_OS), macosx)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   275
  MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/classes
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   276
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   277
  # this files are duplicated in MACOSX_SRC_DIRS
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   278
  EXFILES += $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   279
      $(JDK_TOPDIR)/src/solaris/classes/sun/java2d/BackBufferCapsProvider.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   280
      $(JDK_TOPDIR)/src/solaris/classes/java/net/DefaultInterface.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   281
      $(JDK_TOPDIR)/src/solaris/classes/java/lang/ClassLoaderHelper.java \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   282
      $(JDK_TOPDIR)/src/solaris/classes/sun/util/locale/provider/HostLocaleProviderAdapterImpl.java \
20884
lana
parents: 20785 20551
diff changeset
   283
      $(JDK_TOPDIR)/src/solaris/classes/sun/nio/fs/GnomeFileTypeDetector.java \
23586
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   284
  EXFILES += $(SCTP_IMPL_CLASSES)
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12893
diff changeset
   285
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   286
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   287
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   288
# The security classes should not end up in the classes directory as that will prevent them
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   289
# from working when running the exploded jdk image. Compile them separately to a different
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   290
# directory from where the jars can be created.
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   291
SECURITY_PKGS := \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   292
    com/oracle/security/ucrypto \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   293
    com/sun/crypto/provider \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   294
    javax/crypto \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   295
    sun/security/ec \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   296
    sun/security/internal \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   297
    sun/security/mscapi \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   298
    sun/security/pkcs11 \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   299
    #
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   300
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   301
AIX_SRC_DIRS :=
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   302
ifeq ($(OPENJDK_TARGET_OS),aix)
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   303
     AIX_SRC_DIRS += $(JDK_TOPDIR)/src/aix/classes
22605
dba3d6b22818 8031581: PPC64: Addons and fixes for AIX to pass the jdk regression tests
simonis
parents: 22598
diff changeset
   304
dba3d6b22818 8031581: PPC64: Addons and fixes for AIX to pass the jdk regression tests
simonis
parents: 22598
diff changeset
   305
  # these files are duplicated in AIX_SRC_DIRS
23586
bb12b5f40a86 8038459: Remove superflous classes on platforms without an implementation [macosx, aix]
chegar
parents: 23331
diff changeset
   306
  EXFILES += $(SCTP_IMPL_CLASSES)
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   307
endif
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   308
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13586
diff changeset
   309
# The JDK_USER_DEFINED_FILTER is a poor man's incremental build: by specifying
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13586
diff changeset
   310
# JDK_FILTER at the make command line, only a subset of the JDK java files will
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13586
diff changeset
   311
# be recompiled. If multiple paths are separated by comma, convert that into a
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13586
diff changeset
   312
# space separated list.
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   313
JDK_USER_DEFINED_FILTER := $(strip $(subst $(COMMA),$(SPACE), $(JDK_FILTER)))
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13586
diff changeset
   314
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   315
ifeq ($(ENABLE_SJAVAC),yes)
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   316
  # With sjavac enabled, excluded sources are not even considered for linking. 
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   317
  # Explicitly add the security sources to sourcepath for linking.
24040
314ab00b353c 8037085: The sjavac exclude option should accept valid directory identifiers
alundblad
parents: 23586
diff changeset
   318
  BUILD_JDK_SOURCEPATH:=$(patsubst %,-i$(SPACE)%/*,$(SECURITY_PKGS)) \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   319
      -sourcepath $(JDK_TOPDIR)/src/share/classes
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   320
endif
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   321
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   322
$(eval $(call SetupJavaCompilation,BUILD_JDK,\
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   323
    SETUP:=GENERATE_JDKBYTECODE,\
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   324
    SRC:=$(JDK_TOPDIR)/src/share/classes \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   325
        $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   326
        $(MACOSX_SRC_DIRS) \
22595
aaa6b141196c 8028066: PPC64: 8025715 changes broke AIX build after sync
simonis
parents: 22594
diff changeset
   327
        $(AIX_SRC_DIRS) \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   328
        $(JDK_OUTPUTDIR)/gensrc \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   329
        $(JDK_OUTPUTDIR)/gensrc_no_srczip \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   330
        $(CLOSED_SRC_DIRS),\
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   331
    INCLUDES:=$(JDK_USER_DEFINED_FILTER),\
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   332
    EXCLUDES:=$(EXCLUDES) $(SECURITY_PKGS),\
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   333
    EXCLUDE_FILES:=$(EXFILES),\
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   334
    BIN:=$(JDK_OUTPUTDIR)/classes,\
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   335
    COPY:=$(COPY_PATTERNS),\
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   336
    COPY_FILES:=$(COPY_FILES),\
23236
7c5997f59e20 8036611: Cleanup of handling of properties and other java resources in the build
erikj
parents: 23010
diff changeset
   337
    CLEAN_FILES:=$(CLEAN_FILES),\
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   338
    HEADERS:=$(JDK_OUTPUTDIR)/gensrc_headers,\
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   339
    ADD_JAVAC_FLAGS:=$(BUILD_JDK_SOURCEPATH)))
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   340
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   341
##########################################################################################
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   342
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   343
$(eval $(call SetupJavaCompilation,BUILD_SECURITY, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   344
    SETUP := GENERATE_JDKBYTECODE, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   345
    SRC := $(JDK_TOPDIR)/src/share/classes \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   346
        $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   347
        $(MACOSX_SRC_DIRS) \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   348
        $(CLOSED_SRC_DIRS), \
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   349
    INCLUDES := $(SECURITY_PKGS), \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   350
    EXCLUDES := $(EXCLUDES), \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   351
    EXCLUDE_FILES := $(EXFILES), \
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   352
    BIN := $(JDK_OUTPUTDIR)/classes_security, \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   353
    HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers))
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   354
21128
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   355
$(BUILD_SECURITY): $(BUILD_JDK)
2a7460bba7a5 8009280: JCE jurisdiction policy files not copied into jdk/lib/security
erikj
parents: 20884
diff changeset
   356
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   357
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   358
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   359
$(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin:
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   360
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   361
	$(TOUCH) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   362
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   363
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents: 12317
diff changeset
   364
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12893
diff changeset
   365
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12893
diff changeset
   366
##########################################################################################
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12893
diff changeset
   367
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   368
ifndef OPENJDK
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   369
  ifeq ($(OPENJDK_TARGET_OS), windows)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   370
    ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   371
      $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_32, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   372
          SETUP := GENERATE_JDKBYTECODE, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   373
          JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   374
          SRC := $(JDK_OUTPUTDIR)/gensrc_ab/32bit, \
23244
e1de5002b069 8029045: Regression - Unsatisfied Link Error when the Java Access Bridge is started
serb
parents: 21805
diff changeset
   375
          BIN := $(JDK_OUTPUTDIR)/classes_ab/32bit, \
24699
3ca47cd995d3 8043160: JDK 9 Build failure in accessbridge
erikj
parents: 24570
diff changeset
   376
          HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers_ab/32))
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   377
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   378
      $(BUILD_ACCESSBRIDGE_32): $(BUILD_JDK)
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   379
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   380
      $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_LEGACY, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   381
          SETUP := GENERATE_JDKBYTECODE, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   382
          JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   383
          SRC := $(JDK_OUTPUTDIR)/gensrc_ab/legacy, \
23244
e1de5002b069 8029045: Regression - Unsatisfied Link Error when the Java Access Bridge is started
serb
parents: 21805
diff changeset
   384
          BIN := $(JDK_OUTPUTDIR)/classes_ab/legacy, \
24699
3ca47cd995d3 8043160: JDK 9 Build failure in accessbridge
erikj
parents: 24570
diff changeset
   385
          HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers_ab/legacy))
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   386
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   387
      $(BUILD_ACCESSBRIDGE_LEGACY): $(BUILD_JDK)
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   388
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   389
    else
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   390
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   391
      $(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_64, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   392
          SETUP := GENERATE_JDKBYTECODE, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   393
          JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes, \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   394
          SRC := $(JDK_OUTPUTDIR)/gensrc_ab/64bit, \
23244
e1de5002b069 8029045: Regression - Unsatisfied Link Error when the Java Access Bridge is started
serb
parents: 21805
diff changeset
   395
          BIN := $(JDK_OUTPUTDIR)/classes_ab/64bit, \
24699
3ca47cd995d3 8043160: JDK 9 Build failure in accessbridge
erikj
parents: 24570
diff changeset
   396
          HEADERS := $(JDK_OUTPUTDIR)/gensrc_headers_ab/64))
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   397
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   398
      $(BUILD_ACCESSBRIDGE_64): $(BUILD_JDK)
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   399
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   400
    endif
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   401
  endif
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   402
endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   403
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   404
##########################################################################################
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14708
diff changeset
   405
22611
4dd8f4f14e2c 8033111: Clean up left-over JObjC code in build system
ihse
parents: 22607
diff changeset
   406
all: $(BUILD_JDK) $(BUILD_SECURITY) $(COPY_EXTRA) \
20547
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   407
    $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   408
    $(BUILD_ACCESSBRIDGE_32) $(BUILD_ACCESSBRIDGE_64) \
453837141fac 8001931: The new build system whitespace cleanup
ihse
parents: 20102
diff changeset
   409
    $(BUILD_ACCESSBRIDGE_LEGACY)
12317
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   410
9670c1610c53 7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff changeset
   411
.PHONY: all