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