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