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