Makefile revision 324
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# Makefile for X Consolidation Open Source Application modules
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes#
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# Use subject to license terms.
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Permission is hereby granted, free of charge, to any person obtaining a
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# copy of this software and associated documentation files (the
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# "Software"), to deal in the Software without restriction, including
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# without limitation the rights to use, copy, modify, merge, publish,
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# distribute, and/or sell copies of the Software, and to permit persons
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# to whom the Software is furnished to do so, provided that the above
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# copyright notice(s) and this permission notice appear in all copies of
0662ed52e814f8f08ef0e09956413a792584eddffuankg# the Software and that both the above copyright notice(s) and this
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# permission notice appear in supporting documentation.
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes#
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes#
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# Except as contained in this notice, the name of a copyright holder
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# shall not be used in advertising or otherwise to promote the sale, use
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# or other dealings in this Software without prior written authorization
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# of the copyright holder.
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes#
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes# @(#)Makefile 1.28 08/02/22
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes#
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes###############################################################################
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholesOS_SUBDIRS_common = \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes appres \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes bitmap \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes constype \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes editres \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes listres \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes mesa-demos \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes mkfontscale \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes twm \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes x11perf \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xauth \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xcalc \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xclipboard \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xcmsdb \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xconsole \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xcursorgen \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xdpyinfo \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xgamma \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xhost \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xkbcomp \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xkill \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xlsatoms \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xmag \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xmodmap \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xpm \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xprop \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xrandr \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg xrdb \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xrefresh \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xset \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xsetroot \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xstdcmap \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xvidtune \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xvinfo \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xwd \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xwininfo \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xwud \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes xscreensaver
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholesOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgOS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholesMACH:sh=uname -p
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholesOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholesall:
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholesWorld: clean all
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholesclean:
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholesinstall:
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholesdownload:
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholessubdirs:
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes for i in $(OS_SUBDIRS) ;\
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg do \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/app/$$i..."; \
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg done
c9ce2b84cc0bf2caa39be615eb06f7a9b68378d5bnicholes