annotate make/java/nio/Makefile @ 422:c51121419e30

6727683: Cleanup use of COMPILER_WARNINGS_FATAL in makefiles Reviewed-by: tbell
author ohair
date Sun, 27 Jul 2008 18:42:57 -0700
parents b6d6877c1155
children 289bc9ca7556
rev   line source
duke@0 1 #
xdono@381 2 # Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation. Sun designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
duke@0 9 # by Sun in the LICENSE file that accompanied this code.
duke@0 10 #
duke@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 15 # accompanied this code).
duke@0 16 #
duke@0 17 # You should have received a copy of the GNU General Public License version
duke@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 20 #
duke@0 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 22 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 23 # have any questions.
duke@0 24 #
duke@0 25
duke@0 26 #
duke@0 27 # Makefile for java.nio
duke@0 28 #
duke@0 29
duke@0 30 BUILDDIR = ../..
duke@0 31 PACKAGE = java.nio
duke@0 32 LIBRARY = nio
duke@0 33 PRODUCT = java
duke@0 34 OTHER_JAVACFLAGS += -Xmaxwarns 1000 -Xlint:serial -Werror
duke@0 35 include $(BUILDDIR)/common/Defs.gmk
duke@0 36
duke@0 37 NIO_SRC = $(SHARE_SRC)/classes/java/nio
duke@0 38 NIO_GEN = $(GENSRCDIR)/java/nio
duke@0 39
duke@0 40 SNIO_SRC = $(SHARE_SRC)/classes/sun/nio
duke@0 41 SNIO_GEN = $(GENSRCDIR)/sun/nio
duke@0 42
duke@0 43 #
duke@0 44 # Files to compile
duke@0 45 #
duke@0 46
duke@0 47 include FILES_java.gmk
duke@0 48 include FILES_c.gmk
duke@0 49 include Exportedfiles.gmk
duke@0 50
duke@0 51 ifeq ($(PLATFORM), solaris)
duke@0 52 FILES_java += \
duke@0 53 sun/nio/ch/AbstractPollSelectorImpl.java \
duke@0 54 sun/nio/ch/DevPollArrayWrapper.java \
duke@0 55 sun/nio/ch/DevPollSelectorImpl.java \
duke@0 56 sun/nio/ch/DevPollSelectorProvider.java \
duke@0 57 sun/nio/ch/InheritedChannel.java \
duke@0 58 sun/nio/ch/PollSelectorProvider.java \
duke@0 59 sun/nio/ch/PollSelectorImpl.java
duke@0 60
duke@0 61 FILES_c += \
duke@0 62 DevPollArrayWrapper.c \
duke@0 63 InheritedChannel.c \
duke@0 64 PollArrayWrapper.c \
duke@0 65 NativeThread.c
duke@0 66
duke@0 67 FILES_export += \
duke@0 68 sun/nio/ch/DevPollArrayWrapper.java \
duke@0 69 sun/nio/ch/InheritedChannel.java \
duke@0 70 sun/nio/ch/NativeThread.java
duke@0 71 endif # PLATFORM = solaris
duke@0 72
duke@0 73 ifeq ($(PLATFORM), windows)
duke@0 74 FILES_java += \
duke@0 75 sun/nio/ch/WindowsSelectorImpl.java \
duke@0 76 sun/nio/ch/WindowsSelectorProvider.java
duke@0 77
duke@0 78 FILES_c += \
duke@0 79 WindowsSelectorImpl.c
duke@0 80
duke@0 81 FILES_export += \
duke@0 82 sun/nio/ch/WindowsSelectorImpl.java
duke@0 83 endif # PLATFORM = windows
duke@0 84
duke@0 85 ifeq ($(PLATFORM), linux)
duke@0 86 FILES_java += \
duke@0 87 sun/nio/ch/AbstractPollSelectorImpl.java \
duke@0 88 sun/nio/ch/EPollArrayWrapper.java \
duke@0 89 sun/nio/ch/EPollSelectorProvider.java \
duke@0 90 sun/nio/ch/EPollSelectorImpl.java \
duke@0 91 sun/nio/ch/InheritedChannel.java \
duke@0 92 sun/nio/ch/PollSelectorProvider.java \
duke@0 93 sun/nio/ch/PollSelectorImpl.java
duke@0 94
duke@0 95 FILES_c += \
duke@0 96 EPollArrayWrapper.c \
duke@0 97 PollArrayWrapper.c \
duke@0 98 InheritedChannel.c \
duke@0 99 NativeThread.c
duke@0 100
duke@0 101 FILES_export += \
duke@0 102 sun/nio/ch/EPollArrayWrapper.java \
duke@0 103 sun/nio/ch/InheritedChannel.java \
duke@0 104 sun/nio/ch/NativeThread.java
duke@0 105 endif # PLATFORM = linux
duke@0 106
duke@0 107 # Find platform-specific C source files
duke@0 108 #
duke@0 109 vpath %.c $(PLATFORM_SRC)/native/sun/nio/ch
duke@0 110 vpath %.c $(SHARE_SRC)/native/sun/nio/ch
duke@0 111
duke@0 112 #
duke@0 113 # Various variables
duke@0 114 #
duke@0 115
duke@0 116 JAVALIB = # Don't self-link
duke@0 117
duke@0 118 #
duke@0 119 # Access to io_util.c and net_util.c
duke@0 120 #
duke@0 121
duke@0 122 OTHER_INCLUDES += \
duke@0 123 -I$(SHARE_SRC)/native/sun/nio/ch \
duke@0 124 -I$(SHARE_SRC)/native/java/io \
duke@0 125 -I$(SHARE_SRC)/native/java/net \
duke@0 126 -I$(PLATFORM_SRC)/native/java/net \
duke@0 127 -I$(CLASSHDRDIR)/../../../java.lang/java/CClassHeaders
duke@0 128
duke@0 129 ifeq ($(PLATFORM),windows)
duke@0 130 OTHER_LDLIBS += $(JVMLIB) ws2_32.lib \
duke@0 131 -libpath:$(LIBDIR) java.lib \
duke@0 132 $(OBJDIR)/../../../../sun/java.net/net/$(OBJDIRNAME)/net.lib \
duke@0 133 $(OBJDIR)/../../../java.lang/java/$(OBJDIRNAME)/io_util.obj \
duke@0 134 $(OBJDIR)/../../../java.lang/java/$(OBJDIRNAME)/FileDescriptor_md.obj
duke@0 135 endif
duke@0 136 ifeq ($(PLATFORM), linux)
duke@0 137 OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread -ldl
duke@0 138 endif
duke@0 139 ifeq ($(PLATFORM), solaris)
duke@0 140 OTHER_LDLIBS += $(JVMLIB) $(LIBSOCKET) -lposix4 -ldl \
duke@0 141 -L$(LIBDIR)/$(LIBARCH) -ljava -lnet
duke@0 142 endif # PLATFORM
duke@0 143
duke@0 144 #
duke@0 145 # Rules
duke@0 146 #
duke@0 147
duke@0 148 build: sources
duke@0 149
duke@0 150 clean clobber::
duke@0 151 $(RM) -r $(NIO_GEN) $(SNIO_GEN)
duke@0 152 $(RM) -r $(CLASSDESTDIR)/java/nio
duke@0 153 $(RM) -r $(CLASSDESTDIR)/sun/nio
duke@0 154
duke@0 155 ifeq ($(PLATFORM), solaris)
duke@0 156 FILES_m = mapfile-solaris
duke@0 157 endif
duke@0 158 ifeq ($(PLATFORM), linux)
duke@0 159 FILES_m = mapfile-linux
duke@0 160 endif
duke@0 161 include $(BUILDDIR)/common/Mapfile-vers.gmk
duke@0 162 include $(BUILDDIR)/common/Library.gmk
duke@0 163
duke@0 164 #
duke@0 165 # Generate source files
duke@0 166 #
duke@0 167
duke@0 168 SPP = spp.sh
duke@0 169 SPP_CMD = $(SH) $(SPP)
duke@0 170
duke@0 171 FILES_genout = $(FILES_gen:%.java=$(GENSRCDIR)/%.java)
duke@0 172
duke@0 173 BUF_SRC=$(NIO_SRC)
duke@0 174 CH_SRC=$(NIO_SRC)/channels
duke@0 175 CS_SRC=$(NIO_SRC)/charset
duke@0 176 SCH_SRC=$(SNIO_SRC)/ch
duke@0 177 SCS_SRC=$(SNIO_SRC)/cs
duke@0 178
duke@0 179 BUF_GEN=$(NIO_GEN)
duke@0 180 CH_GEN=$(NIO_GEN)/channels
duke@0 181 CS_GEN=$(NIO_GEN)/charset
duke@0 182 SCH_GEN=$(SNIO_GEN)/ch
duke@0 183 SCS_GEN=$(SNIO_GEN)/cs
duke@0 184
duke@0 185 sources: $(SPP) $(FILES_genout)
duke@0 186
duke@0 187 #
duke@0 188 # Generated buffer classes
duke@0 189 #
duke@0 190
duke@0 191 GEN_BUFFER_SH = genBuffer.sh
duke@0 192
ohair@281 193 GEN_BUFFER_CMD = SPP="$(SPP_CMD)" NAWK="$(NAWK)" SED="$(SED)" SH="$(SH)" \
duke@0 194 $(SH) $(GEN_BUFFER_SH)
duke@0 195
duke@0 196 # Public abstract buffer classes
duke@0 197 #
duke@0 198 $(BUF_GEN)/ByteBuffer.java: $(BUF_SRC)/X-Buffer.java \
duke@0 199 $(BUF_SRC)/X-Buffer-bin.java \
duke@0 200 $(GEN_BUFFER_SH)
duke@0 201 $(prep-target)
duke@0 202 @$(RM) $@.temp
duke@0 203 TYPE=byte BIN=1 SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 204 $(MV) $@.temp $@
duke@0 205 $(BUF_GEN)/CharBuffer.java: $(BUF_SRC)/X-Buffer.java $(GEN_BUFFER_SH)
duke@0 206 $(prep-target)
duke@0 207 @$(RM) $@.temp
duke@0 208 TYPE=char SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 209 $(MV) $@.temp $@
duke@0 210 $(BUF_GEN)/ShortBuffer.java: $(BUF_SRC)/X-Buffer.java $(GEN_BUFFER_SH)
duke@0 211 $(prep-target)
duke@0 212 @$(RM) $@.temp
duke@0 213 TYPE=short SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 214 $(MV) $@.temp $@
duke@0 215 $(BUF_GEN)/IntBuffer.java: $(BUF_SRC)/X-Buffer.java $(GEN_BUFFER_SH)
duke@0 216 $(prep-target)
duke@0 217 @$(RM) $@.temp
duke@0 218 TYPE=int SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 219 $(MV) $@.temp $@
duke@0 220 $(BUF_GEN)/LongBuffer.java: $(BUF_SRC)/X-Buffer.java $(GEN_BUFFER_SH)
duke@0 221 $(prep-target)
duke@0 222 @$(RM) $@.temp
duke@0 223 TYPE=long SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 224 $(MV) $@.temp $@
duke@0 225 $(BUF_GEN)/FloatBuffer.java: $(BUF_SRC)/X-Buffer.java $(GEN_BUFFER_SH)
duke@0 226 $(prep-target)
duke@0 227 @$(RM) $@.temp
duke@0 228 TYPE=float SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 229 $(MV) $@.temp $@
duke@0 230 $(BUF_GEN)/DoubleBuffer.java: $(BUF_SRC)/X-Buffer.java $(GEN_BUFFER_SH)
duke@0 231 $(prep-target)
duke@0 232 @$(RM) $@.temp
duke@0 233 TYPE=double SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 234 $(MV) $@.temp $@
duke@0 235
duke@0 236 # Buffers whose contents are heap-allocated
duke@0 237 #
duke@0 238 $(BUF_GEN)/HeapByteBuffer.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 239 $(prep-target)
duke@0 240 @$(RM) $@.temp
duke@0 241 TYPE=byte SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 242 $(MV) $@.temp $@
duke@0 243 $(BUF_GEN)/HeapByteBuffer%.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 244 $(prep-target)
duke@0 245 @$(RM) $@.temp
duke@0 246 TYPE=byte RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 247 $(MV) $@.temp $@
duke@0 248 $(BUF_GEN)/HeapCharBuffer.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 249 $(prep-target)
duke@0 250 @$(RM) $@.temp
duke@0 251 TYPE=char SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 252 $(MV) $@.temp $@
duke@0 253 $(BUF_GEN)/HeapCharBuffer%.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 254 $(prep-target)
duke@0 255 @$(RM) $@.temp
duke@0 256 TYPE=char RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 257 $(MV) $@.temp $@
duke@0 258 $(BUF_GEN)/HeapShortBuffer.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 259 $(prep-target)
duke@0 260 @$(RM) $@.temp
duke@0 261 TYPE=short SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 262 $(MV) $@.temp $@
duke@0 263 $(BUF_GEN)/HeapShortBuffer%.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 264 $(prep-target)
duke@0 265 @$(RM) $@.temp
duke@0 266 TYPE=short RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 267 $(MV) $@.temp $@
duke@0 268 $(BUF_GEN)/HeapIntBuffer.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 269 $(prep-target)
duke@0 270 @$(RM) $@.temp
duke@0 271 TYPE=int SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 272 $(MV) $@.temp $@
duke@0 273 $(BUF_GEN)/HeapIntBuffer%.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 274 $(prep-target)
duke@0 275 @$(RM) $@.temp
duke@0 276 TYPE=int RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 277 $(MV) $@.temp $@
duke@0 278 $(BUF_GEN)/HeapLongBuffer.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 279 $(prep-target)
duke@0 280 @$(RM) $@.temp
duke@0 281 TYPE=long SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 282 $(MV) $@.temp $@
duke@0 283 $(BUF_GEN)/HeapLongBuffer%.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 284 $(prep-target)
duke@0 285 @$(RM) $@.temp
duke@0 286 TYPE=long RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 287 $(MV) $@.temp $@
duke@0 288 $(BUF_GEN)/HeapFloatBuffer.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 289 $(prep-target)
duke@0 290 @$(RM) $@.temp
duke@0 291 TYPE=float SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 292 $(MV) $@.temp $@
duke@0 293 $(BUF_GEN)/HeapFloatBuffer%.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 294 $(prep-target)
duke@0 295 @$(RM) $@.temp
duke@0 296 TYPE=float RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 297 $(MV) $@.temp $@
duke@0 298 $(BUF_GEN)/HeapDoubleBuffer.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 299 $(prep-target)
duke@0 300 @$(RM) $@.temp
duke@0 301 TYPE=double SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 302 $(MV) $@.temp $@
duke@0 303 $(BUF_GEN)/HeapDoubleBuffer%.java: $(BUF_SRC)/Heap-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 304 $(prep-target)
duke@0 305 @$(RM) $@.temp
duke@0 306 TYPE=double RW=$* SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 307 $(MV) $@.temp $@
duke@0 308
duke@0 309 # Direct byte buffer
duke@0 310 #
duke@0 311 $(BUF_GEN)/DirectByteBuffer.java: $(BUF_SRC)/Direct-X-Buffer.java \
duke@0 312 $(BUF_SRC)/Direct-X-Buffer.java \
duke@0 313 $(GEN_BUFFER_SH)
duke@0 314 $(prep-target)
duke@0 315 @$(RM) $@.temp
duke@0 316 TYPE=byte BIN=1 SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 317 $(MV) $@.temp $@
duke@0 318 $(BUF_GEN)/DirectByteBuffer%.java: $(BUF_SRC)/Direct-X-Buffer.java \
duke@0 319 $(BUF_SRC)/Direct-X-Buffer.java \
duke@0 320 $(GEN_BUFFER_SH)
duke@0 321 $(prep-target)
duke@0 322 @$(RM) $@.temp
duke@0 323 TYPE=byte RW=$* BIN=1 SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 324 $(MV) $@.temp $@
duke@0 325
duke@0 326 # Unswapped views of direct byte buffers
duke@0 327 #
duke@0 328 $(BUF_GEN)/DirectCharBufferU.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 329 $(prep-target)
duke@0 330 @$(RM) $@.temp
duke@0 331 TYPE=char BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 332 $(MV) $@.temp $@
duke@0 333 $(BUF_GEN)/DirectCharBuffer%U.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 334 $(prep-target)
duke@0 335 @$(RM) $@.temp
duke@0 336 TYPE=char RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 337 $(MV) $@.temp $@
duke@0 338 $(BUF_GEN)/DirectShortBufferU.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 339 $(prep-target)
duke@0 340 @$(RM) $@.temp
duke@0 341 TYPE=short BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 342 $(MV) $@.temp $@
duke@0 343 $(BUF_GEN)/DirectShortBuffer%U.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 344 $(prep-target)
duke@0 345 @$(RM) $@.temp
duke@0 346 TYPE=short RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 347 $(MV) $@.temp $@
duke@0 348 $(BUF_GEN)/DirectIntBufferU.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 349 $(prep-target)
duke@0 350 @$(RM) $@.temp
duke@0 351 TYPE=int BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 352 $(MV) $@.temp $@
duke@0 353 $(BUF_GEN)/DirectIntBuffer%U.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 354 $(prep-target)
duke@0 355 @$(RM) $@.temp
duke@0 356 TYPE=int RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 357 $(MV) $@.temp $@
duke@0 358 $(BUF_GEN)/DirectLongBufferU.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 359 $(prep-target)
duke@0 360 @$(RM) $@.temp
duke@0 361 TYPE=long BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 362 $(MV) $@.temp $@
duke@0 363 $(BUF_GEN)/DirectLongBuffer%U.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 364 $(prep-target)
duke@0 365 @$(RM) $@.temp
duke@0 366 TYPE=long RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 367 $(MV) $@.temp $@
duke@0 368 $(BUF_GEN)/DirectFloatBufferU.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 369 $(prep-target)
duke@0 370 @$(RM) $@.temp
duke@0 371 TYPE=float BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 372 $(MV) $@.temp $@
duke@0 373 $(BUF_GEN)/DirectFloatBuffer%U.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 374 $(prep-target)
duke@0 375 @$(RM) $@.temp
duke@0 376 TYPE=float RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 377 $(MV) $@.temp $@
duke@0 378 $(BUF_GEN)/DirectDoubleBufferU.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 379 $(prep-target)
duke@0 380 @$(RM) $@.temp
duke@0 381 TYPE=double BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 382 $(MV) $@.temp $@
duke@0 383 $(BUF_GEN)/DirectDoubleBuffer%U.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 384 $(prep-target)
duke@0 385 @$(RM) $@.temp
duke@0 386 TYPE=double RW=$* BO=U SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 387 $(MV) $@.temp $@
duke@0 388
duke@0 389 # Swapped views of direct byte buffers
duke@0 390 #
duke@0 391 $(BUF_GEN)/DirectCharBufferS.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 392 $(prep-target)
duke@0 393 @$(RM) $@.temp
duke@0 394 TYPE=char BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 395 $(MV) $@.temp $@
duke@0 396 $(BUF_GEN)/DirectCharBuffer%S.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 397 $(prep-target)
duke@0 398 @$(RM) $@.temp
duke@0 399 TYPE=char RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 400 $(MV) $@.temp $@
duke@0 401 $(BUF_GEN)/DirectShortBufferS.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 402 $(prep-target)
duke@0 403 @$(RM) $@.temp
duke@0 404 TYPE=short BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 405 $(MV) $@.temp $@
duke@0 406 $(BUF_GEN)/DirectShortBuffer%S.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 407 $(prep-target)
duke@0 408 @$(RM) $@.temp
duke@0 409 TYPE=short RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 410 $(MV) $@.temp $@
duke@0 411 $(BUF_GEN)/DirectIntBufferS.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 412 $(prep-target)
duke@0 413 @$(RM) $@.temp
duke@0 414 TYPE=int BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 415 $(MV) $@.temp $@
duke@0 416 $(BUF_GEN)/DirectIntBuffer%S.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 417 $(prep-target)
duke@0 418 @$(RM) $@.temp
duke@0 419 TYPE=int RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 420 $(MV) $@.temp $@
duke@0 421 $(BUF_GEN)/DirectLongBufferS.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 422 $(prep-target)
duke@0 423 @$(RM) $@.temp
duke@0 424 TYPE=long BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 425 $(MV) $@.temp $@
duke@0 426 $(BUF_GEN)/DirectLongBuffer%S.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 427 $(prep-target)
duke@0 428 @$(RM) $@.temp
duke@0 429 TYPE=long RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 430 $(MV) $@.temp $@
duke@0 431 $(BUF_GEN)/DirectFloatBufferS.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 432 $(prep-target)
duke@0 433 @$(RM) $@.temp
duke@0 434 TYPE=float BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 435 $(MV) $@.temp $@
duke@0 436 $(BUF_GEN)/DirectFloatBuffer%S.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 437 $(prep-target)
duke@0 438 @$(RM) $@.temp
duke@0 439 TYPE=float RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 440 $(MV) $@.temp $@
duke@0 441 $(BUF_GEN)/DirectDoubleBufferS.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 442 $(prep-target)
duke@0 443 @$(RM) $@.temp
duke@0 444 TYPE=double BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 445 $(MV) $@.temp $@
duke@0 446 $(BUF_GEN)/DirectDoubleBuffer%S.java: $(BUF_SRC)/Direct-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 447 $(prep-target)
duke@0 448 @$(RM) $@.temp
duke@0 449 TYPE=double RW=$* BO=S SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 450 $(MV) $@.temp $@
duke@0 451
duke@0 452 # Big-endian views of byte buffers
duke@0 453 #
duke@0 454 $(BUF_GEN)/ByteBufferAsCharBufferB.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 455 $(prep-target)
duke@0 456 @$(RM) $@.temp
duke@0 457 TYPE=char BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 458 $(MV) $@.temp $@
duke@0 459 $(BUF_GEN)/ByteBufferAsCharBuffer%B.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 460 $(prep-target)
duke@0 461 @$(RM) $@.temp
duke@0 462 TYPE=char RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 463 $(MV) $@.temp $@
duke@0 464 $(BUF_GEN)/ByteBufferAsShortBufferB.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 465 $(prep-target)
duke@0 466 @$(RM) $@.temp
duke@0 467 TYPE=short BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 468 $(MV) $@.temp $@
duke@0 469 $(BUF_GEN)/ByteBufferAsShortBuffer%B.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 470 $(prep-target)
duke@0 471 @$(RM) $@.temp
duke@0 472 TYPE=short RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 473 $(MV) $@.temp $@
duke@0 474 $(BUF_GEN)/ByteBufferAsIntBufferB.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 475 $(prep-target)
duke@0 476 @$(RM) $@.temp
duke@0 477 TYPE=int BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 478 $(MV) $@.temp $@
duke@0 479 $(BUF_GEN)/ByteBufferAsIntBuffer%B.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 480 $(prep-target)
duke@0 481 @$(RM) $@.temp
duke@0 482 TYPE=int RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 483 $(MV) $@.temp $@
duke@0 484 $(BUF_GEN)/ByteBufferAsLongBufferB.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 485 $(prep-target)
duke@0 486 @$(RM) $@.temp
duke@0 487 TYPE=long BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 488 $(MV) $@.temp $@
duke@0 489 $(BUF_GEN)/ByteBufferAsLongBuffer%B.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 490 $(prep-target)
duke@0 491 @$(RM) $@.temp
duke@0 492 TYPE=long RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 493 $(MV) $@.temp $@
duke@0 494 $(BUF_GEN)/ByteBufferAsFloatBufferB.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 495 $(prep-target)
duke@0 496 @$(RM) $@.temp
duke@0 497 TYPE=float BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 498 $(MV) $@.temp $@
duke@0 499 $(BUF_GEN)/ByteBufferAsFloatBuffer%B.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 500 $(prep-target)
duke@0 501 @$(RM) $@.temp
duke@0 502 TYPE=float RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 503 $(MV) $@.temp $@
duke@0 504 $(BUF_GEN)/ByteBufferAsDoubleBufferB.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 505 $(prep-target)
duke@0 506 @$(RM) $@.temp
duke@0 507 TYPE=double BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 508 $(MV) $@.temp $@
duke@0 509 $(BUF_GEN)/ByteBufferAsDoubleBuffer%B.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 510 $(prep-target)
duke@0 511 @$(RM) $@.temp
duke@0 512 TYPE=double RW=$* BO=B SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 513 $(MV) $@.temp $@
duke@0 514
duke@0 515 # Little-endian views of byte buffers
duke@0 516 #
duke@0 517 $(BUF_GEN)/ByteBufferAsCharBufferL.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 518 $(prep-target)
duke@0 519 @$(RM) $@.temp
duke@0 520 TYPE=char BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 521 $(MV) $@.temp $@
duke@0 522 $(BUF_GEN)/ByteBufferAsCharBuffer%L.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 523 $(prep-target)
duke@0 524 @$(RM) $@.temp
duke@0 525 TYPE=char RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 526 $(MV) $@.temp $@
duke@0 527 $(BUF_GEN)/ByteBufferAsShortBufferL.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 528 $(prep-target)
duke@0 529 @$(RM) $@.temp
duke@0 530 TYPE=short BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 531 $(MV) $@.temp $@
duke@0 532 $(BUF_GEN)/ByteBufferAsShortBuffer%L.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 533 $(prep-target)
duke@0 534 @$(RM) $@.temp
duke@0 535 TYPE=short RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 536 $(MV) $@.temp $@
duke@0 537 $(BUF_GEN)/ByteBufferAsIntBufferL.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 538 $(prep-target)
duke@0 539 @$(RM) $@.temp
duke@0 540 TYPE=int BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 541 $(MV) $@.temp $@
duke@0 542 $(BUF_GEN)/ByteBufferAsIntBuffer%L.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 543 $(prep-target)
duke@0 544 @$(RM) $@.temp
duke@0 545 TYPE=int RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 546 $(MV) $@.temp $@
duke@0 547 $(BUF_GEN)/ByteBufferAsLongBufferL.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 548 $(prep-target)
duke@0 549 @$(RM) $@.temp
duke@0 550 TYPE=long BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 551 $(MV) $@.temp $@
duke@0 552 $(BUF_GEN)/ByteBufferAsLongBuffer%L.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 553 $(prep-target)
duke@0 554 @$(RM) $@.temp
duke@0 555 TYPE=long RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 556 $(MV) $@.temp $@
duke@0 557 $(BUF_GEN)/ByteBufferAsFloatBufferL.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 558 $(prep-target)
duke@0 559 @$(RM) $@.temp
duke@0 560 TYPE=float BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 561 $(MV) $@.temp $@
duke@0 562 $(BUF_GEN)/ByteBufferAsFloatBuffer%L.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 563 $(prep-target)
duke@0 564 @$(RM) $@.temp
duke@0 565 TYPE=float RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 566 $(MV) $@.temp $@
duke@0 567 $(BUF_GEN)/ByteBufferAsDoubleBufferL.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 568 $(prep-target)
duke@0 569 @$(RM) $@.temp
duke@0 570 TYPE=double BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 571 $(MV) $@.temp $@
duke@0 572 $(BUF_GEN)/ByteBufferAsDoubleBuffer%L.java: $(BUF_SRC)/ByteBufferAs-X-Buffer.java $(GEN_BUFFER_SH)
duke@0 573 $(prep-target)
duke@0 574 @$(RM) $@.temp
duke@0 575 TYPE=double RW=$* BO=L SRC=$< DST=$@.temp $(GEN_BUFFER_CMD)
duke@0 576 $(MV) $@.temp $@
duke@0 577
duke@0 578 #
duke@0 579 # Generated coder classes
duke@0 580 #
duke@0 581
duke@0 582 GEN_CODER_SH = genCoder.sh
duke@0 583
ohair@281 584 GEN_CODER_CMD = SPP="$(SPP_CMD)" SED="$(SED)" NAWK="$(NAWK)" SH="$(SH)" $(SH) $(GEN_CODER_SH)
duke@0 585
duke@0 586 $(CS_GEN)/CharsetDecoder.java: $(CS_SRC)/Charset-X-Coder.java $(GEN_CODER_SH)
duke@0 587 $(prep-target)
duke@0 588 @$(RM) $@.temp
duke@0 589 $(GEN_CODER_CMD) decoder $< $@.temp
duke@0 590 $(MV) $@.temp $@
duke@0 591
duke@0 592 $(CS_GEN)/CharsetEncoder.java: $(CS_SRC)/Charset-X-Coder.java $(GEN_CODER_SH)
duke@0 593 $(prep-target)
duke@0 594 @$(RM) $@.temp
duke@0 595 $(GEN_CODER_CMD) encoder $< $@.temp
duke@0 596 $(MV) $@.temp $@
duke@0 597
duke@0 598 #
duke@0 599 # Generated exception classes
duke@0 600 #
duke@0 601
duke@0 602 GEN_EX_SH = genExceptions.sh
duke@0 603
ohair@281 604 GEN_EX_CMD = NAWK="$(NAWK)" SH="$(SH)" $(SH) $(GEN_EX_SH)
duke@0 605
duke@0 606 $(CH_GEN)/%Exception.java: genExceptions.sh $(CH_SRC)/exceptions
duke@0 607 $(prep-target)
duke@0 608 @$(RM) $@.temp
duke@0 609 $(GEN_EX_CMD) $(CH_SRC)/exceptions $(CH_GEN)
duke@0 610
duke@0 611 $(CS_GEN)/%Exception.java: genExceptions.sh $(CS_SRC)/exceptions
duke@0 612 $(prep-target)
duke@0 613 @$(RM) $@.temp
duke@0 614 $(GEN_EX_CMD) $(CS_SRC)/exceptions $(CS_GEN)
duke@0 615
duke@0 616 $(BUF_GEN)/%Exception.java: genExceptions.sh $(BUF_SRC)/exceptions
duke@0 617 $(prep-target)
duke@0 618 @$(RM) $@.temp
duke@0 619 $(GEN_EX_CMD) $(BUF_SRC)/exceptions $(BUF_GEN)
duke@0 620
duke@0 621 $(SCH_GEN)/%Exception.java: genExceptions.sh $(SCH_SRC)/exceptions
duke@0 622 $(prep-target)
duke@0 623 @$(RM) $@.temp
duke@0 624 $(GEN_EX_CMD) $(SCH_SRC)/exceptions $(SCH_GEN)
duke@0 625
duke@0 626
duke@0 627 #
duke@0 628 # Generated charset-provider classes
duke@0 629 #
duke@0 630
duke@0 631 HASHER_JARFILE = $(BUILDTOOLJARDIR)/hasher.jar
duke@0 632
duke@0 633 $(SCS_GEN)/StandardCharsets.java: genCharsetProvider.sh \
duke@0 634 $(HASHER_JARFILE) $(SCS_SRC)/standard-charsets
duke@0 635 $(prep-target)
duke@0 636 @$(RM) $@.temp
ohair@281 637 NAWK="$(NAWK)" TEMPDIR="$(TEMPDIR)" SH="$(SH)" \
duke@0 638 HASHER="$(BOOT_JAVA_CMD) -jar $(HASHER_JARFILE)" \
ohair@6 639 $(SH) -e genCharsetProvider.sh $(SCS_SRC)/standard-charsets $(SCS_GEN)
duke@0 640
duke@0 641 .PHONY: sources