Makefile revision 156
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Makefile for X Consolidation Open Source Library modules
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Use subject to license terms.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Permission is hereby granted, free of charge, to any person obtaining a
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# copy of this software and associated documentation files (the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# "Software"), to deal in the Software without restriction, including
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# without limitation the rights to use, copy, modify, merge, publish,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# distribute, and/or sell copies of the Software, and to permit persons
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# to whom the Software is furnished to do so, provided that the above
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# copyright notice(s) and this permission notice appear in all copies of
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# the Software and that both the above copyright notice(s) and this
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# permission notice appear in supporting documentation.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Except as contained in this notice, the name of a copyright holder
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# shall not be used in advertising or otherwise to promote the sale, use
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# or other dealings in this Software without prior written authorization
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# of the copyright holder.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# @(#)Makefile 1.7 07/05/15
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster###############################################################################
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOS_SUBDIRS_common = \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster freetype \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster fontconfig \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libxtrans \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXau \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXdmcp \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libfontenc \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXpm \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXaw \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXfixes \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXcomposite \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXrender \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXdamage \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXfont \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster Xft \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXinerama \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libxkbfile \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libxkbui \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXrandr \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXtst \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXv \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXvMC \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXxf86misc \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXxf86vm \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libXlg3d
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster libdrm \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster mesa
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterMACH:sh=uname -p
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterall:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterWorld: clean all
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterclean:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterdownload:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostersubdirs:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster for i in $(OS_SUBDIRS) ;\
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster do \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/lib/$$i..."; \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster done
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster