jdk/make/java/nio/Makefile
author michaelm
Tue, 06 Mar 2012 20:34:38 +0000
changeset 12047 320a714614e9
parent 12044 d826961f7d42
child 12872 16fa902b1469
permissions -rw-r--r--
7113349: Initial changeset for Macosx port to jdk Reviewed-by: jjh, alanb, dholmes, anthony, ohrstrom, ksrini, jrose, weijun, smarks Contributed-by: Alan Bateman <alan.bateman@oracle.com>, Alexander Potochkin <alexander.potochkin@oracle.com>, Alexander Zuev <alexander.zuev@oracle.com>, Andrew Brygin <andrew.brygin@oracle.com>, Artem Ananiev <artem.ananiev@oracle.com>, Alex Strange <astrange@apple.com>, Bino George <bino@apple.com>, Christine Lu <christine.lu@oracle.com>, David Katleman <david.katleman@oracle.com>, David Durrence <david_durrence@apple.com>, Dmitry Cherepanov <dmitry.cherepanov@oracle.com>, Greg Lewis <glewis@eyesbeyond.com>, Kevin Miller <kevin_m_miller@apple.com>, Kurt Miller <kurt@intricatesoftware.com>, Landon Fuller <landonf@plausiblelabs.com>, Leonid Romanov <leonid.romanov@oracle.com>, Loefty Walkowiak <loefty@apple.com>, Mark Reinhold <mark.reinhold@oracle.com>, Naoto Sato <naoto.sato@oracle.com>, Philip Race <philip.race@oracle.com>, Roger Hoover <rhoover@apple.com>, Scott Kovatch <scott.kovatch@oracle.com>, Sergey ByloKhov <sergey.bylokhov@oracle.com>, Mike Swingler <swingler@apple.com>, Tomas Hurka <tomas.hurka@oracle.com>
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
8796
604a43386301 7027910: Add basic cross-compilation support and add ARM/PPC to the known architectures in the open code
dholmes
parents: 8583
diff changeset
     2
# Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4917
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
# Makefile for java.nio
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
BUILDDIR = ../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
PACKAGE = java.nio
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
LIBRARY = nio
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
PRODUCT = java
10137
d92637d3d673 7068616: NIO libraries do not build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 10074
diff changeset
    34
JAVAC_MAX_WARNINGS = true
d92637d3d673 7068616: NIO libraries do not build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 10074
diff changeset
    35
JAVAC_WARNINGS_FATAL = true
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
NIO_SRC = $(SHARE_SRC)/classes/java/nio
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
NIO_GEN = $(GENSRCDIR)/java/nio
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
SNIO_SRC = $(SHARE_SRC)/classes/sun/nio
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
SNIO_GEN = $(GENSRCDIR)/sun/nio
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
# Files to compile
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
include FILES_java.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
include FILES_c.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
include Exportedfiles.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
FILES_java += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
        sun/nio/ch/AbstractPollSelectorImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
	sun/nio/ch/DevPollArrayWrapper.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
	sun/nio/ch/DevPollSelectorImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
        sun/nio/ch/DevPollSelectorProvider.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
	sun/nio/ch/InheritedChannel.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
        sun/nio/ch/PollSelectorProvider.java \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    60
        sun/nio/ch/PollSelectorImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    61
	sun/nio/ch/Port.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    62
	sun/nio/ch/SimpleAsynchronousFileChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    63
	sun/nio/ch/SolarisAsynchronousChannelProvider.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    64
	sun/nio/ch/SolarisEventPort.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    65
	sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    66
	sun/nio/ch/UnixAsynchronousSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    67
	\
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    68
	sun/nio/fs/GnomeFileTypeDetector.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    69
	sun/nio/fs/PollingWatchService.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    70
	sun/nio/fs/SolarisAclFileAttributeView.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    71
	sun/nio/fs/SolarisFileStore.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    72
	sun/nio/fs/SolarisFileSystem.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    73
	sun/nio/fs/SolarisFileSystemProvider.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    74
	sun/nio/fs/SolarisUserDefinedFileAttributeView.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    75
	sun/nio/fs/SolarisNativeDispatcher.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    76
	sun/nio/fs/SolarisWatchService.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    77
	sun/nio/fs/UnixChannelFactory.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    78
	sun/nio/fs/UnixCopyFile.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    79
	sun/nio/fs/UnixDirectoryStream.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    80
	sun/nio/fs/UnixException.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    81
	sun/nio/fs/UnixFileAttributeViews.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    82
	sun/nio/fs/UnixFileAttributes.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    83
	sun/nio/fs/UnixFileKey.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    84
	sun/nio/fs/UnixFileModeAttribute.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    85
	sun/nio/fs/UnixFileStore.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    86
	sun/nio/fs/UnixFileStoreAttributes.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    87
	sun/nio/fs/UnixFileSystem.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    88
	sun/nio/fs/UnixFileSystemProvider.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    89
	sun/nio/fs/UnixMountEntry.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    90
	sun/nio/fs/UnixNativeDispatcher.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    91
	sun/nio/fs/UnixPath.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    92
	sun/nio/fs/UnixSecureDirectoryStream.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    93
	sun/nio/fs/UnixUriUtils.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
    94
	sun/nio/fs/UnixUserPrincipals.java
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
FILES_c += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
        DevPollArrayWrapper.c \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
	InheritedChannel.c \
