Makefile revision 3876
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Copyright (c) 2002, 2011, Oracle and/or its affiliates. All rights reserved.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# This code is free software; you can redistribute it and/or modify it
4496171313bed39e96f21bc2f9faf2868e267ae3girish# under the terms of the GNU General Public License version 2 only, as
4496171313bed39e96f21bc2f9faf2868e267ae3girish# published by the Free Software Foundation. Oracle designates this
4496171313bed39e96f21bc2f9faf2868e267ae3girish# particular file as subject to the "Classpath" exception as provided
4496171313bed39e96f21bc2f9faf2868e267ae3girish# by Oracle in the LICENSE file that accompanied this code.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# This code is distributed in the hope that it will be useful, but WITHOUT
4496171313bed39e96f21bc2f9faf2868e267ae3girish# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4496171313bed39e96f21bc2f9faf2868e267ae3girish# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4496171313bed39e96f21bc2f9faf2868e267ae3girish# version 2 for more details (a copy is included in the LICENSE file that
4496171313bed39e96f21bc2f9faf2868e267ae3girish# accompanied this code).
4496171313bed39e96f21bc2f9faf2868e267ae3girish# You should have received a copy of the GNU General Public License version
4496171313bed39e96f21bc2f9faf2868e267ae3girish# 2 along with this work; if not, write to the Free Software Foundation,
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4496171313bed39e96f21bc2f9faf2868e267ae3girish# or visit www.oracle.com if you need additional information or have any
895ca178e38ac3583d0c0d8317d51dc5f388df6eae# questions.
4496171313bed39e96f21bc2f9faf2868e267ae3girishCLASSES_INIT += $(TEMPDIR)/.gen.wrappers $(TEMPDIR)/.gen_icons touch.wrappers
4496171313bed39e96f21bc2f9faf2868e267ae3girish# For Xrender extension.
4496171313bed39e96f21bc2f9faf2868e267ae3girishLDFLAGS += -L/usr/openwin/sfw/lib$(ISA_DIR) -R/usr/openwin/sfw/lib$(ISA_DIR)
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Since this library will be living in a subdirectory below the other libraries
4496171313bed39e96f21bc2f9faf2868e267ae3girish# we need to add an extra runpath so that libraries in the upper directory
4496171313bed39e96f21bc2f9faf2868e267ae3girish# are found at runtime.
4496171313bed39e96f21bc2f9faf2868e267ae3girish# Add to the ambient vpath to pick up files in subdirectories
4496171313bed39e96f21bc2f9faf2868e267ae3girishOTHER_LDLIBS = $(LIBM) -lawt -lXext -lX11 -lXrender -ldl \
4496171313bed39e96f21bc2f9faf2868e267ae3girish $(LDFLAGS_COMMON) $(AWT_RUNPATH) $(OTHER_LDFLAGS) -lXtst -lXi
# have a render.h file that suggests gradients are supported, but
# the Xrender.h doesn't have the corresponding type definitions.
# Whilst in the C preprocessor we can tell if the render.h define's are set
# A grep of Xrender.h is the only way to know this. If they are absent
# On sparcv9 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
# On amd64 CFLAGS already contain $(XARCH_OPTION/64), so to generate 32-bit sizer we need to change this option.
DOHACK=true
DOCOMPARE=true
$(CHMOD) +w $@;\
ICONS = \
ICONS += \
$(CAT) $$i | \
-Djava.awt.headless=true \
$(CAT) $$i | \
-Djava.awt.headless=true \
$(TOUCH) $@