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