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