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