< prev index next >

make/gensrc/GensrcMisc.gmk

Print this page




  59         $(MV) $@.tmp $@
  60 
  61 GENSRC_MISC += $(JDK_OUTPUTDIR)/gensrc/sun/tools/jconsole/Version.java
  62 
  63 ##########################################################################################
  64 
  65 GENSRC_MISC += $(JDK_OUTPUTDIR)/gensrc/sun/nio/ch/SocketOptionRegistry.java
  66 
  67 GENSRC_SOR_SRC := $(JDK_TOPDIR)/make/src/native/genconstants/ch
  68 GENSRC_SOR_SRC_FILE := genSocketOptionRegistry.c
  69 GENSRC_SOR_BIN := $(JDK_OUTPUTDIR)/btnative/genSocketOptionRegistry
  70 
  71 SOR_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSRC_SOR_SRC)/$(GENSRC_SOR_SRC_FILE) | \
  72     $(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
  73 
  74 $(eval $(call SetupNativeCompilation,BUILD_GENSRC_SOR_EXE, \
  75     SRC := $(GENSRC_SOR_SRC), \
  76     INCLUDE_FILES := $(GENSRC_SOR_SRC_FILE), \
  77     LANG := C, \
  78     CC := $(BUILD_CC), \
  79     LDEXE := $(BUILD_LD), \
  80     OBJECT_DIR := $(GENSRC_SOR_BIN), \
  81     OUTPUT_DIR := $(GENSRC_SOR_BIN), \
  82     PROGRAM := genSocketOptionRegistry))
  83 
  84 SOR_PREGEN_FILE := $(JDK_TOPDIR)/src/closed/solaris/classes/sun/nio/ch/SocketOptionRegistry-$(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH).java.template
  85 
  86 ifeq ($(wildcard $(SOR_PREGEN_FILE)), )
  87   $(JDK_OUTPUTDIR)/gensrc/sun/nio/ch/SocketOptionRegistry.java: $(BUILD_GENSRC_SOR_EXE)
  88         $(MKDIR) -p $(@D)
  89         $(RM) $@ $@.tmp
  90         NAWK="$(NAWK)" SH="$(SH)" $(SH) -e $(JDK_TOPDIR)/make/scripts/addNotices.sh "$(SOR_COPYRIGHT_YEARS)" > $@.tmp
  91         $(BUILD_GENSRC_SOR_EXE) >> $@.tmp
  92         $(MV) $@.tmp $@
  93 else
  94   $(JDK_OUTPUTDIR)/gensrc/sun/nio/ch/SocketOptionRegistry.java: $(SOR_PREGEN_FILE)
  95         $(call install-file)
  96 endif
  97 
  98 ##########################################################################################
  99 




  59         $(MV) $@.tmp $@
  60 
  61 GENSRC_MISC += $(JDK_OUTPUTDIR)/gensrc/sun/tools/jconsole/Version.java
  62 
  63 ##########################################################################################
  64 
  65 GENSRC_MISC += $(JDK_OUTPUTDIR)/gensrc/sun/nio/ch/SocketOptionRegistry.java
  66 
  67 GENSRC_SOR_SRC := $(JDK_TOPDIR)/make/src/native/genconstants/ch
  68 GENSRC_SOR_SRC_FILE := genSocketOptionRegistry.c
  69 GENSRC_SOR_BIN := $(JDK_OUTPUTDIR)/btnative/genSocketOptionRegistry
  70 
  71 SOR_COPYRIGHT_YEARS = $(shell $(CAT) $(GENSRC_SOR_SRC)/$(GENSRC_SOR_SRC_FILE) | \
  72     $(NAWK) '/^.*Copyright.*Oracle/ { printf "%s %s",$$4,$$5 }')
  73 
  74 $(eval $(call SetupNativeCompilation,BUILD_GENSRC_SOR_EXE, \
  75     SRC := $(GENSRC_SOR_SRC), \
  76     INCLUDE_FILES := $(GENSRC_SOR_SRC_FILE), \
  77     LANG := C, \
  78     CC := $(BUILD_CC), \
  79     LDEXE := $(BUILD_CC), \
  80     OBJECT_DIR := $(GENSRC_SOR_BIN), \
  81     OUTPUT_DIR := $(GENSRC_SOR_BIN), \
  82     PROGRAM := genSocketOptionRegistry))
  83 
  84 SOR_PREGEN_FILE := $(JDK_TOPDIR)/src/closed/solaris/classes/sun/nio/ch/SocketOptionRegistry-$(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU_ARCH).java.template
  85 
  86 ifeq ($(wildcard $(SOR_PREGEN_FILE)), )
  87   $(JDK_OUTPUTDIR)/gensrc/sun/nio/ch/SocketOptionRegistry.java: $(BUILD_GENSRC_SOR_EXE)
  88         $(MKDIR) -p $(@D)
  89         $(RM) $@ $@.tmp
  90         NAWK="$(NAWK)" SH="$(SH)" $(SH) -e $(JDK_TOPDIR)/make/scripts/addNotices.sh "$(SOR_COPYRIGHT_YEARS)" > $@.tmp
  91         $(BUILD_GENSRC_SOR_EXE) >> $@.tmp
  92         $(MV) $@.tmp $@
  93 else
  94   $(JDK_OUTPUTDIR)/gensrc/sun/nio/ch/SocketOptionRegistry.java: $(SOR_PREGEN_FILE)
  95         $(call install-file)
  96 endif
  97 
  98 ##########################################################################################
  99 


< prev index next >