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