Makefile revision 98
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Makefile for X Consolidation Open Source Library modules
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use subject to license terms.
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# copy of this software and associated documentation files (the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# "Software"), to deal in the Software without restriction, including
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# without limitation the rights to use, copy, modify, merge, publish,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# distribute, and/or sell copies of the Software, and to permit persons
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# to whom the Software is furnished to do so, provided that the above
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# copyright notice(s) and this permission notice appear in all copies of
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# the Software and that both the above copyright notice(s) and this
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# permission notice appear in supporting documentation.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont#
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater# Except as contained in this notice, the name of a copyright holder
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# shall not be used in advertising or otherwise to promote the sale, use
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# or other dealings in this Software without prior written authorization
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# of the copyright holder.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# @(#)Makefile 1.1 07/01/31
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews###############################################################################
28b3569d6248168e6c00caab951521cc8141a49dAutomatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsOS_SUBDIRS_common = \
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater freetype \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews fontconfig \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libxtrans \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXau \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXdmcp \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libfontenc \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXpm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXaw \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXfixes \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXfont \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews Xft \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libxkbfile \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libxkbui \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXrandr \
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater libXv \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXvMC \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXxf86misc \
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater libXxf86vm \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libXlg3d
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark AndrewsOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic UpdaterOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews libdrm \
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater mesa
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic UpdaterOS_SUBDIRS:sh=uname -p | sed 's/^\(.*\)$/\$\(OS_SUBDIRS_\1\)/'
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updater
ad671240d635376dd8681550eebee799d2e3d1fdAutomatic Updaterall:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic UpdaterWorld: clean all
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclean:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updaterinstall:
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
0e9e255d1643375056aa9ed7fe2a279713ffae78Automatic Updater
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updaterdownload:
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updatersubdirs:
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater for i in $(OS_SUBDIRS) ;\
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater do \
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/lib/$$i..."; \
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater done
8e821eea5f57ac47a94305aa7ab0c3570d92a311Automatic Updater