jdk/make/java/nio/Makefile
changeset 10074 d2c097b2d601
parent 8796 604a43386301
child 10137 d92637d3d673
equal deleted inserted replaced
10073:327c8d3193bd 10074:d2c097b2d601
   253 	sun/nio/fs/GnomeFileTypeDetector.java \
   253 	sun/nio/fs/GnomeFileTypeDetector.java \
   254 	sun/nio/fs/LinuxNativeDispatcher.java \
   254 	sun/nio/fs/LinuxNativeDispatcher.java \
   255 	sun/nio/fs/LinuxWatchService.java \
   255 	sun/nio/fs/LinuxWatchService.java \
   256 	sun/nio/fs/UnixCopyFile.java \
   256 	sun/nio/fs/UnixCopyFile.java \
   257 	sun/nio/fs/UnixNativeDispatcher.java
   257 	sun/nio/fs/UnixNativeDispatcher.java
   258 	
   258 
   259 FILES_gen += \
   259 FILES_gen += \
   260 	sun/nio/fs/UnixConstants.java
   260 	sun/nio/fs/UnixConstants.java
   261 endif # PLATFORM = linux
   261 endif # PLATFORM = linux
   262 
   262 
   263 #
   263 #
   769 #
   769 #
   770 # Generated exception classes
   770 # Generated exception classes
   771 #
   771 #
   772 
   772 
   773 GEN_EX_SH = genExceptions.sh
   773 GEN_EX_SH = genExceptions.sh
   774  
   774 
   775 GEN_EX_CMD = NAWK="$(NAWK)" SH="$(SH)" $(SH) $(GEN_EX_SH)
   775 GEN_EX_CMD = NAWK="$(NAWK)" SH="$(SH)" $(SH) $(GEN_EX_SH)
   776 
   776 
   777 $(CH_GEN)/%Exception.java: genExceptions.sh $(CH_SRC)/exceptions
   777 $(CH_GEN)/%Exception.java: genExceptions.sh $(CH_SRC)/exceptions
   778 	$(prep-target)
   778 	$(prep-target)
   779 	@$(RM) $@.temp
   779 	@$(RM) $@.temp
   818 $(TEMPDIR)/$(GENSOR_SRC) : $(GENSOR_SRC)
   818 $(TEMPDIR)/$(GENSOR_SRC) : $(GENSOR_SRC)
   819 	$(install-file)
   819 	$(install-file)
   820 
   820 
   821 $(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC)
   821 $(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC)
   822 	$(prep-target)
   822 	$(prep-target)
   823 	($(CD) $(TEMPDIR); $(HOST_CC) $(CPPFLAGS) $(LDDFLAGS) \
   823 	($(CD) $(TEMPDIR); $(CC) $(CPPFLAGS) $(LDDFLAGS) \
   824 	   -o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC))
   824 	   -o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC))
   825 
   825 
       
   826 ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
       
   827 $(SCH_GEN)/SocketOptionRegistry.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/ch/SocketOptionRegistry-$(PLATFORM)-$(ARCH).java
       
   828 	$(prep-target)
       
   829 	$(CP) $< $@
       
   830 else 
   826 $(SCH_GEN)/SocketOptionRegistry.java: $(GENSOR_EXE)
   831 $(SCH_GEN)/SocketOptionRegistry.java: $(GENSOR_EXE)
   827 	$(prep-target)
   832 	$(prep-target)
   828 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(SOR_COPYRIGHT_YEARS)" > $@
   833 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(SOR_COPYRIGHT_YEARS)" > $@
   829 	$(GENSOR_EXE) >> $@
   834 	$(GENSOR_EXE) >> $@
   830 
   835 endif
   831 #
   836 #
   832 # Generated sun.nio.cs SingleByte classes
   837 # Generated sun.nio.cs SingleByte classes
   833 #
   838 #
   834 GENCSSRC = $(BUILDDIR)/tools/CharsetMapping
   839 GENCSSRC = $(BUILDDIR)/tools/CharsetMapping
   835 CHARSETMAPPING_JARFILE = $(BUILDTOOLJARDIR)/charsetmapping.jar
   840 CHARSETMAPPING_JARFILE = $(BUILDTOOLJARDIR)/charsetmapping.jar
   849 GENUC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENUC_SRC) | \
   854 GENUC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENUC_SRC) | \
   850 	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
   855 	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
   851 
   856 
   852 $(GENUC_EXE) : $(GENUC_SRC)
   857 $(GENUC_EXE) : $(GENUC_SRC)
   853 	$(prep-target)
   858 	$(prep-target)
   854 	$(HOST_CC) $(CPPFLAGS) -o $@ $(GENUC_SRC)
   859 	$(CC) $(CPPFLAGS) -o $@ $(GENUC_SRC)
   855 
   860 
       
   861 ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
       
   862 $(SFS_GEN)/UnixConstants.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/fs/UnixConstants-$(PLATFORM)-$(ARCH).java
       
   863 	$(prep-target)
       
   864 	$(CP) $< $@
       
   865 else
   856 $(SFS_GEN)/UnixConstants.java: $(GENUC_EXE)
   866 $(SFS_GEN)/UnixConstants.java: $(GENUC_EXE)
   857 	$(prep-target)
   867 	$(prep-target)
   858 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENUC_COPYRIGHT_YEARS)" > $@
   868 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENUC_COPYRIGHT_YEARS)" > $@
   859 	$(GENUC_EXE) >> $@
   869 	$(GENUC_EXE) >> $@
       
   870 endif
   860 
   871 
   861 GENSC_SRC = $(PLATFORM_SRC)/native/sun/nio/fs/genSolarisConstants.c
   872 GENSC_SRC = $(PLATFORM_SRC)/native/sun/nio/fs/genSolarisConstants.c
   862 
   873 
   863 GENSC_EXE = $(TEMPDIR)/genSolarisConstants
   874 GENSC_EXE = $(TEMPDIR)/genSolarisConstants
   864 
   875 
   865 GENSC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSC_SRC) | \
   876 GENSC_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSC_SRC) | \
   866 	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
   877 	$(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
   867 
   878 
   868 $(GENSC_EXE) : $(GENSC_SRC)
   879 $(GENSC_EXE) : $(GENSC_SRC)
   869 	$(prep-target)
   880 	$(prep-target)
   870 	$(HOST_CC) $(CPPFLAGS) -o $@ $(GENSC_SRC)
   881 	$(CC) $(CPPFLAGS) -o $@ $(GENSC_SRC)
   871 
   882 
       
   883 ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
       
   884 $(SFS_GEN)/SolarisConstants.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/fs/SolarisConstants-$(PLATFORM)-$(ARCH).java
       
   885 	$(prep-target)
       
   886 	$(CP) $< $@
       
   887 else
   872 $(SFS_GEN)/SolarisConstants.java: $(GENSC_EXE)
   888 $(SFS_GEN)/SolarisConstants.java: $(GENSC_EXE)
   873 	$(prep-target)
   889 	$(prep-target)
   874 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENSC_COPYRIGHT_YEARS)" > $@
   890 	NAWK="$(NAWK)" SH="$(SH)" $(SH) -e addNotices.sh "$(GENSC_COPYRIGHT_YEARS)" > $@
   875 	$(GENSC_EXE) >> $@
   891 	$(GENSC_EXE) >> $@
       
   892 endif
   876 
   893 
   877 .PHONY: sources 
   894 .PHONY: sources