make/sun/xawt/Makefile
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk-tl Sdiff make/sun/xawt

make/sun/xawt/Makefile

Print this page


   1 #
   2 # Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 208 else # !sparcv9 : includes (32-bit) sparc, i586
 209 SIZERS = $(SIZER).32
 210 SIZERS_C = $(SIZER_32_C)
 211 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
 212 endif # amd64
 213 endif # sparcv9
 214 
 215 else # !solaris
 216 
 217 ifeq ($(PLATFORM), macosx)
 218 CFLAGS_32=-arch i386
 219 SIZERS = $(SIZER).32 $(SIZER).64
 220 SIZERS_C = $(SIZER_32_C) $(SIZER_64_C)
 221 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64
 222 CFLAGS_64=-arch x86_64
 223 else # !macosx
 224 ifeq ($(ARCH_DATA_MODEL), 32)
 225 SIZERS = $(SIZER).32
 226 SIZERS_C = $(SIZER_32_C)
 227 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32



 228 else # !32
 229 SIZERS = $(SIZER).64
 230 SIZERS_C = $(SIZER_64_C)
 231 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64



 232 endif # 32
 233 endif # !macosx
 234 endif # solaris
 235 
 236 # XXX Hack for 6185483 - use hard-coded sizes.
 237 # Add the 64-bit platforms that need to be included into 32-bit build
 238 # and have sizes.64-$(PLATFORM)-$(LIBARCH) hardcoded in the workspace
 239 ifeq ($(PLATFORM)-$(LIBARCH), solaris-i386)
 240 # If you define DOHACK=true for some combination of $(PLATFORM)-$(LIBARCH),
 241 # make sure you have sizes.64-$(PLATFORM)-$(LIBARCH) pre-generated in
 242 # $(PLATFORM_SRC)/classes/sun/awt/X11/generator/
 243 DOHACK=true
 244 endif # Hack
 245 
 246 ifeq ($(DOHACK), true)
 247 PREDEFINED_SIZES_TMPL=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-$(PLATFORM)-$(LIBARCH)
 248 PREDEFINED_SIZES=$(WRAPPER_GENERATOR_DIR)/sizes.64
 249 SIZES += $(WRAPPER_GENERATOR_DIR)/sizes.64
 250 endif
 251 
 252 ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64)
 253 DOCOMPARE=true
 254 endif
 255 # 64 bit sizers are generated on platform-libarch (left) for use 
 256 # on platform-libarch (right) and stored under the latter name.
 257 # Do compare manually stored and automatically generated pair(s) 
 258 # if DOCOMPARE=true, just after the generation.
 259 STORED_SIZES_TMPL_solaris_amd64=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-solaris-i386
 260 
 261 WRAPPER_GENERATOR_JAVA=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/WrapperGenerator.java
 262 WRAPPER_GENERATOR_DIR=$(GENSRCDIR)/sun/awt/X11/generator
 263 WRAPPER_GENERATOR_TEMPDIR=$(TEMPDIR)/sun/awt/X11/generator
 264 WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class 
 265 XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt
 266 
 267 $(SIZERS): $(SIZERS_C) 
 268         $(prep-target)
 269 ifndef CROSS_COMPILE_ARCH
 270         $(CC) $(CFLAGS_$(subst .,,$(suffix $@))) $(CPPFLAGS) -c -o $(SIZER)$(suffix $@).o $(SIZER)$(suffix $@).c
 271         $(CC) $(CFLAGS_$(subst .,,$(suffix $@))) -o $@ $(CPPFLAGS) $(SIZER)$(suffix $@).o
 272 else
 273         $(HOST_CC) $(CPPFLAGS) -c -o $(SIZER)$(suffix $@).o $(SIZER)$(suffix $@).c
 274         $(HOST_CC) $(CPPFLAGS) -o $@ $(SIZER)$(suffix $@).o
 275 endif
 276 






 277 $(WRAPPER_GENERATOR_CLASS): $(WRAPPER_GENERATOR_JAVA)
 278         $(prep-target)
 279         $(BOOT_JAVAC_CMD) -d $(WRAPPER_GENERATOR_TEMPDIR) $(WRAPPER_GENERATOR_JAVA)
 280 
 281 $(SIZERS_C): $(WRAPPER_GENERATOR_CLASS) $(XLIBTYPES)
 282         $(prep-target)
 283         $(MKDIR) -p $(WRAPPER_GENERATOR_TEMPDIR)
 284         $(BOOT_JAVA_CMD) -cp $(WRAPPER_GENERATOR_TEMPDIR) WrapperGenerator \
 285             $(SIZER_DIR) $(XLIBTYPES) "sizer" $(subst .,,$(suffix $(basename $@)))
 286 
 287 $(SIZES): $(SIZERS)
 288         @if [ "$(DOHACK)$@" = "true$(PREDEFINED_SIZES)" ]; then \
 289             $(ECHO) COPYING $(PREDEFINED_SIZES_TMPL) into $@; \
 290             $(CP) $(PREDEFINED_SIZES_TMPL) $@; \
 291             $(CHMOD) +w $@;\
 292         else    \
 293             $(ECHO) GENERATING $@; \
 294             $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
 295         fi
 296         @if [ "$(DOCOMPARE)$(suffix $@)" = "true.64" ]; then \


   1 #
   2 # Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


 208 else # !sparcv9 : includes (32-bit) sparc, i586
 209 SIZERS = $(SIZER).32
 210 SIZERS_C = $(SIZER_32_C)
 211 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
 212 endif # amd64
 213 endif # sparcv9
 214 
 215 else # !solaris
 216 
 217 ifeq ($(PLATFORM), macosx)
 218 CFLAGS_32=-arch i386
 219 SIZERS = $(SIZER).32 $(SIZER).64
 220 SIZERS_C = $(SIZER_32_C) $(SIZER_64_C)
 221 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64
 222 CFLAGS_64=-arch x86_64
 223 else # !macosx
 224 ifeq ($(ARCH_DATA_MODEL), 32)
 225 SIZERS = $(SIZER).32
 226 SIZERS_C = $(SIZER_32_C)
 227 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
 228 ifdef CROSS_COMPILE_ARCH
 229 CFLAGS_32 = -m32
 230 endif
 231 else # !32
 232 SIZERS = $(SIZER).64
 233 SIZERS_C = $(SIZER_64_C)
 234 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64
 235 ifdef CROSS_COMPILE_ARCH
 236 CFLAGS_64 = -m64
 237 endif
 238 endif # 32
 239 endif # !macosx
 240 endif # solaris
 241 
 242 # XXX Hack for 6185483 - use hard-coded sizes.
 243 # Add the 64-bit platforms that need to be included into 32-bit build
 244 # and have sizes.64-$(PLATFORM)-$(LIBARCH) hardcoded in the workspace
 245 ifeq ($(PLATFORM)-$(LIBARCH), solaris-i386)
 246 # If you define DOHACK=true for some combination of $(PLATFORM)-$(LIBARCH),
 247 # make sure you have sizes.64-$(PLATFORM)-$(LIBARCH) pre-generated in
 248 # $(PLATFORM_SRC)/classes/sun/awt/X11/generator/
 249 DOHACK=true
 250 endif # Hack
 251 
 252 ifeq ($(DOHACK), true)
 253 PREDEFINED_SIZES_TMPL=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-$(PLATFORM)-$(LIBARCH)
 254 PREDEFINED_SIZES=$(WRAPPER_GENERATOR_DIR)/sizes.64
 255 SIZES += $(WRAPPER_GENERATOR_DIR)/sizes.64
 256 endif
 257 
 258 ifeq ($(PLATFORM)-$(LIBARCH), solaris-amd64)
 259 DOCOMPARE=true
 260 endif
 261 # 64 bit sizers are generated on platform-libarch (left) for use 
 262 # on platform-libarch (right) and stored under the latter name.
 263 # Do compare manually stored and automatically generated pair(s) 
 264 # if DOCOMPARE=true, just after the generation.
 265 STORED_SIZES_TMPL_solaris_amd64=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/sizes.64-solaris-i386
 266 
 267 WRAPPER_GENERATOR_JAVA=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/WrapperGenerator.java
 268 WRAPPER_GENERATOR_DIR=$(GENSRCDIR)/sun/awt/X11/generator
 269 WRAPPER_GENERATOR_TEMPDIR=$(TEMPDIR)/sun/awt/X11/generator
 270 WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class 
 271 XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt
 272 


 273 ifndef CROSS_COMPILE_ARCH
 274 SIZERS_CC = $(CC)

 275 else
 276 SIZERS_CC = $(HOST_CC)

 277 endif
 278 
 279 $(SIZERS): $(SIZERS_C) 
 280         $(prep-target)
 281 
 282         $(SIZERS_CC) $(CFLAGS_$(subst .,,$(suffix $@))) $(CPPFLAGS) -c -o $(SIZER)$(suffix $@).o $(SIZER)$(suffix $@).c
 283         $(SIZERS_CC) $(CFLAGS_$(subst .,,$(suffix $@))) -o $@ $(CPPFLAGS) $(SIZER)$(suffix $@).o
 284 
 285 $(WRAPPER_GENERATOR_CLASS): $(WRAPPER_GENERATOR_JAVA)
 286         $(prep-target)
 287         $(BOOT_JAVAC_CMD) -d $(WRAPPER_GENERATOR_TEMPDIR) $(WRAPPER_GENERATOR_JAVA)
 288 
 289 $(SIZERS_C): $(WRAPPER_GENERATOR_CLASS) $(XLIBTYPES)
 290         $(prep-target)
 291         $(MKDIR) -p $(WRAPPER_GENERATOR_TEMPDIR)
 292         $(BOOT_JAVA_CMD) -cp $(WRAPPER_GENERATOR_TEMPDIR) WrapperGenerator \
 293             $(SIZER_DIR) $(XLIBTYPES) "sizer" $(subst .,,$(suffix $(basename $@)))
 294 
 295 $(SIZES): $(SIZERS)
 296         @if [ "$(DOHACK)$@" = "true$(PREDEFINED_SIZES)" ]; then \
 297             $(ECHO) COPYING $(PREDEFINED_SIZES_TMPL) into $@; \
 298             $(CP) $(PREDEFINED_SIZES_TMPL) $@; \
 299             $(CHMOD) +w $@;\
 300         else    \
 301             $(ECHO) GENERATING $@; \
 302             $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
 303         fi
 304         @if [ "$(DOCOMPARE)$(suffix $@)" = "true.64" ]; then \


make/sun/xawt/Makefile
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File