Makefile revision 213
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# Makefile for X Consolidation Open Source Application modules
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey#
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# Use subject to license terms.
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey#
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# Permission is hereby granted, free of charge, to any person obtaining a
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# copy of this software and associated documentation files (the
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# "Software"), to deal in the Software without restriction, including
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# without limitation the rights to use, copy, modify, merge, publish,
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# distribute, and/or sell copies of the Software, and to permit persons
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# to whom the Software is furnished to do so, provided that the above
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# copyright notice(s) and this permission notice appear in all copies of
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# the Software and that both the above copyright notice(s) and this
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# permission notice appear in supporting documentation.
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey#
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey#
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# Except as contained in this notice, the name of a copyright holder
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# shall not be used in advertising or otherwise to promote the sale, use
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# or other dealings in this Software without prior written authorization
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# of the copyright holder.
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey#
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey# @(#)Makefile 1.8 07/08/31
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey#
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey###############################################################################
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom RumseyOS_SUBDIRS_common = \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey constype \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey mkfontscale \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey xcursorgen \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey xdpyinfo \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey xgamma \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey xkbcomp \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey xpm \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey xrandr \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey xvidtune \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey xvinfo \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey xscreensaver
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom RumseyOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom RumseyOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey mesa-demos
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom RumseyMACH:sh=uname -p
de3c6f004048849b39377d3beca96b4cf423df69Tom RumseyOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumseyall:
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom RumseyWorld: clean all
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumseyclean:
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumseyinstall:
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumseydownload:
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumseysubdirs:
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey for i in $(OS_SUBDIRS) ;\
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey do \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/proto/$$i..."; \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey done
de3c6f004048849b39377d3beca96b4cf423df69Tom Rumsey