jdk/makefiles/sun/xawt/Makefile
changeset 12749 edd0b9d5e304
parent 12317 9670c1610c53
equal deleted inserted replaced
12748:720f7c4690cb 12749:edd0b9d5e304
     1 #
     1 #
     2 # Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
     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.
     3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4 #
     4 #
     5 # This code is free software; you can redistribute it and/or modify it
     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
     6 # under the terms of the GNU General Public License version 2 only, as
     7 # published by the Free Software Foundation.  Oracle designates this
     7 # published by the Free Software Foundation.  Oracle designates this
   223 else # !macosx
   223 else # !macosx
   224 ifeq ($(ARCH_DATA_MODEL), 32)
   224 ifeq ($(ARCH_DATA_MODEL), 32)
   225 SIZERS = $(SIZER).32
   225 SIZERS = $(SIZER).32
   226 SIZERS_C = $(SIZER_32_C)
   226 SIZERS_C = $(SIZER_32_C)
   227 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
   227 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
       
   228 ifdef CROSS_COMPILE_ARCH
       
   229 CFLAGS_32 = -m32
       
   230 endif
   228 else # !32
   231 else # !32
   229 SIZERS = $(SIZER).64
   232 SIZERS = $(SIZER).64
   230 SIZERS_C = $(SIZER_64_C)
   233 SIZERS_C = $(SIZER_64_C)
   231 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64
   234 SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64
       
   235 ifdef CROSS_COMPILE_ARCH
       
   236 CFLAGS_64 = -m64
       
   237 endif
   232 endif # 32
   238 endif # 32
   233 endif # !macosx
   239 endif # !macosx
   234 endif # solaris
   240 endif # solaris
   235 
   241 
   236 # XXX Hack for 6185483 - use hard-coded sizes.
   242 # XXX Hack for 6185483 - use hard-coded sizes.
   262 WRAPPER_GENERATOR_DIR=$(GENSRCDIR)/sun/awt/X11/generator
   268 WRAPPER_GENERATOR_DIR=$(GENSRCDIR)/sun/awt/X11/generator
   263 WRAPPER_GENERATOR_TEMPDIR=$(TEMPDIR)/sun/awt/X11/generator
   269 WRAPPER_GENERATOR_TEMPDIR=$(TEMPDIR)/sun/awt/X11/generator
   264 WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class 
   270 WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class 
   265 XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt
   271 XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt
   266 
   272 
       
   273 ifndef CROSS_COMPILE_ARCH
       
   274 SIZERS_CC = $(CC)
       
   275 else
       
   276 SIZERS_CC = $(HOST_CC)
       
   277 endif
       
   278 
   267 $(SIZERS): $(SIZERS_C) 
   279 $(SIZERS): $(SIZERS_C) 
   268 	$(prep-target)
   280 	$(prep-target)
   269 ifndef CROSS_COMPILE_ARCH
   281 
   270 	$(CC) $(CFLAGS_$(subst .,,$(suffix $@))) $(CPPFLAGS) -c -o $(SIZER)$(suffix $@).o $(SIZER)$(suffix $@).c
   282 	$(SIZERS_CC) $(CFLAGS_$(subst .,,$(suffix $@))) $(CPPFLAGS) -c -o $(SIZER)$(suffix $@).o $(SIZER)$(suffix $@).c
   271 	$(CC) $(CFLAGS_$(subst .,,$(suffix $@))) -o $@ $(CPPFLAGS) $(SIZER)$(suffix $@).o
   283 	$(SIZERS_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 
   284 
   277 $(WRAPPER_GENERATOR_CLASS): $(WRAPPER_GENERATOR_JAVA)
   285 $(WRAPPER_GENERATOR_CLASS): $(WRAPPER_GENERATOR_JAVA)
   278 	$(prep-target)
   286 	$(prep-target)
   279 	$(BOOT_JAVAC_CMD) -d $(WRAPPER_GENERATOR_TEMPDIR) $(WRAPPER_GENERATOR_JAVA)
   287 	$(BOOT_JAVAC_CMD) -d $(WRAPPER_GENERATOR_TEMPDIR) $(WRAPPER_GENERATOR_JAVA)
   280 
   288