< prev index next >

make/gensrc/GensrcX11Wrappers.gmk

Print this page




  75         $(TOUCH) $@
  76 
  77 GENSRC_X11WRAPPERS += $(SUPPORT_OUTPUTDIR)/gensrc/java.desktop/_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_JDK)
  85         $(call LogInfo, Generating X11 wrapper ($*-bit version))
  86         $(call MakeDir, $(@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   SIZER_CFLAGS := \
  95       -I${TOPDIR}/src/hotspot/share/include \
  96       -I${TOPDIR}/src/hotspot/os/$(HOTSPOT_TARGET_OS_TYPE)/include \
  97       -I$(TOPDIR)/src/java.base/share/native/include \
  98       -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/include \
  99       -I$(TOPDIR)/src/java.base/share/native/libjava \
 100       -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \
 101       -I$(TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \
 102       -I$(TOPDIR)/src/java.desktop/share/native/common/awt/debug \
 103       -I$(TOPDIR)/src/java.desktop/share/native/libawt/awt/image/cvutils \
 104       #
 105 
 106   # Compile the C code into an executable.
 107   $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
 108         $(call MakeDir, $(@D))
 109         (cd $(@D) && $(CC) $(MEMORY_MODEL_FLAG) -o $@ $< \
 110             $(X_CFLAGS) \
 111             $(X_LIBS) \
 112             $(SIZER_CFLAGS) -lc)
 113 
 114   .PRECIOUS: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
 115 
 116   # Run the executable create the offset file and check that it is identical
 117   # to the offset file in the source code repository.
 118   $(GENSRC_X11WRAPPERS_TMP)/sizes.%.verification: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe


  75         $(TOUCH) $@
  76 
  77 GENSRC_X11WRAPPERS += $(SUPPORT_OUTPUTDIR)/gensrc/java.desktop/_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_JDK)
  85         $(call LogInfo, Generating X11 wrapper ($*-bit version))
  86         $(call MakeDir, $(@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   SIZER_CFLAGS := \
  95       -I$(TOPDIR)/src/hotspot/share/include \
  96       -I$(TOPDIR)/src/hotspot/os/$(HOTSPOT_TARGET_OS_TYPE)/include \
  97       -I$(SUPPORT_OUTPUTDIR)/modules_include/java.base \
  98       -I$(SUPPORT_OUTPUTDIR)/modules_include/java.base/$(OPENJDK_TARGET_OS_INCLUDE_SUBDIR) \
  99       -I$(TOPDIR)/src/java.base/share/native/libjava \
 100       -I$(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/libjava \
 101       -I$(TOPDIR)/src/java.desktop/$(OPENJDK_TARGET_OS_TYPE)/native/common/awt \
 102       -I$(TOPDIR)/src/java.desktop/share/native/common/awt/debug \
 103       -I$(TOPDIR)/src/java.desktop/share/native/libawt/awt/image/cvutils \
 104       #
 105 
 106   # Compile the C code into an executable.
 107   $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
 108         $(call MakeDir, $(@D))
 109         (cd $(@D) && $(CC) $(MEMORY_MODEL_FLAG) -o $@ $< \
 110             $(X_CFLAGS) \
 111             $(X_LIBS) \
 112             $(SIZER_CFLAGS) -lc)
 113 
 114   .PRECIOUS: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
 115 
 116   # Run the executable create the offset file and check that it is identical
 117   # to the offset file in the source code repository.
 118   $(GENSRC_X11WRAPPERS_TMP)/sizes.%.verification: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe
< prev index next >