Makefile revision 354
0N/A# Makefile for X Consolidation Open Source Library modules
1186N/A#
1186N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0N/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
1164N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
1186N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
98N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1186N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1186N/A#
1186N/A# Except as contained in this notice, the name of a copyright holder
1186N/A# shall not be used in advertising or otherwise to promote the sale, use
1186N/A# or other dealings in this Software without prior written authorization
1186N/A# of the copyright holder.
58N/A#
1186N/A# @(#)Makefile 1.16 08/03/06
986N/A#
1186N/A###############################################################################
1186N/A
1186N/A# Order copied from X.Org's util/modular/build.sh:
1186N/A# the libraries have a dependency order:
1186N/A# xtrans, Xau, Xdmcp before anything else
1186N/A# fontenc before Xfont
1186N/A# ICE before SM
1186N/A# X11 before Xext
1186N/A# (X11 and SM) before Xt
1186N/A# Xt before Xmu and Xpm and Xtst
1186N/A# Xext before any other extension library
1186N/A# Xfixes before Xcomposite
1186N/A# Xp before XprintUtil before XprintAppUtil
1186N/A
1186N/AOS_SUBDIRS_common = \
1186N/A freetype \
1186N/A fontconfig \
1186N/A libxtrans \
1186N/A libXau \
1186N/A libXdmcp \
1186N/A libX11 \
1186N/A libfontenc \
1186N/A libICE \
1186N/A libSM \
1186N/A libXt \
207N/A libXmu \
1186N/A libXpm \
207N/A libXaw \
1186N/A libXfixes \
1186N/A libXcomposite \
1186N/A libXrender \
1186N/A libXdamage \
1186N/A libXcursor \
1186N/A libXfont \
1186N/A libXft \
1186N/A libXi \
1186N/A libXinerama \
1186N/A libxkbfile \
1186N/A libxkbui \
1186N/A libXrandr \
1186N/A libXres \
1186N/A libXtst \
1186N/A libXv \
1186N/A libXvMC \
1186N/A libXxf86misc \
1186N/A libXxf86vm \
1186N/A libXlg3d
1186N/A
1186N/AOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
1186N/A
1186N/AOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
850N/A libdrm \
1186N/A mesa
942N/A
1186N/AMACH:sh=uname -p
0N/AOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
1186N/A
1186N/Aall:
1186N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
1186N/A
207N/AWorld: clean all
1186N/A
1186N/Aclean:
1186N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
1186N/A
1186N/Ainstall:
1186N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
1186N/A
1186N/Adownload:
1186N/A $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
1186N/A
1186N/Asubdirs:
1186N/A @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
1186N/A for i in $(OS_SUBDIRS) ;\
1186N/A do \
1186N/A (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/lib/$$i..."; \
1186N/A $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
1186N/A done
1186N/A