makefiles/GensrcX11Wrappers.gmk

Print this page




  72 $(JDK_OUTPUTDIR)/gensrc/_the.generated.x11 : $(GENSRC_X11_SIZES_USED) $(BUILD_TOOLS)
  73         $(MKDIR) -p $(GENSRC_X11WRAPPERS_DST)
  74         $(TOOL_WRAPPERGENERATOR) $(GENSRC_X11WRAPPERS_DST) $(GENSRC_SIZER_DIR)/xlibtypes.txt "gen" $(GENSRC_X11WRAPPERS_TMP)/sizes
  75         $(TOUCH) $@
  76 
  77 GENSRC_X11WRAPPERS += $(JDK_OUTPUTDIR)/gensrc/_the.generated.x11
  78 
  79 ifneq ($(COMPILE_TYPE),cross)
  80     # This is not a cross compile, regenerate the offset file, so that we
  81     # can compare it with the version in the source code repository.
  82 
  83     # Generate the C code for the program that will output the offset file.
  84     $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c : $(GENSRC_SIZER_DIR)/xlibtypes.txt $(BUILD_TOOLS)
  85         $(ECHO) "Generating X11 wrapper ($*-bit version)"
  86         $(MKDIR) -p $(@D)
  87         $(TOOL_WRAPPERGENERATOR) $(@D) $(GENSRC_SIZER_DIR)/xlibtypes.txt "sizer" $*
  88 
  89     # Compile the C code into an executable.
  90     $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe : $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
  91         $(MKDIR) -p $(@D)
  92         (cd $(@D) && $(CC) -m$* -o $@ $< \
  93               $(X_CFLAGS) \
  94               $(X_LIBS) \
  95               -I$(JDK_OUTPUTDIR)/include \
  96               -I$(JDK_TOPDIR)/src/share/javavm/export \
  97               -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \
  98               -I$(JDK_TOPDIR)/src/share/native/common \
  99               -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/common \
 100               -I$(JDK_TOPDIR)/src/solaris/native/sun/awt \
 101               -I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
 102               -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils -lc)
 103 
 104     .PRECIOUS: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
 105 
 106     # Run the executable create the offset file and check that it is identical
 107     # to the offset file in the source code repository.
 108     $(GENSRC_X11WRAPPERS_TMP)/sizes.%.verification : $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe
 109         $(MKDIR) -p $(@D)
 110         $(GENSRC_X11WRAPPERS_TMP)/sizer.$*.exe | $(SORT) > $@.tmp
 111         $(ECHO) Verifying $(GENSRC_X11WRAPPERS_TMP)/sizes.$*.verification.tmp to $(GENSRC_X11WRAPPERS_TMP)/sizes.$*
 112         $(DIFF) $(GENSRC_X11WRAPPERS_TMP)/sizes.$*.verification.tmp $(GENSRC_X11WRAPPERS_TMP)/sizes.$*


  72 $(JDK_OUTPUTDIR)/gensrc/_the.generated.x11 : $(GENSRC_X11_SIZES_USED) $(BUILD_TOOLS)
  73         $(MKDIR) -p $(GENSRC_X11WRAPPERS_DST)
  74         $(TOOL_WRAPPERGENERATOR) $(GENSRC_X11WRAPPERS_DST) $(GENSRC_SIZER_DIR)/xlibtypes.txt "gen" $(GENSRC_X11WRAPPERS_TMP)/sizes
  75         $(TOUCH) $@
  76 
  77 GENSRC_X11WRAPPERS += $(JDK_OUTPUTDIR)/gensrc/_the.generated.x11
  78 
  79 ifneq ($(COMPILE_TYPE),cross)
  80     # This is not a cross compile, regenerate the offset file, so that we
  81     # can compare it with the version in the source code repository.
  82 
  83     # Generate the C code for the program that will output the offset file.
  84     $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c : $(GENSRC_SIZER_DIR)/xlibtypes.txt $(BUILD_TOOLS)
  85         $(ECHO) "Generating X11 wrapper ($*-bit version)"
  86         $(MKDIR) -p $(@D)
  87         $(TOOL_WRAPPERGENERATOR) $(@D) $(GENSRC_SIZER_DIR)/xlibtypes.txt "sizer" $*
  88 
  89     # Compile the C code into an executable.
  90     $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe : $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
  91         $(MKDIR) -p $(@D)
  92         (cd $(@D) && $(CC) $(COMP_MODE_OPTION)$* -o $@ $< \
  93               $(X_CFLAGS) \
  94               $(X_LIBS) \
  95               -I$(JDK_OUTPUTDIR)/include \
  96               -I$(JDK_TOPDIR)/src/share/javavm/export \
  97               -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \
  98               -I$(JDK_TOPDIR)/src/share/native/common \
  99               -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/common \
 100               -I$(JDK_TOPDIR)/src/solaris/native/sun/awt \
 101               -I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
 102               -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils -lc)
 103 
 104     .PRECIOUS: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
 105 
 106     # Run the executable create the offset file and check that it is identical
 107     # to the offset file in the source code repository.
 108     $(GENSRC_X11WRAPPERS_TMP)/sizes.%.verification : $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe
 109         $(MKDIR) -p $(@D)
 110         $(GENSRC_X11WRAPPERS_TMP)/sizer.$*.exe | $(SORT) > $@.tmp
 111         $(ECHO) Verifying $(GENSRC_X11WRAPPERS_TMP)/sizes.$*.verification.tmp to $(GENSRC_X11WRAPPERS_TMP)/sizes.$*
 112         $(DIFF) $(GENSRC_X11WRAPPERS_TMP)/sizes.$*.verification.tmp $(GENSRC_X11WRAPPERS_TMP)/sizes.$*