1152
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
    99
	NativeThread.c \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   100
        PollArrayWrapper.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   101
	SolarisEventPort.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   102
	UnixAsynchronousServerSocketChannelImpl.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   103
	UnixAsynchronousSocketChannelImpl.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   104
	\
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   105
	GnomeFileTypeDetector.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   106
	SolarisNativeDispatcher.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   107
	SolarisWatchService.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   108
	UnixCopyFile.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   109
	UnixNativeDispatcher.c
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
FILES_export += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
	sun/nio/ch/DevPollArrayWrapper.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
	sun/nio/ch/InheritedChannel.java \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   114
	sun/nio/ch/NativeThread.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   115
	sun/nio/ch/SolarisEventPort.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   116
	sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   117
	sun/nio/ch/UnixAsynchronousSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   118
	\
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   119
	sun/nio/fs/GnomeFileTypeDetector.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   120
	sun/nio/fs/SolarisNativeDispatcher.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   121
	sun/nio/fs/SolarisWatchService.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   122
	sun/nio/fs/UnixCopyFile.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   123
	sun/nio/fs/UnixNativeDispatcher.java
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   124
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   125
FILES_gen += \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   126
	sun/nio/fs/SolarisConstants.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   127
	sun/nio/fs/UnixConstants.java
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
endif # PLATFORM = solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
FILES_java += \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   132
	sun/nio/ch/Iocp.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   133
	sun/nio/ch/PendingIoCache.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   134
	sun/nio/ch/WindowsAsynchronousChannelProvider.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   135
	sun/nio/ch/WindowsAsynchronousFileChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   136
	sun/nio/ch/WindowsAsynchronousServerSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   137
	sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
        sun/nio/ch/WindowsSelectorImpl.java \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   139
        sun/nio/ch/WindowsSelectorProvider.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   140
	\
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   141
	sun/nio/fs/RegistryFileTypeDetector.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   142
	sun/nio/fs/WindowsAclFileAttributeView.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   143
	sun/nio/fs/WindowsChannelFactory.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   144
	sun/nio/fs/WindowsConstants.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   145
	sun/nio/fs/WindowsDirectoryStream.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   146
	sun/nio/fs/WindowsException.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   147
	sun/nio/fs/WindowsFileAttributeViews.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   148
	sun/nio/fs/WindowsFileAttributes.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   149
	sun/nio/fs/WindowsFileCopy.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   150
	sun/nio/fs/WindowsFileStore.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   151
	sun/nio/fs/WindowsFileSystem.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   152
	sun/nio/fs/WindowsFileSystemProvider.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   153
	sun/nio/fs/WindowsLinkSupport.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   154
	sun/nio/fs/WindowsUserDefinedFileAttributeView.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   155
	sun/nio/fs/WindowsNativeDispatcher.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   156
	sun/nio/fs/WindowsPath.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   157
	sun/nio/fs/WindowsPathParser.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   158
	sun/nio/fs/WindowsPathType.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   159
	sun/nio/fs/WindowsSecurity.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   160
	sun/nio/fs/WindowsSecurityDescriptor.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   161
	sun/nio/fs/WindowsUriSupport.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   162
	sun/nio/fs/WindowsUserPrincipals.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   163
	sun/nio/fs/WindowsWatchService.java
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
FILES_c += \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   166
	Iocp.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   167
	RegistryFileTypeDetector.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   168
	WindowsAsynchronousFileChannelImpl.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   169
	WindowsAsynchronousServerSocketChannelImpl.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   170
	WindowsAsynchronousSocketChannelImpl.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   171
	WindowsNativeDispatcher.c \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        WindowsSelectorImpl.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
