Makefile revision 98
3726777f47ac4bba3e21b075905959bbea47e72eerikabele# Makefile for X Consolidation Open Source Protocol modules
b51bf223f42d43ca6b1b33c95124edcfa5a871a4nd#
5f5d1b4cc970b7f06ff8ef6526128e9a27303d88nd# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3726777f47ac4bba3e21b075905959bbea47e72eerikabele# Use subject to license terms.
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd#
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# Permission is hereby granted, free of charge, to any person obtaining a
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# copy of this software and associated documentation files (the
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# "Software"), to deal in the Software without restriction, including
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# without limitation the rights to use, copy, modify, merge, publish,
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# distribute, and/or sell copies of the Software, and to permit persons
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# to whom the Software is furnished to do so, provided that the above
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# copyright notice(s) and this permission notice appear in all copies of
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# the Software and that both the above copyright notice(s) and this
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# permission notice appear in supporting documentation.
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd#
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
dba4cfbd6e9a1f639fb6831d1bca86bef6bf8506nd# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
eed2a23d9b5986937f1e2b1c120be97744508a72nd# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
eed2a23d9b5986937f1e2b1c120be97744508a72nd# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
eed2a23d9b5986937f1e2b1c120be97744508a72nd# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Except as contained in this notice, the name of a copyright holder
eed2a23d9b5986937f1e2b1c120be97744508a72nd# shall not be used in advertising or otherwise to promote the sale, use
eed2a23d9b5986937f1e2b1c120be97744508a72nd# or other dealings in this Software without prior written authorization
eed2a23d9b5986937f1e2b1c120be97744508a72nd# of the copyright holder.
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd# @(#)Makefile 1.5 07/01/31
eed2a23d9b5986937f1e2b1c120be97744508a72nd#
eed2a23d9b5986937f1e2b1c120be97744508a72nd###############################################################################
eed2a23d9b5986937f1e2b1c120be97744508a72nd
61bc1b1d5bb4bba6bca5bcda232c10f7090d71acndCOMMON_SUBDIRS = X11 BigReqs Composite Damage EvIE Fixes Fontcache Fonts \
61bc1b1d5bb4bba6bca5bcda232c10f7090d71acnd Input KB PM Randr Record Render Resource ScrnSaver Trap Video \
61bc1b1d5bb4bba6bca5bcda232c10f7090d71acnd XCMisc XExt XF86BigFont XF86DGA XF86Misc XF86VidMode Xinerama \
61bc1b1d5bb4bba6bca5bcda232c10f7090d71acnd lg3dproto
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndsparc_SUBDIRS = $(COMMON_SUBDIRS)
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndi386_SUBDIRS = $(COMMON_SUBDIRS) \
eed2a23d9b5986937f1e2b1c120be97744508a72nd glproto xf86driproto
eed2a23d9b5986937f1e2b1c120be97744508a72nd
61d237f7e3a54089a7514227d663fac296d7d8f0bnicholesOS_SUBDIRS:sh=uname -p | sed 's/^\(.*\)$/\$\(\1_SUBDIRS\)/'
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nd# Need to install to proto area by default for inter-package dependencies to
eed2a23d9b5986937f1e2b1c120be97744508a72nd# work right.
eed2a23d9b5986937f1e2b1c120be97744508a72ndall: install
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndWorld: clean install
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndclean:
eed2a23d9b5986937f1e2b1c120be97744508a72nd $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndinstall:
eed2a23d9b5986937f1e2b1c120be97744508a72nd $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72nddownload:
eed2a23d9b5986937f1e2b1c120be97744508a72nd $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
eed2a23d9b5986937f1e2b1c120be97744508a72nd
eed2a23d9b5986937f1e2b1c120be97744508a72ndsubdirs:
eed2a23d9b5986937f1e2b1c120be97744508a72nd @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
eed2a23d9b5986937f1e2b1c120be97744508a72nd for i in $(OS_SUBDIRS) ;\
eed2a23d9b5986937f1e2b1c120be97744508a72nd do \
eed2a23d9b5986937f1e2b1c120be97744508a72nd (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/proto/$$i..."; \
eed2a23d9b5986937f1e2b1c120be97744508a72nd $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
eed2a23d9b5986937f1e2b1c120be97744508a72nd done
eed2a23d9b5986937f1e2b1c120be97744508a72nd