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