FILES_export += \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   175
	sun/nio/ch/Iocp.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   176
	sun/nio/ch/WindowsAsynchronousFileChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   177
	sun/nio/ch/WindowsAsynchronousServerSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   178
	sun/nio/ch/WindowsAsynchronousSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   179
	sun/nio/ch/WindowsSelectorImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   180
	sun/nio/fs/WindowsNativeDispatcher.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   181
	sun/nio/fs/RegistryFileTypeDetector.java
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
endif # PLATFORM = windows
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
FILES_java += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
        sun/nio/ch/AbstractPollSelectorImpl.java \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   187
	sun/nio/ch/EPoll.java \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
	sun/nio/ch/EPollArrayWrapper.java \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   189
	sun/nio/ch/EPollPort.java \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
	sun/nio/ch/EPollSelectorProvider.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
	sun/nio/ch/EPollSelectorImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
	sun/nio/ch/InheritedChannel.java \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   193
	sun/nio/ch/LinuxAsynchronousChannelProvider.java \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
        sun/nio/ch/PollSelectorProvider.java \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   195
        sun/nio/ch/PollSelectorImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   196
	sun/nio/ch/Port.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   197
	sun/nio/ch/SimpleAsynchronousFileChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   198
	sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   199
	sun/nio/ch/UnixAsynchronousSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   200
	\
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   201
	sun/nio/fs/GnomeFileTypeDetector.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   202
	sun/nio/fs/LinuxDosFileAttributeView.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   203
	sun/nio/fs/LinuxFileStore.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   204
	sun/nio/fs/LinuxFileSystem.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   205
	sun/nio/fs/LinuxFileSystemProvider.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   206
	sun/nio/fs/LinuxUserDefinedFileAttributeView.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   207
	sun/nio/fs/LinuxNativeDispatcher.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   208
	sun/nio/fs/LinuxWatchService.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   209
	sun/nio/fs/UnixChannelFactory.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   210
	sun/nio/fs/UnixCopyFile.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   211
	sun/nio/fs/UnixDirectoryStream.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   212
	sun/nio/fs/UnixException.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   213
	sun/nio/fs/UnixFileAttributeViews.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   214
	sun/nio/fs/UnixFileAttributes.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   215
	sun/nio/fs/UnixFileKey.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   216
	sun/nio/fs/UnixFileModeAttribute.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   217
	sun/nio/fs/UnixFileStore.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   218
	sun/nio/fs/UnixFileStoreAttributes.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   219
	sun/nio/fs/UnixFileSystem.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   220
	sun/nio/fs/UnixFileSystemProvider.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   221
	sun/nio/fs/UnixMountEntry.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   222
	sun/nio/fs/UnixNativeDispatcher.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   223
	sun/nio/fs/UnixPath.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   224
	sun/nio/fs/UnixSecureDirectoryStream.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   225
	sun/nio/fs/UnixUriUtils.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   226
	sun/nio/fs/UnixUserPrincipals.java
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
FILES_c += \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   229
	EPoll.c \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
	EPollArrayWrapper.c \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   231
	EPollPort.c \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
	InheritedChannel.c \
1152
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   233
	NativeThread.c \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   234
        PollArrayWrapper.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   235
	UnixAsynchronousServerSocketChannelImpl.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   236
	UnixAsynchronousSocketChannelImpl.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   237
	\
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   238
	GnomeFileTypeDetector.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   239
	LinuxNativeDispatcher.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   240
	LinuxWatchService.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   241
	UnixCopyFile.c \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   242
	UnixNativeDispatcher.c
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
FILES_export += \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   245
	sun/nio/ch/EPoll.java \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
        sun/nio/ch/EPollArrayWrapper.java \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   247
	sun/nio/ch/EPollPort.java \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
	sun/nio/ch/InheritedChannel.java \
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   249
	sun/nio/ch/NativeThread.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   250
	sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   251
	sun/nio/ch/UnixAsynchronousSocketChannelImpl.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   252
	\
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   253
	sun/nio/fs/GnomeFileTypeDetector.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   254
	sun/nio/fs/LinuxNativeDispatcher.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   255
	sun/nio/fs/LinuxWatchService.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   256
	sun/nio/fs/UnixCopyFile.java \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   257
	sun/nio/fs/UnixNativeDispatcher.java
