Makefile revision 427
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# Makefile for X Consolidation Open Source Protocol modules
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle#
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# Use subject to license terms.
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle#
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# Permission is hereby granted, free of charge, to any person obtaining a
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# copy of this software and associated documentation files (the
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# "Software"), to deal in the Software without restriction, including
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# without limitation the rights to use, copy, modify, merge, publish,
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# distribute, and/or sell copies of the Software, and to permit persons
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# to whom the Software is furnished to do so, provided that the above
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# copyright notice(s) and this permission notice appear in all copies of
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# the Software and that both the above copyright notice(s) and this
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# permission notice appear in supporting documentation.
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle#
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle#
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# Except as contained in this notice, the name of a copyright holder
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# shall not be used in advertising or otherwise to promote the sale, use
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# or other dealings in this Software without prior written authorization
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# of the copyright holder.
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle#
b889f60b16d53a382cf7517582c6b6044435622dchad.kienle# @(#)Makefile 1.10 08/05/13
b889f60b16d53a382cf7517582c6b6044435622dchad.kienle#
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad Kienle###############################################################################
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle
ec6f039e5f859c9edba6435e4999d00bec77d572Chad KienleOS_SUBDIRS_common = \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle x11proto bigreqsproto compositeproto damageproto evieproto \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle fixesproto fontcacheproto fontsproto glproto inputproto kbproto pmproto \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle randrproto recordproto renderproto resourceproto scrnsaverproto \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle trapproto videoproto xcmiscproto xextproto xf86bigfontproto \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle xf86dgaproto xf86miscproto xf86vidmodeproto xineramaproto \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle lg3dproto sun-ext-protos
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle
ec6f039e5f859c9edba6435e4999d00bec77d572Chad KienleOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle
ec6f039e5f859c9edba6435e4999d00bec77d572Chad KienleOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle xf86driproto
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle
ec6f039e5f859c9edba6435e4999d00bec77d572Chad KienleMACH:sh=uname -p
ec6f039e5f859c9edba6435e4999d00bec77d572Chad KienleOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad Kienle
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# Need to install to proto area by default for inter-package dependencies to
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle# work right.
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienleall: install
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad KienleWorld: clean install
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienleclean:
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad Kienleinstall:
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienledownload:
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad Kienle $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad Kienle
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad Kienlesource:
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle $(MAKE) $(MFLAGS) subdirs OS_TARGET=source
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienlesubdirs:
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad Kienle @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle for i in $(OS_SUBDIRS) ;\
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle do \
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad Kienle (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/proto/$$i..."; \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
ec6f039e5f859c9edba6435e4999d00bec77d572Chad Kienle done
0b572268ca1a724aaccb5d54647a772fcbfed9c9Chad Kienle