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