author | jjg |
Thu, 28 Jul 2011 13:34:31 -0700 | |
changeset 10137 | d92637d3d673 |
parent 10074 | d2c097b2d601 |
child 10597 | dac7cfce953a |
permissions | -rw-r--r-- |
2 | 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 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Makefile for java.nio |
|
28 |
# |
|
29 |
||
30 |
BUILDDIR = ../.. |
|
31 |
PACKAGE = java.nio |
|
32 |
LIBRARY = nio |
|
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 | 36 |
include $(BUILDDIR)/common/Defs.gmk |
37 |
||
38 |
NIO_SRC = $(SHARE_SRC)/classes/java/nio |
|
39 |
NIO_GEN = $(GENSRCDIR)/java/nio |
|
40 |
||
41 |
SNIO_SRC = $(SHARE_SRC)/classes/sun/nio |
|
42 |
SNIO_GEN = $(GENSRCDIR)/sun/nio |
|
43 |
||
44 |
# |
|
45 |
# Files to compile |
|
46 |
# |
|
47 |
||
48 |
include FILES_java.gmk |
|
49 |
include FILES_c.gmk |
|
50 |
include Exportedfiles.gmk |
|
51 |
||
52 |
ifeq ($(PLATFORM), solaris) |
|
53 |
FILES_java += \ |
|
54 |
sun/nio/ch/AbstractPollSelectorImpl.java \ |
|
55 |
sun/nio/ch/DevPollArrayWrapper.java \ |
|
56 |
sun/nio/ch/DevPollSelectorImpl.java \ |
|
57 |
sun/nio/ch/DevPollSelectorProvider.java \ |
|
58 |
sun/nio/ch/InheritedChannel.java \ |
|
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 | 95 |
|
96 |
FILES_c += \ |
|
97 |
DevPollArrayWrapper.c \ |
|
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 | 110 |
|
111 |
FILES_export += \ |
|
112 |
sun/nio/ch/DevPollArrayWrapper.java \ |
|
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 | 128 |
endif # PLATFORM = solaris |
129 |
||
130 |
ifeq ($(PLATFORM), windows) |
|
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 | 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 | 164 |
|
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 | 172 |
WindowsSelectorImpl.c |
173 |
||
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 | 182 |
endif # PLATFORM = windows |
183 |
||
184 |
ifeq ($(PLATFORM), linux) |
|
185 |
FILES_java += \ |
|
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 | 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 | 190 |
sun/nio/ch/EPollSelectorProvider.java \ |
191 |
sun/nio/ch/EPollSelectorImpl.java \ |
|
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 | 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/PollingWatchService.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
210 |
sun/nio/fs/UnixChannelFactory.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
211 |
sun/nio/fs/UnixCopyFile.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
212 |
sun/nio/fs/UnixDirectoryStream.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
213 |
sun/nio/fs/UnixException.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
214 |
sun/nio/fs/UnixFileAttributeViews.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
215 |
sun/nio/fs/UnixFileAttributes.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
216 |
sun/nio/fs/UnixFileKey.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
217 |
sun/nio/fs/UnixFileModeAttribute.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
218 |
sun/nio/fs/UnixFileStore.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
219 |
sun/nio/fs/UnixFileStoreAttributes.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
220 |
sun/nio/fs/UnixFileSystem.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
221 |
sun/nio/fs/UnixFileSystemProvider.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
222 |
sun/nio/fs/UnixMountEntry.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
223 |
sun/nio/fs/UnixNativeDispatcher.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
224 |
sun/nio/fs/UnixPath.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
225 |
sun/nio/fs/UnixSecureDirectoryStream.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
226 |
sun/nio/fs/UnixUriUtils.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
227 |
sun/nio/fs/UnixUserPrincipals.java |
2 | 228 |
|
229 |
FILES_c += \ |
|
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
230 |
EPoll.c \ |
2 | 231 |
EPollArrayWrapper.c \ |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
232 |
EPollPort.c \ |
2 | 233 |
InheritedChannel.c \ |
1152
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
234 |
NativeThread.c \ |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
235 |
PollArrayWrapper.c \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
236 |
UnixAsynchronousServerSocketChannelImpl.c \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
237 |
UnixAsynchronousSocketChannelImpl.c \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
238 |
\ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
239 |
GnomeFileTypeDetector.c \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
240 |
LinuxNativeDispatcher.c \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
241 |
LinuxWatchService.c \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
242 |
UnixCopyFile.c \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
243 |
UnixNativeDispatcher.c |
2 | 244 |
|
245 |
FILES_export += \ |
|
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
246 |
sun/nio/ch/EPoll.java \ |
2 | 247 |
sun/nio/ch/EPollArrayWrapper.java \ |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
248 |
sun/nio/ch/EPollPort.java \ |
2 | 249 |
sun/nio/ch/InheritedChannel.java \ |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
250 |
sun/nio/ch/NativeThread.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
251 |
sun/nio/ch/UnixAsynchronousServerSocketChannelImpl.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
252 |
sun/nio/ch/UnixAsynchronousSocketChannelImpl.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
253 |
\ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
254 |
sun/nio/fs/GnomeFileTypeDetector.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
255 |
sun/nio/fs/LinuxNativeDispatcher.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
256 |
sun/nio/fs/LinuxWatchService.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
257 |
sun/nio/fs/UnixCopyFile.java \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
258 |
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
|
259 |
|
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
260 |
FILES_gen += \ |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
261 |
sun/nio/fs/UnixConstants.java |
2 | 262 |
endif # PLATFORM = linux |
263 |
||
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
264 |
# |
2 | 265 |
# Find platform-specific C source files |
266 |
# |
|
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
267 |
vpath %.c $(PLATFORM_SRC)/native/sun/nio/fs |
2 | 268 |
vpath %.c $(PLATFORM_SRC)/native/sun/nio/ch |
269 |
vpath %.c $(SHARE_SRC)/native/sun/nio/ch |
|
270 |
||
271 |
# |
|
272 |
# Various variables |
|
273 |
# |
|
274 |
||
275 |
JAVALIB = # Don't self-link |
|
276 |
||
277 |
# |
|
278 |
# Access to io_util.c and net_util.c |
|
279 |
# |
|
280 |
||
281 |
OTHER_INCLUDES += \ |
|
282 |
-I$(SHARE_SRC)/native/sun/nio/ch \ |
|
283 |
-I$(SHARE_SRC)/native/java/io \ |
|
284 |
-I$(SHARE_SRC)/native/java/net \ |
|
285 |
-I$(PLATFORM_SRC)/native/java/net \ |
|
286 |
-I$(CLASSHDRDIR)/../../../java.lang/java/CClassHeaders |
|
287 |
||
288 |
ifeq ($(PLATFORM),windows) |
|
289 |
OTHER_LDLIBS += $(JVMLIB) ws2_32.lib \ |
|
290 |
-libpath:$(LIBDIR) java.lib \ |
|
291 |
$(OBJDIR)/../../../../sun/java.net/net/$(OBJDIRNAME)/net.lib \ |
|
292 |
$(OBJDIR)/../../../java.lang/java/$(OBJDIRNAME)/io_util.obj \ |
|
293 |
$(OBJDIR)/../../../java.lang/java/$(OBJDIRNAME)/FileDescriptor_md.obj |
|
294 |
endif |
|
295 |
ifeq ($(PLATFORM), linux) |
|
296 |
OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread -ldl |
|
297 |
endif |
|
298 |
ifeq ($(PLATFORM), solaris) |
|
7971
ca5a32210b1b
7002957: (fc) FileChannel.transferTo fails to load libsendfile on Solaris 64-bit
alanb
parents:
7668
diff
changeset
|
299 |
OTHER_LDLIBS += $(JVMLIB) $(LIBSOCKET) -lposix4 -ldl -lsendfile \ |
2 | 300 |
-L$(LIBDIR)/$(LIBARCH) -ljava -lnet |
301 |
endif # PLATFORM |
|
302 |
||
303 |
# |
|
304 |
# Rules |
|
305 |
# |
|
306 |
||
307 |
build: sources |
|
308 |
||
309 |
clean clobber:: |
|
310 |
$(RM) -r $(NIO_GEN) $(SNIO_GEN) |
|
311 |
$(RM) -r $(CLASSDESTDIR)/java/nio |
|
312 |
$(RM) -r $(CLASSDESTDIR)/sun/nio |
|
313 |
||
314 |
ifeq ($(PLATFORM), solaris) |
|
315 |
FILES_m = mapfile-solaris |
|
316 |
endif |
|
317 |
ifeq ($(PLATFORM), linux) |
|
318 |
FILES_m = mapfile-linux |
|
319 |
endif |
|
320 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
321 |
include $(BUILDDIR)/common/Library.gmk |
|
322 |
||
323 |
# |
|
324 |
# Generate source files |
|
325 |
# |
|
326 |
||
898
1c4e95595472
6681798: (build) CharsetEncoder.java fails to compile in openjdk6 on ubutu 8.04
sherman
parents:
715
diff
changeset
|
327 |
SPP_JARFILE = $(BUILDTOOLJARDIR)/spp.jar |
1c4e95595472
6681798: (build) CharsetEncoder.java fails to compile in openjdk6 on ubutu 8.04
sherman
parents:
715
diff
changeset
|
328 |
SPP_CMD = $(BOOT_JAVA_CMD) -jar $(SPP_JARFILE) |
2 | 329 |
|
330 |
FILES_genout = $(FILES_gen:%.java=$(GENSRCDIR)/%.java) |
|
331 |
||
332 |
BUF_SRC=$(NIO_SRC) |
|
333 |
CH_SRC=$(NIO_SRC)/channels |
|
334 |
CS_SRC=$(NIO_SRC)/charset |
|
335 |
SCH_SRC=$(SNIO_SRC)/ch |
|
336 |
SCS_SRC=$(SNIO_SRC)/cs |
|
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
337 |
SFS_SRC=$(SNIO_SRC)/fs |
2 | 338 |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
339 |
# Template files |
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
340 |
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
|
341 |
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
|
342 |
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
|
343 |
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
|
344 |
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
|
345 |
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
|
346 |
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
|
347 |
|
2 | 348 |
BUF_GEN=$(NIO_GEN) |
349 |
CH_GEN=$(NIO_GEN)/channels |
|
350 |
CS_GEN=$(NIO_GEN)/charset |
|
351 |
SCH_GEN=$(SNIO_GEN)/ch |
|
352 |
SCS_GEN=$(SNIO_GEN)/cs |
|
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
353 |
SFS_GEN=$(SNIO_GEN)/fs |
2 | 354 |
|
1713 | 355 |
FILES_gensbcs_out = $(FILES_gen_sbcs:%.java=$(GENSRCDIR)/%.java) |
356 |
||
357 |
sources: $(SPP_JARFILE) $(FILES_genout) $(FILES_gensbcs_out) |
|
2 | 358 |
|
359 |
# |
|
360 |
# Generated buffer classes |
|
361 |
# |
|
362 |
||
363 |
GEN_BUFFER_SH = genBuffer.sh |
|
364 |
||
530
dbf0077bad01
6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents:
29
diff
changeset
|
365 |
GEN_BUFFER_CMD = SPP="$(SPP_CMD)" NAWK="$(NAWK)" SED="$(SED)" SH="$(SH)" \ |
2 | 366 |
$(SH) $(GEN_BUFFER_SH) |
367 |
||
368 |
# Public abstract buffer classes |
|
369 |
# |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
370 |
$(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
|
371 |
$(X_BUF_BIN_TEMPLATE) \ |
2 | 372 |
$(GEN_BUFFER_SH) |
373 |
$(prep-target) |
|
374 |
@$(RM) $@.temp |
|
375 |
TYPE=byte BIN=1 SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
376 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
377 |
$(BUF_GEN)/CharBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 378 |
$(prep-target) |
379 |
@$(RM) $@.temp |
|
380 |
TYPE=char SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
381 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
382 |
$(BUF_GEN)/ShortBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 383 |
$(prep-target) |
384 |
@$(RM) $@.temp |
|
385 |
TYPE=short SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
386 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
387 |
$(BUF_GEN)/IntBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 388 |
$(prep-target) |
389 |
@$(RM) $@.temp |
|
390 |
TYPE=int SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
391 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
392 |
$(BUF_GEN)/LongBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 393 |
$(prep-target) |
394 |
@$(RM) $@.temp |
|
395 |
TYPE=long SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
396 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
397 |
$(BUF_GEN)/FloatBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 398 |
$(prep-target) |
399 |
@$(RM) $@.temp |
|
400 |
TYPE=float SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
401 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
402 |
$(BUF_GEN)/DoubleBuffer.java: $(X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 403 |
$(prep-target) |
404 |
@$(RM) $@.temp |
|
405 |
TYPE=double SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
406 |
$(MV) $@.temp $@ |
|
407 |
||
408 |
# Buffers whose contents are heap-allocated |
|
409 |
# |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
410 |
$(BUF_GEN)/HeapByteBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 411 |
$(prep-target) |
412 |
@$(RM) $@.temp |
|
413 |
TYPE=byte SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
414 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
415 |
$(BUF_GEN)/HeapByteBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 416 |
$(prep-target) |
417 |
@$(RM) $@.temp |
|
418 |
TYPE=byte RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
419 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
420 |
$(BUF_GEN)/HeapCharBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 421 |
$(prep-target) |
422 |
@$(RM) $@.temp |
|
423 |
TYPE=char SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
424 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
425 |
$(BUF_GEN)/HeapCharBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 426 |
$(prep-target) |
427 |
@$(RM) $@.temp |
|
428 |
TYPE=char RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
429 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
430 |
$(BUF_GEN)/HeapShortBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 431 |
$(prep-target) |
432 |
@$(RM) $@.temp |
|
433 |
TYPE=short SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
434 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
435 |
$(BUF_GEN)/HeapShortBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 436 |
$(prep-target) |
437 |
@$(RM) $@.temp |
|
438 |
TYPE=short RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
439 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
440 |
$(BUF_GEN)/HeapIntBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 441 |
$(prep-target) |
442 |
@$(RM) $@.temp |
|
443 |
TYPE=int SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
444 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
445 |
$(BUF_GEN)/HeapIntBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 446 |
$(prep-target) |
447 |
@$(RM) $@.temp |
|
448 |
TYPE=int RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
449 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
450 |
$(BUF_GEN)/HeapLongBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 451 |
$(prep-target) |
452 |
@$(RM) $@.temp |
|
453 |
TYPE=long SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
454 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
455 |
$(BUF_GEN)/HeapLongBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 456 |
$(prep-target) |
457 |
@$(RM) $@.temp |
|
458 |
TYPE=long RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
459 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
460 |
$(BUF_GEN)/HeapFloatBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 461 |
$(prep-target) |
462 |
@$(RM) $@.temp |
|
463 |
TYPE=float SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
464 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
465 |
$(BUF_GEN)/HeapFloatBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 466 |
$(prep-target) |
467 |
@$(RM) $@.temp |
|
468 |
TYPE=float RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
469 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
470 |
$(BUF_GEN)/HeapDoubleBuffer.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 471 |
$(prep-target) |
472 |
@$(RM) $@.temp |
|
473 |
TYPE=double SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
474 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
475 |
$(BUF_GEN)/HeapDoubleBuffer%.java: $(HEAP_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 476 |
$(prep-target) |
477 |
@$(RM) $@.temp |
|
478 |
TYPE=double RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
479 |
$(MV) $@.temp $@ |
|
480 |
||
481 |
# Direct byte buffer |
|
482 |
# |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
483 |
$(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
|
484 |
$(DIRECT_X_BUF_TEMPLATE) \ |
2 | 485 |
$(GEN_BUFFER_SH) |
486 |
$(prep-target) |
|
487 |
@$(RM) $@.temp |
|
488 |
TYPE=byte BIN=1 SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
489 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
490 |
$(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
|
491 |
$(DIRECT_X_BUF_TEMPLATE) \ |
2 | 492 |
$(GEN_BUFFER_SH) |
493 |
$(prep-target) |
|
494 |
@$(RM) $@.temp |
|
495 |
TYPE=byte RW=$* BIN=1 SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
496 |
$(MV) $@.temp $@ |
|
497 |
||
498 |
# Unswapped views of direct byte buffers |
|
499 |
# |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
500 |
$(BUF_GEN)/DirectCharBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 501 |
$(prep-target) |
502 |
@$(RM) $@.temp |
|
503 |
TYPE=char BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
504 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
505 |
$(BUF_GEN)/DirectCharBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 506 |
$(prep-target) |
507 |
@$(RM) $@.temp |
|
508 |
TYPE=char RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
509 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
510 |
$(BUF_GEN)/DirectShortBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 511 |
$(prep-target) |
512 |
@$(RM) $@.temp |
|
513 |
TYPE=short BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
514 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
515 |
$(BUF_GEN)/DirectShortBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 516 |
$(prep-target) |
517 |
@$(RM) $@.temp |
|
518 |
TYPE=short RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
519 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
520 |
$(BUF_GEN)/DirectIntBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 521 |
$(prep-target) |
522 |
@$(RM) $@.temp |
|
523 |
TYPE=int BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
524 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
525 |
$(BUF_GEN)/DirectIntBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 526 |
$(prep-target) |
527 |
@$(RM) $@.temp |
|
528 |
TYPE=int RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
529 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
530 |
$(BUF_GEN)/DirectLongBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 531 |
$(prep-target) |
532 |
@$(RM) $@.temp |
|
533 |
TYPE=long BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
534 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
535 |
$(BUF_GEN)/DirectLongBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 536 |
$(prep-target) |
537 |
@$(RM) $@.temp |
|
538 |
TYPE=long RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
539 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
540 |
$(BUF_GEN)/DirectFloatBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 541 |
$(prep-target) |
542 |
@$(RM) $@.temp |
|
543 |
TYPE=float BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
544 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
545 |
$(BUF_GEN)/DirectFloatBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 546 |
$(prep-target) |
547 |
@$(RM) $@.temp |
|
548 |
TYPE=float RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
549 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
550 |
$(BUF_GEN)/DirectDoubleBufferU.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 551 |
$(prep-target) |
552 |
@$(RM) $@.temp |
|
553 |
TYPE=double BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
554 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
555 |
$(BUF_GEN)/DirectDoubleBuffer%U.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 556 |
$(prep-target) |
557 |
@$(RM) $@.temp |
|
558 |
TYPE=double RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
559 |
$(MV) $@.temp $@ |
|
560 |
||
561 |
# Swapped views of direct byte buffers |
|
562 |
# |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
563 |
$(BUF_GEN)/DirectCharBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 564 |
$(prep-target) |
565 |
@$(RM) $@.temp |
|
566 |
TYPE=char BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
567 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
568 |
$(BUF_GEN)/DirectCharBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 569 |
$(prep-target) |
570 |
@$(RM) $@.temp |
|
571 |
TYPE=char RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
572 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
573 |
$(BUF_GEN)/DirectShortBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 574 |
$(prep-target) |
575 |
@$(RM) $@.temp |
|
576 |
TYPE=short BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
577 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
578 |
$(BUF_GEN)/DirectShortBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 579 |
$(prep-target) |
580 |
@$(RM) $@.temp |
|
581 |
TYPE=short RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
582 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
583 |
$(BUF_GEN)/DirectIntBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 584 |
$(prep-target) |
585 |
@$(RM) $@.temp |
|
586 |
TYPE=int BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
587 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
588 |
$(BUF_GEN)/DirectIntBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 589 |
$(prep-target) |
590 |
@$(RM) $@.temp |
|
591 |
TYPE=int RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
592 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
593 |
$(BUF_GEN)/DirectLongBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 594 |
$(prep-target) |
595 |
@$(RM) $@.temp |
|
596 |
TYPE=long BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
597 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
598 |
$(BUF_GEN)/DirectLongBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 599 |
$(prep-target) |
600 |
@$(RM) $@.temp |
|
601 |
TYPE=long RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
602 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
603 |
$(BUF_GEN)/DirectFloatBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 604 |
$(prep-target) |
605 |
@$(RM) $@.temp |
|
606 |
TYPE=float BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
607 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
608 |
$(BUF_GEN)/DirectFloatBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 609 |
$(prep-target) |
610 |
@$(RM) $@.temp |
|
611 |
TYPE=float RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
612 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
613 |
$(BUF_GEN)/DirectDoubleBufferS.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 614 |
$(prep-target) |
615 |
@$(RM) $@.temp |
|
616 |
TYPE=double BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
617 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
618 |
$(BUF_GEN)/DirectDoubleBuffer%S.java: $(DIRECT_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 619 |
$(prep-target) |
620 |
@$(RM) $@.temp |
|
621 |
TYPE=double RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
622 |
$(MV) $@.temp $@ |
|
623 |
||
624 |
# Big-endian views of byte buffers |
|
625 |
# |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
626 |
$(BUF_GEN)/ByteBufferAsCharBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 627 |
$(prep-target) |
628 |
@$(RM) $@.temp |
|
629 |
TYPE=char BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
630 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
631 |
$(BUF_GEN)/ByteBufferAsCharBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 632 |
$(prep-target) |
633 |
@$(RM) $@.temp |
|
634 |
TYPE=char RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
635 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
636 |
$(BUF_GEN)/ByteBufferAsShortBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 637 |
$(prep-target) |
638 |
@$(RM) $@.temp |
|
639 |
TYPE=short BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
640 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
641 |
$(BUF_GEN)/ByteBufferAsShortBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 642 |
$(prep-target) |
643 |
@$(RM) $@.temp |
|
644 |
TYPE=short RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
645 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
646 |
$(BUF_GEN)/ByteBufferAsIntBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 647 |
$(prep-target) |
648 |
@$(RM) $@.temp |
|
649 |
TYPE=int BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
650 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
651 |
$(BUF_GEN)/ByteBufferAsIntBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 652 |
$(prep-target) |
653 |
@$(RM) $@.temp |
|
654 |
TYPE=int RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
655 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
656 |
$(BUF_GEN)/ByteBufferAsLongBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 657 |
$(prep-target) |
658 |
@$(RM) $@.temp |
|
659 |
TYPE=long BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
660 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
661 |
$(BUF_GEN)/ByteBufferAsLongBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 662 |
$(prep-target) |
663 |
@$(RM) $@.temp |
|
664 |
TYPE=long RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
665 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
666 |
$(BUF_GEN)/ByteBufferAsFloatBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 667 |
$(prep-target) |
668 |
@$(RM) $@.temp |
|
669 |
TYPE=float BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
670 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
671 |
$(BUF_GEN)/ByteBufferAsFloatBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 672 |
$(prep-target) |
673 |
@$(RM) $@.temp |
|
674 |
TYPE=float RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
675 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
676 |
$(BUF_GEN)/ByteBufferAsDoubleBufferB.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 677 |
$(prep-target) |
678 |
@$(RM) $@.temp |
|
679 |
TYPE=double BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
680 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
681 |
$(BUF_GEN)/ByteBufferAsDoubleBuffer%B.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 682 |
$(prep-target) |
683 |
@$(RM) $@.temp |
|
684 |
TYPE=double RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
685 |
$(MV) $@.temp $@ |
|
686 |
||
687 |
# Little-endian views of byte buffers |
|
688 |
# |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
689 |
$(BUF_GEN)/ByteBufferAsCharBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 690 |
$(prep-target) |
691 |
@$(RM) $@.temp |
|
692 |
TYPE=char BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
693 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
694 |
$(BUF_GEN)/ByteBufferAsCharBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 695 |
$(prep-target) |
696 |
@$(RM) $@.temp |
|
697 |
TYPE=char RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
698 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
699 |
$(BUF_GEN)/ByteBufferAsShortBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 700 |
$(prep-target) |
701 |
@$(RM) $@.temp |
|
702 |
TYPE=short BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
703 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
704 |
$(BUF_GEN)/ByteBufferAsShortBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 705 |
$(prep-target) |
706 |
@$(RM) $@.temp |
|
707 |
TYPE=short RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
708 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
709 |
$(BUF_GEN)/ByteBufferAsIntBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 710 |
$(prep-target) |
711 |
@$(RM) $@.temp |
|
712 |
TYPE=int BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
713 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
714 |
$(BUF_GEN)/ByteBufferAsIntBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 715 |
$(prep-target) |
716 |
@$(RM) $@.temp |
|
717 |
TYPE=int RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
718 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
719 |
$(BUF_GEN)/ByteBufferAsLongBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 720 |
$(prep-target) |
721 |
@$(RM) $@.temp |
|
722 |
TYPE=long BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
723 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
724 |
$(BUF_GEN)/ByteBufferAsLongBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 725 |
$(prep-target) |
726 |
@$(RM) $@.temp |
|
727 |
TYPE=long RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
728 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
729 |
$(BUF_GEN)/ByteBufferAsFloatBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 730 |
$(prep-target) |
731 |
@$(RM) $@.temp |
|
732 |
TYPE=float BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
733 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
734 |
$(BUF_GEN)/ByteBufferAsFloatBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 735 |
$(prep-target) |
736 |
@$(RM) $@.temp |
|
737 |
TYPE=float RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
738 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
739 |
$(BUF_GEN)/ByteBufferAsDoubleBufferL.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 740 |
$(prep-target) |
741 |
@$(RM) $@.temp |
|
742 |
TYPE=double BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
743 |
$(MV) $@.temp $@ |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
744 |
$(BUF_GEN)/ByteBufferAsDoubleBuffer%L.java: $(BYTE_X_BUF_TEMPLATE) $(GEN_BUFFER_SH) |
2 | 745 |
$(prep-target) |
746 |
@$(RM) $@.temp |
|
747 |
TYPE=double RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD) |
|
748 |
$(MV) $@.temp $@ |
|
749 |
||
750 |
# |
|
751 |
# Generated coder classes |
|
752 |
# |
|
753 |
||
754 |
GEN_CODER_SH = genCoder.sh |
|
755 |
||
530
dbf0077bad01
6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents:
29
diff
changeset
|
756 |
GEN_CODER_CMD = SPP="$(SPP_CMD)" SED="$(SED)" NAWK="$(NAWK)" SH="$(SH)" $(SH) $(GEN_CODER_SH) |
2 | 757 |
|
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
758 |
$(CS_GEN)/CharsetDecoder.java: $(CHARSET_X_CODER_TEMPLATE) $(GEN_CODER_SH) |
2 | 759 |
$(prep-target) |
760 |
@$(RM) $@.temp |
|
761 |
$(GEN_CODER_CMD) decoder $< $@.temp |
|
762 |
$(MV) $@.temp $@ |
|
763 |
||
4115
e09be02771b6
6888701: Change all template java source files to a .java-template file suffix
ohair
parents:
2913
diff
changeset
|
764 |
$(CS_GEN)/CharsetEncoder.java: $(CHARSET_X_CODER_TEMPLATE) $(GEN_CODER_SH) |
2 | 765 |
$(prep-target) |
766 |
@$(RM) $@.temp |
|
767 |
$(GEN_CODER_CMD) encoder $< $@.temp |
|
768 |
$(MV) $@.temp $@ |
|
769 |
||
770 |
# |
|
771 |
# Generated exception classes |
|
772 |
# |
|
773 |
||
774 |
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
|
775 |
|
530
dbf0077bad01
6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents:
29
diff
changeset
|
776 |
GEN_EX_CMD = NAWK="$(NAWK)" SH="$(SH)" $(SH) $(GEN_EX_SH) |
2 | 777 |
|
778 |
$(CH_GEN)/%Exception.java: genExceptions.sh $(CH_SRC)/exceptions |
|
779 |
$(prep-target) |
|
780 |
@$(RM) $@.temp |
|
781 |
$(GEN_EX_CMD) $(CH_SRC)/exceptions $(CH_GEN) |
|
782 |
||
783 |
$(CS_GEN)/%Exception.java: genExceptions.sh $(CS_SRC)/exceptions |
|
784 |
$(prep-target) |
|
785 |
@$(RM) $@.temp |
|
786 |
$(GEN_EX_CMD) $(CS_SRC)/exceptions $(CS_GEN) |
|
787 |
||
788 |
$(BUF_GEN)/%Exception.java: genExceptions.sh $(BUF_SRC)/exceptions |
|
789 |
$(prep-target) |
|
790 |
@$(RM) $@.temp |
|
791 |
$(GEN_EX_CMD) $(BUF_SRC)/exceptions $(BUF_GEN) |
|
792 |
||
793 |
# |
|
794 |
# Generated charset-provider classes |
|
795 |
# |
|
796 |
||
797 |
HASHER_JARFILE = $(BUILDTOOLJARDIR)/hasher.jar |
|
798 |
||
799 |
$(SCS_GEN)/StandardCharsets.java: genCharsetProvider.sh \ |
|
800 |
$(HASHER_JARFILE) $(SCS_SRC)/standard-charsets |
|
801 |
$(prep-target) |
|
802 |
@$(RM) $@.temp |
|
530
dbf0077bad01
6590549: Cygwin build of OpenJDK has problems and not very well documented
ohair
parents:
29
diff
changeset
|
803 |
NAWK="$(NAWK)" TEMPDIR="$(TEMPDIR)" SH="$(SH)" \ |
2 | 804 |
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
|
805 |
$(SH) -e genCharsetProvider.sh $(SCS_SRC)/standard-charsets $(SCS_GEN) |
2 | 806 |
|
1152
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
807 |
# |
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
808 |
# Generated channel implementation classes. |
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
809 |
# 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
|
810 |
# |
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
811 |
|
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
812 |
GENSOR_SRC = $(SHARE_SRC)/native/sun/nio/ch/genSocketOptionRegistry.c |
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
813 |
|
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
814 |
GENSOR_EXE = $(TEMPDIR)/genSocketOptionRegistry$(EXE_SUFFIX) |
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
815 |
|
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
816 |
SOR_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSOR_SRC) | \ |
5552 | 817 |
$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }') |
1152
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
818 |
|
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
819 |
$(TEMPDIR)/$(GENSOR_SRC) : $(GENSOR_SRC) |
8583
15dea0fdc2ea
7025631: Remove the modules build support from jdk 7
mchung
parents:
7971
diff
changeset
|
820 |
$(install-file) |
1152
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
821 |
|
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
822 |
$(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC) |
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
823 |
$(prep-target) |
10074
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
824 |
($(CD) $(TEMPDIR); $(CC) $(CPPFLAGS) $(LDDFLAGS) \ |
1152
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
825 |
-o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC)) |
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
826 |
|
10074
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
827 |
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
|
828 |
$(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
|
829 |
$(prep-target) |
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
830 |
$(CP) $< $@ |
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
831 |
else |
1152
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
832 |
$(SCH_GEN)/SocketOptionRegistry.java: $(GENSOR_EXE) |
29d6145d1097
4640544: New I/O: Complete socket-channel functionality
alanb
parents:
914
diff
changeset
|
833 |
$(prep-target) |
5552 | 834 |
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
|
835 |
$(GENSOR_EXE) >> $@ |
10074
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
836 |
endif |
1713 | 837 |
# |
838 |
# Generated sun.nio.cs SingleByte classes |
|
839 |
# |
|
840 |
GENCSSRC = $(BUILDDIR)/tools/CharsetMapping |
|
841 |
CHARSETMAPPING_JARFILE = $(BUILDTOOLJARDIR)/charsetmapping.jar |
|
842 |
||
4341
2af5eacd4b24
6903197: Some java template files need to be renamed to .java.template
ohair
parents:
4115
diff
changeset
|
843 |
$(FILES_gensbcs_out): $(GENCSSRC)/SingleByte-X.java.template $(GENCSSRC)/sbcs |
1713 | 844 |
@$(prep-target) |
2913
39a9cc073b84
6831794: charset EUC_TW is 12.6% of the total size of charsets.jar
sherman
parents:
2057
diff
changeset
|
845 |
$(BOOT_JAVA_CMD) -jar $(CHARSETMAPPING_JARFILE) $(GENCSSRC) $(SCS_GEN) sbcs |
1713 | 846 |
|
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
847 |
# |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
848 |
# 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
|
849 |
# |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
850 |
|
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
851 |
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
|
852 |
|
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
853 |
GENUC_EXE = $(TEMPDIR)/genUnixConstants |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
854 |
|
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
855 |
GENUC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENUC_SRC) | \ |
5552 | 856 |
$(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
|
857 |
|
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
858 |
$(GENUC_EXE) : $(GENUC_SRC) |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
859 |
$(prep-target) |
10074
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
860 |
$(CC) $(CPPFLAGS) -o $@ $(GENUC_SRC) |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
861 |
|
10074
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
862 |
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
|
863 |
$(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
|
864 |
$(prep-target) |
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
865 |
$(CP) $< $@ |
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
866 |
else |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
867 |
$(SFS_GEN)/UnixConstants.java: $(GENUC_EXE) |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
868 |
$(prep-target) |
5552 | 869 |
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
|
870 |
$(GENUC_EXE) >> $@ |
10074
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
871 |
endif |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
872 |
|
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
873 |
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
|
874 |
|
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
875 |
GENSC_EXE = $(TEMPDIR)/genSolarisConstants |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
876 |
|
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
877 |
GENSC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSC_SRC) | \ |
5552 | 878 |
$(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
|
879 |
|
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
880 |
$(GENSC_EXE) : $(GENSC_SRC) |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
881 |
$(prep-target) |
10074
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
882 |
$(CC) $(CPPFLAGS) -o $@ $(GENSC_SRC) |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
883 |
|
10074
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
884 |
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
|
885 |
$(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
|
886 |
$(prep-target) |
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
887 |
$(CP) $< $@ |
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
888 |
else |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
889 |
$(SFS_GEN)/SolarisConstants.java: $(GENSC_EXE) |
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
890 |
$(prep-target) |
5552 | 891 |
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
|
892 |
$(GENSC_EXE) >> $@ |
10074
d2c097b2d601
7039182: PPC: NIO: java.io.IOException: Invalid argument in sun.nio.ch.FileDispatcherImpl.read0
dholmes
parents:
8796
diff
changeset
|
893 |
endif |
2057
3acf8e5e2ca0
6781363: New I/O: Update socket-channel API to jsr203/nio2-b99
alanb
parents:
1713
diff
changeset
|
894 |
|
2 | 895 |
.PHONY: sources |