10074
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   258
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   259
FILES_gen += \
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   260
	sun/nio/fs/UnixConstants.java
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
endif # PLATFORM = linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   263
ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   264
FILES_java += \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   265
        sun/nio/ch/AbstractPollSelectorImpl.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   266
	sun/nio/ch/BsdAsynchronousChannelProvider.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   267
	sun/nio/ch/InheritedChannel.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   268
	sun/nio/ch/KQueue.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   269
	sun/nio/ch/KQueuePort.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   270
        sun/nio/ch/PollSelectorProvider.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   271
        sun/nio/ch/PollSelectorImpl.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   272
	sun/nio/ch/Port.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   273
	sun/nio/ch/SimpleAsynchronousFileChannelImpl.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   274
	sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   275
	sun/nio/ch/UnixAsynchronousSocketChannelImpl.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   276
	\
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   277
	sun/nio/fs/GnomeFileTypeDetector.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   278
	sun/nio/fs/BsdFileStore.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   279
	sun/nio/fs/BsdFileSystem.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   280
	sun/nio/fs/BsdFileSystemProvider.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   281
	sun/nio/fs/BsdNativeDispatcher.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   282
	sun/nio/fs/PollingWatchService.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   283
	sun/nio/fs/UnixChannelFactory.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   284
	sun/nio/fs/UnixCopyFile.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   285
	sun/nio/fs/UnixDirectoryStream.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   286
	sun/nio/fs/UnixException.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   287
	sun/nio/fs/UnixFileAttributeViews.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   288
	sun/nio/fs/UnixFileAttributes.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   289
	sun/nio/fs/UnixFileKey.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   290
	sun/nio/fs/UnixFileModeAttribute.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   291
	sun/nio/fs/UnixFileStore.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   292
	sun/nio/fs/UnixFileStoreAttributes.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   293
	sun/nio/fs/UnixFileSystem.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   294
	sun/nio/fs/UnixFileSystemProvider.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   295
	sun/nio/fs/UnixMountEntry.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   296
	sun/nio/fs/UnixNativeDispatcher.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   297
	sun/nio/fs/UnixPath.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   298
	sun/nio/fs/UnixSecureDirectoryStream.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   299
	sun/nio/fs/UnixUriUtils.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   300
	sun/nio/fs/UnixUserPrincipals.java
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   301
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   302
FILES_c += \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   303
	InheritedChannel.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   304
	NativeThread.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   305
        PollArrayWrapper.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   306
	UnixAsynchronousServerSocketChannelImpl.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   307
	UnixAsynchronousSocketChannelImpl.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   308
	\
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   309
	GnomeFileTypeDetector.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   310
	BsdNativeDispatcher.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   311
	UnixCopyFile.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   312
	UnixNativeDispatcher.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   313
	\
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   314
	KQueue.c \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   315
	KQueuePort.c
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   316
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   317
FILES_export += \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   318
	sun/nio/ch/InheritedChannel.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   319
	sun/nio/ch/KQueue.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   320
	sun/nio/ch/KQueuePort.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   321
	sun/nio/ch/NativeThread.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   322
	sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   323
	sun/nio/ch/UnixAsynchronousSocketChannelImpl.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   324
	\
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   325
	sun/nio/fs/GnomeFileTypeDetector.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   326
	sun/nio/fs/BsdNativeDispatcher.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   327
	sun/nio/fs/UnixCopyFile.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   328
	sun/nio/fs/UnixNativeDispatcher.java
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   329
	
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   330
FILES_gen += \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   331
	sun/nio/fs/UnixConstants.java
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   332
endif # PLATFORM = bsd, macosx
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   333
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   334
ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   335
FILES_java += \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   336
    sun/nio/ch/KQueueSelectorProvider.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   337
    sun/nio/ch/KQueueSelectorImpl.java \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   338
    sun/nio/ch/KQueueArrayWrapper.java
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   339
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   340
FILES_c += \
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   341
    KQueueArrayWrapper.c
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   342
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   343
vpath %.c $(call NativeSrcDirList,,native/sun/nio/fs)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   344
vpath %.c $(call NativeSrcDirList,,native/sun/nio/ch)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   345
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   346
else
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   347
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   348
#
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
# Find platform-specific C source files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
#
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   351
vpath %.c $(PLATFORM_SRC)/native/sun/nio/fs
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
vpath %.c $(PLATFORM_SRC)/native/sun/nio/ch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
vpath %.c $(SHARE_SRC)/native/sun/nio/ch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   355
endif # PLATFORM = macosx
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   356
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
# Various variables
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
JAVALIB = 		# Don't self-link
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
# Access to io_util.c and net_util.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
OTHER_INCLUDES += \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
  -I$(SHARE_SRC)/native/sun/nio/ch \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
  -I$(SHARE_SRC)/native/java/io \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
  -I$(SHARE_SRC)/native/java/net \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
  -I$(PLATFORM_SRC)/native/java/net \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
  -I$(CLASSHDRDIR)/../../../java.lang/java/CClassHeaders
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
ifeq ($(PLATFORM),windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
  OTHER_LDLIBS += $(JVMLIB) ws2_32.lib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
     -libpath:$(LIBDIR) java.lib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
     $(OBJDIR)/../../../../sun/java.net/net/$(OBJDIRNAME)/net.lib \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
     $(OBJDIR)/../../../java.lang/java/$(OBJDIRNAME)/io_util.obj \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
     $(OBJDIR)/../../../java.lang/java/$(OBJDIRNAME)/FileDescriptor_md.obj
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
ifeq ($(PLATFORM), linux)
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   382
OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread $(LIBDL)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   383
endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   384
ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   385
OTHER_LDLIBS += -L$(LIBDIR) -ljava -lnet -pthread
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
ifeq ($(PLATFORM), solaris)
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   388
OTHER_LDLIBS += $(JVMLIB) $(LIBSOCKET) -lposix4 $(LIBDL) -lsendfile \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
		-L$(LIBDIR)/$(LIBARCH) -ljava -lnet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
endif # PLATFORM
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
# Rules
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
build: sources
90ce3da70b43 Initial load
duke
parents:
diff changeset
   397
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
clean clobber::
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
	$(RM) -r $(NIO_GEN) $(SNIO_GEN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
	$(RM) -r $(CLASSDESTDIR)/java/nio
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
	$(RM) -r $(CLASSDESTDIR)/sun/nio
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
ifeq ($(PLATFORM), solaris)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
FILES_m = mapfile-solaris
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
FILES_m = mapfile-linux
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
endif
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   409
ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   410
FILES_m = mapfile-bsd
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   411
endif
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
include $(BUILDDIR)/common/Mapfile-vers.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
include $(BUILDDIR)/common/Library.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
# Generate source files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
898
1c4e95595472 6681798: (build) CharsetEncoder.java fails to compile in openjdk6 on ubutu 8.04
sherman
parents: 715
diff changeset
   419
SPP_JARFILE = $(BUILDTOOLJARDIR)/spp.jar
1c4e95595472 6681798: (build) CharsetEncoder.java fails to compile in openjdk6 on ubutu 8.04
sherman
parents: 715
diff changeset
   420
SPP_CMD = $(BOOT_JAVA_CMD) -jar $(SPP_JARFILE)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
FILES_genout = $(FILES_gen:%.java=$(GENSRCDIR)/%.java)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
BUF_SRC=$(NIO_SRC)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
CH_SRC=$(NIO_SRC)/channels
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
CS_SRC=$(NIO_SRC)/charset
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
SCH_SRC=$(SNIO_SRC)/ch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
SCS_SRC=$(SNIO_SRC)/cs
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   429
SFS_SRC=$(SNIO_SRC)/fs
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   431
# Template files
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   432
HEAP_X_BUF_TEMPLATE=$(BUF_SRC)/Heap-X-Buffer.java.template
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   433
BYTE_X_BUF_TEMPLATE=$(BUF_SRC)/ByteBufferAs-X-Buffer.java.template
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   434
X_BUF_TEMPLATE=$(BUF_SRC)/X-Buffer.java.template
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   435
X_BUF_BIN_TEMPLATE=$(BUF_SRC)/X-Buffer-bin.java.template
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   436
DIRECT_X_BUF_TEMPLATE=$(BUF_SRC)/Direct-X-Buffer.java.template
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   437
DIRECT_X_BUF_BIN_TEMPLATE=$(BUF_SRC)/Direct-X-Buffer-bin.java.template
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   438
CHARSET_X_CODER_TEMPLATE=$(CS_SRC)/Charset-X-Coder.java.template
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   439
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
BUF_GEN=$(NIO_GEN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
CH_GEN=$(NIO_GEN)/channels
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
CS_GEN=$(NIO_GEN)/charset
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
SCH_GEN=$(SNIO_GEN)/ch
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
SCS_GEN=$(SNIO_GEN)/cs
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   445
SFS_GEN=$(SNIO_GEN)/fs
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
1713
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   447
FILES_gensbcs_out = $(FILES_gen_sbcs:%.java=$(GENSRCDIR)/%.java)
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   448
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   449
sources: $(SPP_JARFILE) $(FILES_genout) $(FILES_gensbcs_out)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
# Generated buffer classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
GEN_BUFFER_SH = genBuffer.sh
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
530
dbf0077bad01 6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents: 29
diff changeset
   457
GEN_BUFFER_CMD = SPP="$(SPP_CMD)" NAWK="$(NAWK)" SED="$(SED)" SH="$(SH)" \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
                 $(SH) $(GEN_BUFFER_SH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
# Public abstract buffer classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
#
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   462
$(BUF_GEN)/ByteBuffer.java: $(X_BUF_TEMPLATE) \
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   463
			    $(X_BUF_BIN_TEMPLATE) \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
			    $(GEN_BUFFER_SH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
	TYPE=byte BIN=1 SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   469
$(BUF_GEN)/CharBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
	TYPE=char SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   474
$(BUF_GEN)/ShortBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
	TYPE=short SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   479
$(BUF_GEN)/IntBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
	TYPE=int SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   484
$(BUF_GEN)/LongBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
	TYPE=long SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   489
$(BUF_GEN)/FloatBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
	TYPE=float SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   494
$(BUF_GEN)/DoubleBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
	TYPE=double SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
# Buffers whose contents are heap-allocated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
# 
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   502
$(BUF_GEN)/HeapByteBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
	TYPE=byte SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   507
$(BUF_GEN)/HeapByteBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
	TYPE=byte RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   512
$(BUF_GEN)/HeapCharBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
	TYPE=char SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   517
$(BUF_GEN)/HeapCharBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
	TYPE=char RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   522
$(BUF_GEN)/HeapShortBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
	TYPE=short SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   527
$(BUF_GEN)/HeapShortBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
	TYPE=short RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   531
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   532
$(BUF_GEN)/HeapIntBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
	TYPE=int SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   537
$(BUF_GEN)/HeapIntBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
	TYPE=int RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   542
$(BUF_GEN)/HeapLongBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
	TYPE=long SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   547
$(BUF_GEN)/HeapLongBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
	TYPE=long RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   552
$(BUF_GEN)/HeapFloatBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
	TYPE=float SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   557
$(BUF_GEN)/HeapFloatBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
	TYPE=float RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   562
$(BUF_GEN)/HeapDoubleBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
	TYPE=double SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   567
$(BUF_GEN)/HeapDoubleBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
	TYPE=double RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
# Direct byte buffer
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
# 
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   575
$(BUF_GEN)/DirectByteBuffer.java: $(DIRECT_X_BUF_TEMPLATE) \
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   576
				  $(DIRECT_X_BUF_TEMPLATE) \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
				  $(GEN_BUFFER_SH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
	TYPE=byte BIN=1 SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   582
$(BUF_GEN)/DirectByteBuffer%.java: $(DIRECT_X_BUF_TEMPLATE) \
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   583
				   $(DIRECT_X_BUF_TEMPLATE) \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
				   $(GEN_BUFFER_SH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
	TYPE=byte RW=$* BIN=1 SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   589
90ce3da70b43 Initial load
duke
parents:
diff changeset
   590
# Unswapped views of direct byte buffers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   591
#
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   592
$(BUF_GEN)/DirectCharBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   593
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
	TYPE=char BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   596
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   597
$(BUF_GEN)/DirectCharBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   598
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   599
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   600
	TYPE=char RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   602
$(BUF_GEN)/DirectShortBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
	TYPE=short BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   607
$(BUF_GEN)/DirectShortBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
	TYPE=short RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   612
$(BUF_GEN)/DirectIntBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
	TYPE=int BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   617
$(BUF_GEN)/DirectIntBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
	TYPE=int RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   622
$(BUF_GEN)/DirectLongBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
	TYPE=long BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   627
$(BUF_GEN)/DirectLongBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
	TYPE=long RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   631
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   632
$(BUF_GEN)/DirectFloatBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   633
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   634
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   635
	TYPE=float BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   637
$(BUF_GEN)/DirectFloatBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
	TYPE=float RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   642
$(BUF_GEN)/DirectDoubleBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
	TYPE=double BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   647
$(BUF_GEN)/DirectDoubleBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
	TYPE=double RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
# Swapped views of direct byte buffers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
#
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   655
$(BUF_GEN)/DirectCharBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
	TYPE=char BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   660
$(BUF_GEN)/DirectCharBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
	TYPE=char RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   665
$(BUF_GEN)/DirectShortBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
	TYPE=short BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   670
$(BUF_GEN)/DirectShortBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
	TYPE=short RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   675
$(BUF_GEN)/DirectIntBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
	TYPE=int BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   680
$(BUF_GEN)/DirectIntBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
	TYPE=int RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   685
$(BUF_GEN)/DirectLongBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
	TYPE=long BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   690
$(BUF_GEN)/DirectLongBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
	TYPE=long RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   695
$(BUF_GEN)/DirectFloatBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
	TYPE=float BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   700
$(BUF_GEN)/DirectFloatBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
	TYPE=float RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   705
$(BUF_GEN)/DirectDoubleBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
	TYPE=double BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   710
$(BUF_GEN)/DirectDoubleBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
	TYPE=double RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
# Big-endian views of byte buffers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
#
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   718
$(BUF_GEN)/ByteBufferAsCharBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
	TYPE=char BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   723
$(BUF_GEN)/ByteBufferAsCharBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
	TYPE=char RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   728
$(BUF_GEN)/ByteBufferAsShortBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
	TYPE=short BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   733
$(BUF_GEN)/ByteBufferAsShortBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
	TYPE=short RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   738
$(BUF_GEN)/ByteBufferAsIntBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
	TYPE=int BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   743
$(BUF_GEN)/ByteBufferAsIntBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
	TYPE=int RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   748
$(BUF_GEN)/ByteBufferAsLongBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
	TYPE=long BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   753
$(BUF_GEN)/ByteBufferAsLongBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
	TYPE=long RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   758
$(BUF_GEN)/ByteBufferAsFloatBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
	TYPE=float BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   763
$(BUF_GEN)/ByteBufferAsFloatBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
	TYPE=float RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   768
$(BUF_GEN)/ByteBufferAsDoubleBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
	TYPE=double BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   773
$(BUF_GEN)/ByteBufferAsDoubleBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
	TYPE=double RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
# Little-endian views of byte buffers
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
#
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   781
$(BUF_GEN)/ByteBufferAsCharBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
	TYPE=char BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   786
$(BUF_GEN)/ByteBufferAsCharBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
	TYPE=char RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   791
$(BUF_GEN)/ByteBufferAsShortBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
	TYPE=short BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   796
$(BUF_GEN)/ByteBufferAsShortBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
	TYPE=short RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   801
$(BUF_GEN)/ByteBufferAsIntBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
	TYPE=int BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   806
$(BUF_GEN)/ByteBufferAsIntBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
	TYPE=int RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   811
$(BUF_GEN)/ByteBufferAsLongBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
	TYPE=long BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   816
$(BUF_GEN)/ByteBufferAsLongBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
	TYPE=long RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   821
$(BUF_GEN)/ByteBufferAsFloatBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
	TYPE=float BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   826
$(BUF_GEN)/ByteBufferAsFloatBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
	TYPE=float RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   831
$(BUF_GEN)/ByteBufferAsDoubleBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
	TYPE=double BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
	$(MV) $@.temp $@
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   836
$(BUF_GEN)/ByteBufferAsDoubleBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
	TYPE=double RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
# Generated coder classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
GEN_CODER_SH = genCoder.sh
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
530
dbf0077bad01 6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents: 29
diff changeset
   848
GEN_CODER_CMD = SPP="$(SPP_CMD)" SED="$(SED)" NAWK="$(NAWK)" SH="$(SH)" $(SH) $(GEN_CODER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   850
$(CS_GEN)/CharsetDecoder.java: $(CHARSET_X_CODER_TEMPLATE) $(GEN_CODER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
	$(GEN_CODER_CMD) decoder $< $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
4115
e09be02771b6 6888701: Change all template java source files to a .java-template file suffix
ohair
parents: 2913
diff changeset
   856
$(CS_GEN)/CharsetEncoder.java: $(CHARSET_X_CODER_TEMPLATE) $(GEN_CODER_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
	$(GEN_CODER_CMD) encoder $< $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
	$(MV) $@.temp $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
# Generated exception classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
GEN_EX_SH = genExceptions.sh
10074
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   867
530
dbf0077bad01 6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents: 29
diff changeset
   868
GEN_EX_CMD = NAWK="$(NAWK)" SH="$(SH)" $(SH) $(GEN_EX_SH)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
$(CH_GEN)/%Exception.java: genExceptions.sh $(CH_SRC)/exceptions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
	$(GEN_EX_CMD) $(CH_SRC)/exceptions $(CH_GEN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
$(CS_GEN)/%Exception.java: genExceptions.sh $(CS_SRC)/exceptions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
	$(GEN_EX_CMD) $(CS_SRC)/exceptions $(CS_GEN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
$(BUF_GEN)/%Exception.java: genExceptions.sh $(BUF_SRC)/exceptions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
	@$(RM) $@.temp
90ce3da70b43 Initial load
duke
parents:
diff changeset
   883
	$(GEN_EX_CMD) $(BUF_SRC)/exceptions $(BUF_GEN)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
# Generated charset-provider classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
HASHER_JARFILE = $(BUILDTOOLJARDIR)/hasher.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
$(SCS_GEN)/StandardCharsets.java: genCharsetProvider.sh \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
    $(HASHER_JARFILE) $(SCS_SRC)/standard-charsets
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
	$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
	@$(RM) $@.temp
530
dbf0077bad01 6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents: 29
diff changeset
   895
	NAWK="$(NAWK)" TEMPDIR="$(TEMPDIR)" SH="$(SH)" \
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
	  HASHER="$(BOOT_JAVA_CMD) -jar $(HASHER_JARFILE)" \
29
b8bedccd805d 6638060: Build failed with GNU make 3.81 (part of latest Solaris 'gmake')
ohair
parents: 2
diff changeset
   897
	  $(SH) -e genCharsetProvider.sh $(SCS_SRC)/standard-charsets $(SCS_GEN)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
1152
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   899
#
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   900
# Generated channel implementation classes.
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   901
# C source is compiled in TEMPDIR to avoid turds left by Windows compilers.
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   902
#
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   903
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   904
GENSOR_SRC = $(SHARE_SRC)/native/sun/nio/ch/genSocketOptionRegistry.c
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   905
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   906
GENSOR_EXE = $(TEMPDIR)/genSocketOptionRegistry$(EXE_SUFFIX)
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   907
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   908
SOR_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSOR_SRC) | \
5552
bca3be14c8bd 6955707: Correct addNotices.sh logic in Makefiles
ohair
parents: 5506
diff changeset
   909
	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }') 
1152
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   910
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   911
$(TEMPDIR)/$(GENSOR_SRC) : $(GENSOR_SRC)
8583
15dea0fdc2ea 7025631: Remove the modules build support from jdk 7
mchung
parents: 7971
diff changeset
   912
	$(install-file)
1152
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   913
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   914
ifeq ($(PLATFORM), macosx)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   915
  NIO_CC=$(HOST_CC)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   916
else
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   917
  NIO_CC=$(CC)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   918
endif
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   919
1152
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   920
$(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC)
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   921
	$(prep-target)
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 12044
diff changeset
   922
	($(CD) $(TEMPDIR); $(NIO_CC) $(CPPFLAGS) $(LDDFLAGS) \
1152
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   923
	   -o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC))
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   924
10074
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   925
ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   926
$(SCH_GEN)/SocketOptionRegistry.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/ch/SocketOptionRegistry-$(PLATFORM)-$(ARCH).java
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   927
	$(prep-target)
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   928
	$(CP) $< $@
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   929
else 
1152
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   930
$(SCH_GEN)/SocketOptionRegistry.java: $(GENSOR_EXE)
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   931
	$(prep-target)
5552
bca3be14c8bd 6955707: Correct addNotices.sh logic in Makefiles
ohair
parents: 5506
diff changeset
   932
	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(SOR_COPYRIGHT_YEARS)" > $@
1152
29d6145d1097 4640544: New I/O: Complete socket-channel functionality
alanb
parents: 914
diff changeset
   933
	$(GENSOR_EXE) >> $@
10074
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   934
endif
1713
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   935
#
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   936
# Generated sun.nio.cs SingleByte classes
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   937
#
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   938
GENCSSRC = $(BUILDDIR)/tools/CharsetMapping
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   939
CHARSETMAPPING_JARFILE = $(BUILDTOOLJARDIR)/charsetmapping.jar
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   940
4341
2af5eacd4b24 6903197: Some java template files need to be renamed to .java.template
ohair
parents: 4115
diff changeset
   941
$(FILES_gensbcs_out): $(GENCSSRC)/SingleByte-X.java.template $(GENCSSRC)/sbcs
1713
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   942
	@$(prep-target)
2913
39a9cc073b84 6831794: charset EUC_TW is 12.6% of the total size of charsets.jar
sherman
parents: 2057
diff changeset
   943
	$(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSSRC) $(SCS_GEN) sbcs
1713
f8b8bfa64fc1 6642323: Speeding up Single Byte Decoders
sherman
parents: 1152
diff changeset
   944
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   945
# 
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   946
# Generated file system implementation classes (Unix only)
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   947
#
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   948
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   949
GENUC_SRC = $(PLATFORM_SRC)/native/sun/nio/fs/genUnixConstants.c
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   950
12044
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 10597
diff changeset
   951
GENUC_OBJ = $(TEMPDIR)/genUnixConstants.o
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   952
GENUC_EXE = $(TEMPDIR)/genUnixConstants
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   953
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   954
GENUC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENUC_SRC) | \
5552
bca3be14c8bd 6955707: Correct addNotices.sh logic in Makefiles
ohair
parents: 5506
diff changeset
   955
	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   956
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   957
$(GENUC_EXE) : $(GENUC_SRC)
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   958
	$(prep-target)
12044
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 10597
diff changeset
   959
	$(CC) $(CPPFLAGS) -c -o $(GENUC_OBJ) $(GENUC_SRC)
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 10597
diff changeset
   960
	$(CC) $(CPPFLAGS) -o $@ $(GENUC_OBJ)
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   961
10074
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   962
ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   963
$(SFS_GEN)/UnixConstants.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/fs/UnixConstants-$(PLATFORM)-$(ARCH).java
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   964
	$(prep-target)
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   965
	$(CP) $< $@
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   966
else
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   967
$(SFS_GEN)/UnixConstants.java: $(GENUC_EXE)
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   968
	$(prep-target)
5552
bca3be14c8bd 6955707: Correct addNotices.sh logic in Makefiles
ohair
parents: 5506
diff changeset
   969
	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENUC_COPYRIGHT_YEARS)" > $@
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   970
	$(GENUC_EXE) >> $@
10074
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   971
endif
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   972
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   973
GENSC_SRC = $(PLATFORM_SRC)/native/sun/nio/fs/genSolarisConstants.c
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   974
12044
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 10597
diff changeset
   975
GENSC_OBJ = $(TEMPDIR)/genSolarisConstants.o
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   976
GENSC_EXE = $(TEMPDIR)/genSolarisConstants
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   977
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   978
GENSC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSC_SRC) | \
5552
bca3be14c8bd 6955707: Correct addNotices.sh logic in Makefiles
ohair
parents: 5506
diff changeset
   979
	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   980
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   981
$(GENSC_EXE) : $(GENSC_SRC)
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   982
	$(prep-target)
12044
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 10597
diff changeset
   983
	$(CC) $(CPPFLAGS) -c -o $(GENSC_OBJ) $(GENSC_SRC)
d826961f7d42 7078053: Solaris JDK build: C compiler writing tmp files into the make tree
prr
parents: 10597
diff changeset
   984
	$(CC) $(CPPFLAGS) -o $@ $(GENSC_OBJ)
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   985
10074
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   986
ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   987
$(SFS_GEN)/SolarisConstants.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/fs/SolarisConstants-$(PLATFORM)-$(ARCH).java
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   988
	$(prep-target)
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   989
	$(CP) $< $@
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   990
else
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   991
$(SFS_GEN)/SolarisConstants.java: $(GENSC_EXE)
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   992
	$(prep-target)
5552
bca3be14c8bd 6955707: Correct addNotices.sh logic in Makefiles
ohair
parents: 5506
diff changeset
   993
	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENSC_COPYRIGHT_YEARS)" > $@
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   994
	$(GENSC_EXE) >> $@
10074
d2c097b2d601 7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents: 8796
diff changeset
   995
endif
2057
3acf8e5e2ca0 6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents: 1713
diff changeset
   996
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
.PHONY: sources