makefiles/GensrcX11Wrappers.gmk

Print this page
rev 7983 : 8024265: Enable new build on AIX


  71 # used in awt.
  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     # use -m32/-m64 only if the compiler supports it
  90     ifeq ($(COMPILER_SUPPORTS_TARGET_BITS_FLAG),true)
  91     MEMORY_MODEL_FLAG="-m$*"
  92     endif
  93 
  94     # Compile the C code into an executable.
  95     $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe : $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
  96         $(MKDIR) -p $(@D)
  97         (cd $(@D) && $(CC) $(MEMORY_MODEL_FLAG) -o $@ $< \
  98               $(X_CFLAGS) \
  99               $(X_LIBS) \
 100               -I$(JDK_OUTPUTDIR)/include \
 101               -I$(JDK_TOPDIR)/src/share/javavm/export \
 102               -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \
 103               -I$(JDK_TOPDIR)/src/share/native/common \
 104               -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/common \
 105               -I$(JDK_TOPDIR)/src/solaris/native/sun/awt \
 106               -I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
 107               -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils -lc)
 108 
 109     .PRECIOUS: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
 110 
 111     # Run the executable create the offset file and check that it is identical


  71 # used in awt.
  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     # use -m32/-m64 only if the compiler supports it
  90     ifeq ($(COMPILER_SUPPORTS_TARGET_BITS_FLAG),true)
  91     MEMORY_MODEL_FLAG="$(COMPILER_TARGET_BITS_FLAG)$*"
  92     endif
  93 
  94     # Compile the C code into an executable.
  95     $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe : $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
  96         $(MKDIR) -p $(@D)
  97         (cd $(@D) && $(CC) $(MEMORY_MODEL_FLAG) -o $@ $< \
  98               $(X_CFLAGS) \
  99               $(X_LIBS) \
 100               -I$(JDK_OUTPUTDIR)/include \
 101               -I$(JDK_TOPDIR)/src/share/javavm/export \
 102               -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/javavm/export \
 103               -I$(JDK_TOPDIR)/src/share/native/common \
 104               -I$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/native/common \
 105               -I$(JDK_TOPDIR)/src/solaris/native/sun/awt \
 106               -I$(JDK_TOPDIR)/src/share/native/sun/awt/debug \
 107               -I$(JDK_TOPDIR)/src/share/native/sun/awt/image/cvutils -lc)
 108 
 109     .PRECIOUS: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
 110 
 111     # Run the executable create the offset file and check that it is identical