Makefile revision 439
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# Makefile for X Consolidation Open Source Application modules
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering#
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# Use subject to license terms.
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering#
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# Permission is hereby granted, free of charge, to any person obtaining a
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# copy of this software and associated documentation files (the
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# "Software"), to deal in the Software without restriction, including
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# without limitation the rights to use, copy, modify, merge, publish,
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# distribute, and/or sell copies of the Software, and to permit persons
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# to whom the Software is furnished to do so, provided that the above
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# copyright notice(s) and this permission notice appear in all copies of
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# the Software and that both the above copyright notice(s) and this
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# permission notice appear in supporting documentation.
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering#
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering#
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# Except as contained in this notice, the name of a copyright holder
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# shall not be used in advertising or otherwise to promote the sale, use
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# or other dealings in this Software without prior written authorization
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# of the copyright holder.
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering#
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# @(#)Makefile 1.53 08/06/18
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering#
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering###############################################################################
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering
9473414219330b9febc1d0712bbf49ad74cf962fLennart Poettering# Dependency ordering:
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering# rss-glx needs to come after xscreensaver
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering
9473414219330b9febc1d0712bbf49ad74cf962fLennart PoetteringOS_SUBDIRS_common = \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering appres \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering bitmap \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering constype \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering editres \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering fslsfonts \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering fstobdf \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering iceauth \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering listres \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering luit \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering mesa-demos \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering mkfontscale \
0d0f0c50d3a1d90f03972a6abb82e6413daaa583Shawn Landden oclock \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering setxkbmap \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering showfont \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering twm \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering viewres \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering x11perf \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xauth \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xcalc \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xclipboard \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xcmsdb \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xconsole \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xcursorgen \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xdpyinfo \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xdriinfo \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xev \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xfd \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xfsinfo \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xfwp \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xgamma \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xgc \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xhost \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xinit \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xkbcomp \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xkbprint \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xkill \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xload \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xlogo \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xlsatoms \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xlsclients \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xlsfonts \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xmag \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xman \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xmodmap \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xpm \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xprop \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xrandr \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xrdb \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xrefresh \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xset \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xsetroot \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xstdcmap \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xvidtune \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xvinfo \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xwd \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xwininfo \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xwud \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xscreensaver \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering rss-glx \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering xterm
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart PoetteringOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
0d0f0c50d3a1d90f03972a6abb82e6413daaa583Shawn Landden
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart PoetteringOS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart PoetteringMACH:sh=uname -p
b7def684941808600c344f0be7a2b9fcdda97e0fLennart PoetteringOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering
0d0f0c50d3a1d90f03972a6abb82e6413daaa583Shawn Landdenall:
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart PoetteringWorld: clean all
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poetteringclean:
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
67ab5f761f9b854d8ce85f9ee47b298e497f8bd9Tom Gundersen
67ab5f761f9b854d8ce85f9ee47b298e497f8bd9Tom Gunderseninstall:
67ab5f761f9b854d8ce85f9ee47b298e497f8bd9Tom Gundersen $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
67ab5f761f9b854d8ce85f9ee47b298e497f8bd9Tom Gundersen
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poetteringdownload:
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poetteringsource:
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering $(MAKE) $(MFLAGS) subdirs OS_TARGET=source
1b64d026af01277e332d10d9e67e2eed5a4ded28Lennart Poettering
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poetteringsubdirs:
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering for i in $(OS_SUBDIRS) ;\
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering do \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/app/$$i..."; \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering done
6b1dc2bd3cdb3bd932b0692be636ddd2879edb92Lennart Poettering