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