Makefile revision 380
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# Makefile for X Consolidation Open Source Protocol modules
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
32098293b78922a5fbd10906afa28624820d3756Tinderbox User# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use subject to license terms.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Permission is hereby granted, free of charge, to any person obtaining a
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# copy of this software and associated documentation files (the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# "Software"), to deal in the Software without restriction, including
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# without limitation the rights to use, copy, modify, merge, publish,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# distribute, and/or sell copies of the Software, and to permit persons
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# to whom the Software is furnished to do so, provided that the above
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# copyright notice(s) and this permission notice appear in all copies of
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# the Software and that both the above copyright notice(s) and this
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# permission notice appear in supporting documentation.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Except as contained in this notice, the name of a copyright holder
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# shall not be used in advertising or otherwise to promote the sale, use
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or other dealings in this Software without prior written authorization
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# of the copyright holder.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# @(#)Makefile 1.9 08/03/25
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User###############################################################################
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserOS_SUBDIRS_common = \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt x11proto bigreqsproto compositeproto damageproto evieproto \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt fixesproto fontcacheproto fontsproto inputproto kbproto pmproto \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User randrproto recordproto renderproto resourceproto scrnsaverproto \
0b89eee6167201843c9a46b7e7c63cb1e4e09ba3Tinderbox User trapproto videoproto xcmiscproto xextproto xf86bigfontproto \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt xf86dgaproto xf86miscproto xf86vidmodeproto xineramaproto \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt lg3dproto sun-ext-protos
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
33c9436ef1a43d3c0fc3d9be9b4b0509daa83223Tinderbox UserOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
a1ff871f78b7d907d6fc3a382beea2a640fe8423Tinderbox User
363b21045b718d06d414784c96193dc9a233e8c5Tinderbox UserOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt glproto xf86driproto
bfb7b680bf88c1fdd9949197b71c512c532280a4Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntMACH:sh=uname -p
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Need to install to proto area by default for inter-package dependencies to
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# work right.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntall: install
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserWorld: clean install
f9ce6280cec79deb16ff6d9807aa493ff23e10d9Tinderbox User
0b89eee6167201843c9a46b7e7c63cb1e4e09ba3Tinderbox Userclean:
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinstall:
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox Userdownload:
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox User
0da02c26a6631c25f075a8e4ac6de9e58f49a0c2Tinderbox Usersource:
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(MAKE) $(MFLAGS) subdirs OS_TARGET=source
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usersubdirs:
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt for i in $(OS_SUBDIRS) ;\
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt do \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/proto/$$i..."; \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User done
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt