jdk/make/java/nio/Makefile
changeset 1152 29d6145d1097
parent 914 f7883d455c62
child 1713 f8b8bfa64fc1
equal deleted inserted replaced
1151:4070cecdb99d 1152:29d6145d1097
    54 	sun/nio/ch/DevPollArrayWrapper.java \
    54 	sun/nio/ch/DevPollArrayWrapper.java \
    55 	sun/nio/ch/DevPollSelectorImpl.java \
    55 	sun/nio/ch/DevPollSelectorImpl.java \
    56         sun/nio/ch/DevPollSelectorProvider.java \
    56         sun/nio/ch/DevPollSelectorProvider.java \
    57 	sun/nio/ch/InheritedChannel.java \
    57 	sun/nio/ch/InheritedChannel.java \
    58         sun/nio/ch/PollSelectorProvider.java \
    58         sun/nio/ch/PollSelectorProvider.java \
    59         sun/nio/ch/PollSelectorImpl.java 
    59         sun/nio/ch/PollSelectorImpl.java
    60 
    60 
    61 FILES_c += \
    61 FILES_c += \
    62         DevPollArrayWrapper.c \
    62         DevPollArrayWrapper.c \
    63 	InheritedChannel.c \
    63 	InheritedChannel.c \
    64         PollArrayWrapper.c \
    64 	NativeThread.c \
    65 	NativeThread.c
    65         PollArrayWrapper.c
    66 
    66 
    67 FILES_export += \
    67 FILES_export += \
    68 	sun/nio/ch/DevPollArrayWrapper.java \
    68 	sun/nio/ch/DevPollArrayWrapper.java \
    69 	sun/nio/ch/InheritedChannel.java \
    69 	sun/nio/ch/InheritedChannel.java \
    70 	sun/nio/ch/NativeThread.java 
    70 	sun/nio/ch/NativeThread.java
    71 endif # PLATFORM = solaris
    71 endif # PLATFORM = solaris
    72 
    72 
    73 ifeq ($(PLATFORM), windows)
    73 ifeq ($(PLATFORM), windows)
    74 FILES_java += \
    74 FILES_java += \
    75         sun/nio/ch/WindowsSelectorImpl.java \
    75         sun/nio/ch/WindowsSelectorImpl.java \
    92         sun/nio/ch/PollSelectorProvider.java \
    92         sun/nio/ch/PollSelectorProvider.java \
    93         sun/nio/ch/PollSelectorImpl.java
    93         sun/nio/ch/PollSelectorImpl.java
    94 
    94 
    95 FILES_c += \
    95 FILES_c += \
    96 	EPollArrayWrapper.c \
    96 	EPollArrayWrapper.c \
    97         PollArrayWrapper.c \
       
    98 	InheritedChannel.c \
    97 	InheritedChannel.c \
    99 	NativeThread.c
    98 	NativeThread.c \
       
    99         PollArrayWrapper.c
   100 
   100 
   101 FILES_export += \
   101 FILES_export += \
   102         sun/nio/ch/EPollArrayWrapper.java \
   102         sun/nio/ch/EPollArrayWrapper.java \
   103 	sun/nio/ch/InheritedChannel.java \
   103 	sun/nio/ch/InheritedChannel.java \
   104 	sun/nio/ch/NativeThread.java 
   104 	sun/nio/ch/NativeThread.java
   105 endif # PLATFORM = linux
   105 endif # PLATFORM = linux
   106 
   106 
   107 # Find platform-specific C source files
   107 # Find platform-specific C source files
   108 #
   108 #
   109 vpath %.c $(PLATFORM_SRC)/native/sun/nio/ch
   109 vpath %.c $(PLATFORM_SRC)/native/sun/nio/ch
   616 $(BUF_GEN)/%Exception.java: genExceptions.sh $(BUF_SRC)/exceptions
   616 $(BUF_GEN)/%Exception.java: genExceptions.sh $(BUF_SRC)/exceptions
   617 	$(prep-target)
   617 	$(prep-target)
   618 	@$(RM) $@.temp
   618 	@$(RM) $@.temp
   619 	$(GEN_EX_CMD) $(BUF_SRC)/exceptions $(BUF_GEN)
   619 	$(GEN_EX_CMD) $(BUF_SRC)/exceptions $(BUF_GEN)
   620 
   620 
   621 $(SCH_GEN)/%Exception.java: genExceptions.sh $(SCH_SRC)/exceptions
       
   622 	$(prep-target)
       
   623 	@$(RM) $@.temp
       
   624 	$(GEN_EX_CMD) $(SCH_SRC)/exceptions $(SCH_GEN)
       
   625 
       
   626 
       
   627 #
   621 #
   628 # Generated charset-provider classes
   622 # Generated charset-provider classes
   629 #
   623 #
   630 
   624 
   631 HASHER_JARFILE = $(BUILDTOOLJARDIR)/hasher.jar
   625 HASHER_JARFILE = $(BUILDTOOLJARDIR)/hasher.jar
   636 	@$(RM) $@.temp
   630 	@$(RM) $@.temp
   637 	NAWK="$(NAWK)" TEMPDIR="$(TEMPDIR)" SH="$(SH)" \
   631 	NAWK="$(NAWK)" TEMPDIR="$(TEMPDIR)" SH="$(SH)" \
   638 	  HASHER="$(BOOT_JAVA_CMD) -jar $(HASHER_JARFILE)" \
   632 	  HASHER="$(BOOT_JAVA_CMD) -jar $(HASHER_JARFILE)" \
   639 	  $(SH) -e genCharsetProvider.sh $(SCS_SRC)/standard-charsets $(SCS_GEN)
   633 	  $(SH) -e genCharsetProvider.sh $(SCS_SRC)/standard-charsets $(SCS_GEN)
   640 
   634 
       
   635 #
       
   636 # Generated channel implementation classes.
       
   637 # C source is compiled in TEMPDIR to avoid turds left by Windows compilers.
       
   638 #
       
   639 
       
   640 GENSOR_SRC = $(SHARE_SRC)/native/sun/nio/ch/genSocketOptionRegistry.c
       
   641 
       
   642 GENSOR_EXE = $(TEMPDIR)/genSocketOptionRegistry$(EXE_SUFFIX)
       
   643 
       
   644 SOR_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSOR_SRC) | \
       
   645 	$(NAWK) '/^.*Copyright.*Sun/ { print $$3 }') 
       
   646 
       
   647 $(TEMPDIR)/$(GENSOR_SRC) : $(GENSOR_SRC)
       
   648 	$(install-file)
       
   649 
       
   650 $(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC)
       
   651 	$(prep-target)
       
   652 	($(CD) $(TEMPDIR); $(CC) $(CPPFLAGS) $(LDDFLAGS) \
       
   653 	   -o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC))
       
   654 
       
   655 $(SCH_GEN)/SocketOptionRegistry.java: $(GENSOR_EXE)
       
   656 	$(prep-target)
       
   657 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh $(SOR_COPYRIGHT_YEARS) > $@
       
   658 	$(GENSOR_EXE) >> $@
       
   659 
   641 .PHONY: sources 
   660 .PHONY: sources