Makefile revision 262
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# Makefile for X Consolidation Open Source Application modules
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright 2007 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
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# "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
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# permission notice appear in supporting documentation.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# 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
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# 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
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# shall not be used in advertising or otherwise to promote the sale, use
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# or other dealings in this Software without prior written authorization
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# of the copyright holder.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# @(#)Makefile 1.11 07/12/14
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User###############################################################################
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinOS_SUBDIRS_common = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein constype \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User mesa-demos \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein mkfontscale \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xcursorgen \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xdpyinfo \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User xgamma \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xkbcomp \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xpm \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xrandr \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User xrefresh \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xvidtune \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xvinfo \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User xscreensaver
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinOS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMACH:sh=uname -p
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox UserOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinall:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinWorld: clean all
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinclean:
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeindownload:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Usersubdirs:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein for i in $(OS_SUBDIRS) ;\
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein do \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/app/$$i..."; \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein done
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein