Makefile revision 455
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# Makefile for X Consolidation Open Source Application modules
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater#
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Use subject to license terms.
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater#
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater# Permission is hereby granted, free of charge, to any person obtaining a
7b67cfadd077feb0ec3e6c78385ba0d845a9789bMark Andrews# copy of this software and associated documentation files (the
75b70a68aefaa17ac4e768d5ed85d2f50d471490Automatic Updater# "Software"), to deal in the Software without restriction, including
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# without limitation the rights to use, copy, modify, merge, publish,
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater# distribute, and/or sell copies of the Software, and to permit persons
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# to whom the Software is furnished to do so, provided that the above
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# copyright notice(s) and this permission notice appear in all copies of
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# the Software and that both the above copyright notice(s) and this
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# permission notice appear in supporting documentation.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Except as contained in this notice, the name of a copyright holder
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# shall not be used in advertising or otherwise to promote the sale, use
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# or other dealings in this Software without prior written authorization
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# of the copyright holder.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# @(#)Makefile 1.54 08/07/01
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson###############################################################################
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Dependency ordering:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# rss-glx needs to come after xscreensaver
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterOS_SUBDIRS_common = \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater appres \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews bitmap \
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater constype \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews editres \
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic Updater fslsfonts \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater fstobdf \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews iceauth \
ca904804e43f663f08eb1ac9d6d617930b9a3cd3Automatic Updater listres \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews luit \
c0b771f68361b073388b85a689c12cbe502880eeAutomatic Updater mesa-demos \
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews mkfontscale \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews oclock \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews setxkbmap \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson showfont \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews twm \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews viewres \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews x11perf \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews xauth \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson xcalc \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews xclipboard \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews xcmsdb \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson xconsole \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews xcursorgen \
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater xdpyinfo \
bb93c8542756719b53096b9939e4041d0966026fAutomatic Updater xdriinfo \
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater xev \
55e03fc54708d97917bf26639b987f759bdc1f44Automatic Updater xfd \
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater xfsinfo \
723bfc0fc28c486c805de016c4475a35328eb8abAutomatic Updater xfwp \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont xgamma \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont xgc \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont xhost \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont xinit \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews xkbcomp \
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater xkbprint \
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater xkill \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews xload \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews xlogo \
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater xlsatoms \
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater xlsclients \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews xlsfonts \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater xmag \
7af91d15b2ce1ce32f7320f6d5cc3b83621c241aAutomatic Updater xman \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews xmodmap \
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews xpm \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater xprop \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater xrandr \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater xrdb \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater xrefresh \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater xrx \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater xset \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews xsetroot \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson xstdcmap \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews xvidtune \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews xvinfo \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson xwd \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews xwininfo \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson xwud \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews xscreensaver \
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater rss-glx \
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater xterm
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic UpdaterOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterOS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater
3098364bcdd7a719fbafa5fc8d2cc9e90e5a5989Automatic UpdaterMACH:sh=uname -p
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic UpdaterOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterall:
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterWorld: clean all
5ae0e2c8b72fa44237edeb37d1945b1c3535ca39Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterclean:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterinstall:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updaterdownload:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updatersource:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater $(MAKE) $(MFLAGS) subdirs OS_TARGET=source
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updatersubdirs:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater for i in $(OS_SUBDIRS) ;\
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater do \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/app/$$i..."; \
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater done
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater