Makefile revision 354
219N/A# Makefile for X Consolidation Open Source Library modules
219N/A#
219N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
219N/A# Use subject to license terms.
219N/A#
219N/A# Permission is hereby granted, free of charge, to any person obtaining a
219N/A# copy of this software and associated documentation files (the
219N/A# "Software"), to deal in the Software without restriction, including
219N/A# without limitation the rights to use, copy, modify, merge, publish,
219N/A# distribute, and/or sell copies of the Software, and to permit persons
219N/A# to whom the Software is furnished to do so, provided that the above
219N/A# copyright notice(s) and this permission notice appear in all copies of
219N/A# the Software and that both the above copyright notice(s) and this
219N/A# permission notice appear in supporting documentation.
219N/A#
219N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
219N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
219N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
219N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
219N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
219N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
219N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
219N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
219N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
219N/A#
219N/A# Except as contained in this notice, the name of a copyright holder
219N/A# shall not be used in advertising or otherwise to promote the sale, use
219N/A# or other dealings in this Software without prior written authorization
219N/A# of the copyright holder.
219N/A#
618N/A# @(#)Makefile 1.16 08/03/06
219N/A#
219N/A###############################################################################
219N/A
219N/A# Order copied from X.Org's util/modular/build.sh:
219N/A# the libraries have a dependency order:
219N/A# xtrans, Xau, Xdmcp before anything else
219N/A# fontenc before Xfont
219N/A# ICE before SM
219N/A# X11 before Xext
219N/A# (X11 and SM) before Xt
219N/A# Xt before Xmu and Xpm and Xtst
219N/A# Xext before any other extension library
219N/A# Xfixes before Xcomposite
219N/A# Xp before XprintUtil before XprintAppUtil
219N/A
219N/AOS_SUBDIRS_common = \
219N/A freetype \
219N/A fontconfig \
219N/A libxtrans \
219N/A libXau \
219N/A libXdmcp \
219N/A libX11 \
219N/A libfontenc \
219N/A libICE \
219N/A libSM \
219N/A libXt \
219N/A libXmu \
219N/A libXpm \
219N/A libXaw \
219N/A libXfixes \
219N/A libXcomposite \
219N/A libXrender \
219N/A libXdamage \
219N/A libXcursor \
219N/A libXfont \
219N/A libXft \
219N/A libXi \
219N/A libXinerama \
219N/A libxkbfile \
219N/A libxkbui \
219N/A libXrandr \
219N/A libXres \
219N/A libXtst \
219N/A libXv \
219N/A libXvMC \
219N/A libXxf86misc \
219N/A libXxf86vm \
219N/A libXlg3d
219N/A
219N/AOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
219N/A
219N/AOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
219N/A libdrm \
219N/A mesa
219N/A
219N/AMACH:sh=uname -p
219N/AOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
219N/A
219N/Aall:
219N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
219N/A
219N/AWorld: clean all
219N/A
219N/Aclean:
219N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
219N/A
219N/Ainstall:
219N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
219N/A
219N/Adownload:
219N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
219N/A
219N/Asubdirs:
219N/A @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
219N/A for i in $(OS_SUBDIRS) ;\
219N/A do \
219N/A (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/lib/$$i..."; \
219N/A $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
219N/A done
219N/A