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