Makefile revision 213
436aad11e01e916f75e68a2e9cb89ac217a990d3Tinderbox User# Makefile for X Consolidation Open Source Application modules
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User# Use subject to license terms.
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User#
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# Permission is hereby granted, free of charge, to any person obtaining a
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User# copy of this software and associated documentation files (the
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# "Software"), to deal in the Software without restriction, including
1f4c645185bd8fc70048e0a69eee46193a284e5cTinderbox User# without limitation the rights to use, copy, modify, merge, publish,
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# distribute, and/or sell copies of the Software, and to permit persons
bed0874e1a09e810575328c4bfc346a47514b69fMark Andrews# to whom the Software is furnished to do so, provided that the above
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User# copyright notice(s) and this permission notice appear in all copies of
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# the Software and that both the above copyright notice(s) and this
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# permission notice appear in supporting documentation.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews#
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Except as contained in this notice, the name of a copyright holder
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# shall not be used in advertising or otherwise to promote the sale, use
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# or other dealings in this Software without prior written authorization
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# of the copyright holder.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# @(#)Makefile 1.8 07/08/31
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews#
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews###############################################################################
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsOS_SUBDIRS_common = \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User constype \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews mkfontscale \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User xcursorgen \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews xdpyinfo \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User xgamma \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews xkbcomp \
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User xpm \
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews xrandr \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt xvidtune \
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User xvinfo \
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User xscreensaver
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterOS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
24934f08b9ff81c2be711e566e8002d145573031Tinderbox User
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterOS_SUBDIRS_i386 = $(OS_SUBDIRS_common) \
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt mesa-demos
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox UserMACH:sh=uname -p
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntOS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterall:
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(MAKE) $(MFLAGS) subdirs OS_TARGET=all
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsWorld: clean all
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsclean:
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinstall:
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(MAKE) $(MFLAGS) subdirs OS_TARGET=install
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsdownload:
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(MAKE) $(MFLAGS) subdirs OS_TARGET=download
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updatersubdirs:
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews for i in $(OS_SUBDIRS) ;\
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews do \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/proto/$$i..."; \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews done
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User