Makefile revision 17
17N/A###############################################################################
17N/A#
17N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
17N/A# Use subject to license terms.
17N/A#
17N/A# Permission is hereby granted, free of charge, to any person obtaining a
17N/A# copy of this software and associated documentation files (the
17N/A# "Software"), to deal in the Software without restriction, including
17N/A# without limitation the rights to use, copy, modify, merge, publish,
17N/A# distribute, and/or sell copies of the Software, and to permit persons
17N/A# to whom the Software is furnished to do so, provided that the above
17N/A# copyright notice(s) and this permission notice appear in all copies of
17N/A# the Software and that both the above copyright notice(s) and this
17N/A# permission notice appear in supporting documentation.
17N/A#
17N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
17N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
17N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
17N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
17N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
17N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
17N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17N/A#
17N/A# Except as contained in this notice, the name of a copyright holder
17N/A# shall not be used in advertising or otherwise to promote the sale, use
17N/A# or other dealings in this Software without prior written authorization
17N/A# of the copyright holder.
17N/A#
17N/A# @(#)Makefile 1.1 06/05/10
17N/A#
17N/A
17N/APWD:sh=pwd
17N/ATOP=$(PWD)/../..
17N/A
17N/A# Not really 32 or 64-bit, but we call it 32-bit to avoid subdirs
17N/ABUILD_TYPES=32
17N/A
17N/A# Version number (used in path names)
17N/AVERSION=1.0.1
17N/A
17N/A# Source tarball
17N/ASOURCE_TARBALL_NAME=lndir-$(VERSION).tar.bz2
17N/A
17N/A# Download site for source
17N/ASOURCE_URL=$(XORG_RELEASES_URL)/util/$(SOURCE_TARBALL_NAME)
17N/A
17N/A# Patches to apply to source after unpacking, in order
17N/ASOURCE_PATCHES=
17N/A
17N/A# Directory created by unpacking source
17N/ASOURCE_DIR=$(BUILD_DIR)/lndir-$(VERSION)
17N/A
17N/A### Include common rulesets
17N/Ainclude $(TOP)/common/Makefile.inc
17N/A
17N/A### Rules specific to this directory:
17N/A
17N/A# Command line options to GNU autoconf configure script
17N/ALNDIR_CFG=--prefix=$(X11_DIR)
17N/A
17N/Abuild_gen: $(SOURCE_DIR)/Makefile
17N/A
17N/A# Run configure script
17N/A$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
17N/A (cd $(SOURCE_DIR) ; \
17N/A chmod a+x configure ; \
17N/A CC=$(CC) CFLAGS="$(LIB_CFLAGS)" LD="$(CC) $(PROG_CFLAGS) $(LDFLAGS)" LDFLAGS="$(PROG_LDFLAGS)" PKG_CONFIG_PATH=$(PROTODIR)/usr/X11/lib/pkgconfig ./configure $(LNDIR_CFG) )
17N/A
17N/A# Install
17N/Ainstall_gen: $(SOURCE_DIR)/Makefile
17N/A (cd $(SOURCE_DIR) ; $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) install)