< prev index next >

make/gensrc/GensrcMisc.gmk

Print this page




  64 # preprocessor.
  65 define generate-preproc-src
  66         $(call MakeDir, $(@D))
  67         ( $(NAWK) '/@@END_COPYRIGHT@@/{exit}1' $< && \
  68           $(CPP) $(CPP_FLAGS) $(SYSROOT_CFLAGS) $(CFLAGS_JDKLIB) $< \
  69               2> >($(GREP) -v '^$(<F)$$' >&2) \
  70               | $(NAWK) '/@@START_HERE@@/,0' \
  71               |  $(SED) -e 's/@@START_HERE@@/\/\/ AUTOMATICALLY GENERATED FILE - DO NOT EDIT/' \
  72               -e 's/PREFIX_//' -e 's/^#.*//' \
  73         ) > $@
  74 endef
  75 
  76 GENSRC_SOR_FILE += $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/nio/ch/SocketOptionRegistry.java
  77 
  78 $(GENSRC_SOR_FILE): \
  79     $(TOPDIR)/src/java.base/share/classes/sun/nio/ch/SocketOptionRegistry.java.template
  80         $(generate-preproc-src)
  81 
  82 GENSRC_JAVA_BASE += $(GENSRC_SOR_FILE)
  83 











  84 ################################################################################
  85 
  86 ifneq ($(OPENJDK_TARGET_OS), windows)
  87 
  88   GENSRC_UC_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/nio/fs/UnixConstants.java
  89 
  90   $(GENSRC_UC_FILE): \
  91       $(TOPDIR)/src/java.base/unix/classes/sun/nio/fs/UnixConstants.java.template
  92         $(generate-preproc-src)
  93 
  94   GENSRC_JAVA_BASE += $(GENSRC_UC_FILE)
  95 
  96 endif
  97 
  98 ################################################################################
  99 
 100 ifeq ($(OPENJDK_TARGET_OS), solaris)
 101 
 102   GENSRC_SC_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/nio/fs/SolarisConstants.java
 103 




  64 # preprocessor.
  65 define generate-preproc-src
  66         $(call MakeDir, $(@D))
  67         ( $(NAWK) '/@@END_COPYRIGHT@@/{exit}1' $< && \
  68           $(CPP) $(CPP_FLAGS) $(SYSROOT_CFLAGS) $(CFLAGS_JDKLIB) $< \
  69               2> >($(GREP) -v '^$(<F)$$' >&2) \
  70               | $(NAWK) '/@@START_HERE@@/,0' \
  71               |  $(SED) -e 's/@@START_HERE@@/\/\/ AUTOMATICALLY GENERATED FILE - DO NOT EDIT/' \
  72               -e 's/PREFIX_//' -e 's/^#.*//' \
  73         ) > $@
  74 endef
  75 
  76 GENSRC_SOR_FILE += $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/nio/ch/SocketOptionRegistry.java
  77 
  78 $(GENSRC_SOR_FILE): \
  79     $(TOPDIR)/src/java.base/share/classes/sun/nio/ch/SocketOptionRegistry.java.template
  80         $(generate-preproc-src)
  81 
  82 GENSRC_JAVA_BASE += $(GENSRC_SOR_FILE)
  83 
  84 ifeq ($(OPENJDK_TARGET_OS), linux)
  85   GENSRC_RSOR_FILE += $(SUPPORT_OUTPUTDIR)/gensrc/jdk.net/rdma/ch/RdmaSocketOptionRegistry.java
  86 
  87   $(GENSRC_RSOR_FILE): \
  88       $(TOPDIR)/src/jdk.net/linux/classes/rdma/ch/RdmaSocketOptionRegistry.java.template
  89         $(generate-preproc-src)
  90 
  91   GENSRC_JAVA_BASE += $(GENSRC_RSOR_FILE)
  92 
  93 endif
  94 
  95 ################################################################################
  96 
  97 ifneq ($(OPENJDK_TARGET_OS), windows)
  98 
  99   GENSRC_UC_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/nio/fs/UnixConstants.java
 100 
 101   $(GENSRC_UC_FILE): \
 102       $(TOPDIR)/src/java.base/unix/classes/sun/nio/fs/UnixConstants.java.template
 103         $(generate-preproc-src)
 104 
 105   GENSRC_JAVA_BASE += $(GENSRC_UC_FILE)
 106 
 107 endif
 108 
 109 ################################################################################
 110 
 111 ifeq ($(OPENJDK_TARGET_OS), solaris)
 112 
 113   GENSRC_SC_FILE := $(SUPPORT_OUTPUTDIR)/gensrc/java.base/sun/nio/fs/SolarisConstants.java
 114 


< prev index next >