Makefile revision 98
278N/A# Makefile for X Consolidation Open Source bits
278N/A#
278N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
278N/A# Use subject to license terms.
278N/A#
278N/A# Permission is hereby granted, free of charge, to any person obtaining a
278N/A# copy of this software and associated documentation files (the
278N/A# "Software"), to deal in the Software without restriction, including
278N/A# without limitation the rights to use, copy, modify, merge, publish,
278N/A# distribute, and/or sell copies of the Software, and to permit persons
278N/A# to whom the Software is furnished to do so, provided that the above
278N/A# copyright notice(s) and this permission notice appear in all copies of
278N/A# the Software and that both the above copyright notice(s) and this
278N/A# permission notice appear in supporting documentation.
278N/A#
278N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
278N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
278N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
278N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
278N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
278N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
278N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
278N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
278N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
278N/A#
278N/A# Except as contained in this notice, the name of a copyright holder
278N/A# shall not be used in advertising or otherwise to promote the sale, use
278N/A# or other dealings in this Software without prior written authorization
278N/A# of the copyright holder.
278N/A#
278N/A# @(#)Makefile 1.13 07/01/30
278N/A#
281N/A###############################################################################
278N/A#
278N/A# Modules in this makefile are divided into 2 sections - those that need to
278N/A# be built before the X11 monolithic tree (because it depends on them) and
278N/A# those that need to be build after the X11 monolithic tree (because they
278N/A# depend on portions of the monolithic tree).
278N/A
278N/ABEFOREX = \
278N/A proto \
278N/A data/xbitmaps \
278N/A util/lndir \
278N/A doc \
278N/A lib
278N/A
278N/AAFTERX = \
278N/A app \
278N/A xserver/xorg \
278N/A driver \
278N/A font
278N/A
278N/AALL = $(BEFOREX) $(AFTERX)
278N/A
278N/A# Need to install to proto area by default for inter-package dependencies to
278N/A# work right.
278N/Aall: install
278N/A
278N/AWorld: clean install
278N/A
278N/AbeforeX-all:
278N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=all OS_SUBDIRS=BEFOREX
278N/A
278N/AafterX-all:
278N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=all OS_SUBDIRS=AFTERX
278N/A
278N/Aclean: beforeX-clean afterX-clean
278N/A
278N/AbeforeX-clean:
278N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean OS_SUBDIRS=BEFOREX
278N/A
278N/AafterX-clean:
278N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean OS_SUBDIRS=AFTERX
278N/A
278N/Ainstall: beforeX-install afterX-install
278N/A
278N/AbeforeX-install:
278N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=install OS_SUBDIRS=BEFOREX
278N/A
278N/AafterX-install:
278N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=install OS_SUBDIRS=AFTERX
278N/A
278N/Adownload: beforeX-download afterX-download
278N/A
278N/AbeforeX-download:
278N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=download OS_SUBDIRS=BEFOREX
281N/A
281N/AafterX-download:
278N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=download OS_SUBDIRS=AFTERX
278N/A
278N/Asubdirs:
278N/A @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
281N/A for i in $($(OS_SUBDIRS)) ;\
281N/A do \
(cd $$i ; echo "## making" $(OS_TARGET) "in open-src/$$i..."; \
$(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
done