Makefile revision 110
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# Copyright 2002-2008 Sun Microsystems, Inc. All Rights Reserved.
6a42ab64276ff832a47e009be1208f7c7d4da22dAutomatic Updater# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# This code is free software; you can redistribute it and/or modify it
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# under the terms of the GNU General Public License version 2 only, as
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# published by the Free Software Foundation. Sun designates this
6a42ab64276ff832a47e009be1208f7c7d4da22dAutomatic Updater# particular file as subject to the "Classpath" exception as provided
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# by Sun in the LICENSE file that accompanied this code.
6a42ab64276ff832a47e009be1208f7c7d4da22dAutomatic Updater# This code is distributed in the hope that it will be useful, but WITHOUT
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# version 2 for more details (a copy is included in the LICENSE file that
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# accompanied this code).
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# You should have received a copy of the GNU General Public License version
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# 2 along with this work; if not, write to the Free Software Foundation,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
922312472e2e05ebc64993d465999c5351b83036Automatic Updater# CA 95054 USA or visit www.sun.com if you need additional information or
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# have any questions.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark AndrewsCLASSES_INIT += $(TEMPDIR)/.gen.wrappers $(TEMPDIR)/.gen_icons touch.wrappers
b27ce68bae92006e2ad7a9b75602c6385e529c3bAutomatic Updater# Since this library will be living in a subdirectory below the other libraries
922312472e2e05ebc64993d465999c5351b83036Automatic Updater# we need to add an extra runpath so that libraries in the upper directory
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# are found at runtime.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# Add to the ambient vpath to pick up files in subdirectories
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrewsvpath %.c $(SHARE_SRC)/native/sunawt/alphacomposite
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrewsvpath %.c $(SHARE_SRC)/native/sun/awt/image/cvutils
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updatervpath %.c $(PLATFORM_SRC)/native/sun/awt/robot_child
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updatervpath %.c $(SHARE_SRC)/native/sun/java2d/opengl
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updatervpath %.c $(PLATFORM_SRC)/native/sun/java2d/opengl
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updatervpath %.c $(PLATFORM_SRC)/native/sun/java2d/x11
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark AndrewsOTHER_LDLIBS = $(LIBM) -lawt -lXext -lX11 -ldl \
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews $(LDFLAGS_COMMON) $(AWT_RUNPATH) $(OTHER_LDFLAGS) -lXtst -lXi
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater -I$(SHARE_SRC)/native/sun/awt/image/cvutils \
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# Allows for builds on Debian GNU Linux, X11 is in a different place
b27ce68bae92006e2ad7a9b75602c6385e529c3bAutomatic Updater CPPFLAGS += -I/usr/X11R6/include/X11/extensions \
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# Generation of wrappers
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# On sparcv9 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# On sparcv9 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark AndrewsCFLAGS_32=$(subst $(XARCH_OPTION/64),$(XARCH_OPTION/32),$(CFLAGS))
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark AndrewsSIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# On amd64 we generate both 32 and 64-bit sizers in spite of ARCH_DATA_MODEL.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews# On amd64 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark AndrewsCFLAGS_32=$(subst $(XARCH_OPTION/64),$(XARCH_OPTION/32),$(CFLAGS))
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark AndrewsSIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32 $(WRAPPER_GENERATOR_DIR)/sizes.64
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrewselse # !sparcv9 : includes (32-bit) sparc, i586
DOHACK=true
DOCOMPARE=true
$(CHMOD) +w $@;\
ICONS = \
$(CAT) $$i | \
-Djava.awt.headless=true \
$(CAT) $$i | \
-Djava.awt.headless=true \
$(TOUCH) $@