Makefile revision 128
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Makefile for X Consolidation Open Source Application modules
24abfe433efd98bb2099b867fb14d049b2f1f531Tinderbox User#
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use subject to license terms.
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Permission is hereby granted, free of charge, to any person obtaining a
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# copy of this software and associated documentation files (the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# "Software"), to deal in the Software without restriction, including
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# without limitation the rights to use, copy, modify, merge, publish,
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# 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
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# copyright notice(s) and this permission notice appear in all copies of
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# the Software and that both the above copyright notice(s) and this
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# permission notice appear in supporting documentation.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews#
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
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
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# of the copyright holder.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# @(#)Makefile 1.5 07/03/20
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User###############################################################################
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserOS_SUBDIRS_common = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User mkfontscale \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xdpyinfo \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User xgamma \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User xkbcomp \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xpm \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein xrandr \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User xvidtune \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User xvinfo \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User xscreensaver
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews
7208386cd37a2092c70eddf80cf29519b16c4c80Mark AndrewsOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox UserOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
f6da30bb5447c23d880b09f601441e70c5313557Mark Andrews mesa-demos
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox UserOS_SUBDIRS:sh=uname -p | sed 's/^\(.*\)$/\$\(OS_SUBDIRS_\1\)/'
7208386cd37a2092c70eddf80cf29519b16c4c80Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userall:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserWorld: clean all
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userclean:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrewsinstall:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
f7b41fd9291b8f4dba27e2b57e1d93f0913a4f1dMark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userdownload:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinsubdirs:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein for i in $(OS_SUBDIRS) ;\
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User do \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/proto/$$i..."; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User done
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein