#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
#
# While the tree currently builds with Studio, we need to make sure it also
# builds with gcc when submitting patches upstream, and having both sets of
# options in the CFLAGS below makes it easy to switch when needed.
# COMPILER=gcc
# Needs older version of libpng, no longer available in evaluation builds.
# Enable additional warnings, since we've modified this code a lot
CFLAGS.studio += -v
CFLAGS.gcc += -Wall
# Additional optimization flags, to make the hacks show off the hardware
# better and because for just a screensaver display we can get away with
# using optimizations that may change strict correctness of floating point ops.
# Fix 64-bit linking; compiler is used for the linking.
# Regenerate configure after patches modify configure.in; the automake -af
# forces the update of the standard automake files that autoreconf will not
# update because Makefile.am does not exist. This is needed to ensure we have
# a recent version of config.guess, etc. used for configure; the | true is
# because automake will exit with an error because Makefile.am does not exist,
# but it will update the required files.
# Need to pick up the GNU version of xgettext.
# Libraries & programs to depend on
# X extensions to support
# Support locking the screen by normal users and by root
# and allow user switching from the lock screen with gdmflexiserver
# Paths to install to
# Data sources for images & text in hacks
# Do not install setuid hacks
# The potfiles.in updates don't work unless source is cloned to build dir
# Update potfiles.in to pick up our added sources like lock-Gtk.c
# The "-o Makefile" & touch stamp-it is needed to avoid infinite looping.
# Recognizing DESTDIR as most autotools packages do would be too easy,
# so xscreensaver makes us override install_prefix instead for the same effect.
# Remove hacks we've chosen not to ship at all for various reasons
done ; \
PERL_SCRIPTS= \
REQUIRED_PACKAGES += $(PERL_PKG)