Makefile revision 61
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# Makefile for X Consolidation Open Source bits
663272199096ed57917f2bfb1d748a0a622b7b24Tinderbox User#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Use subject to license terms.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# copy of this software and associated documentation files (the
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# "Software"), to deal in the Software without restriction, including
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# without limitation the rights to use, copy, modify, merge, publish,
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# distribute, and/or sell copies of the Software, and to permit persons
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# to whom the Software is furnished to do so, provided that the above
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# copyright notice(s) and this permission notice appear in all copies of
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# the Software and that both the above copyright notice(s) and this
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# permission notice appear in supporting documentation.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# Except as contained in this notice, the name of a copyright holder
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# shall not be used in advertising or otherwise to promote the sale, use
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# or other dealings in this Software without prior written authorization
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# of the copyright holder.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# @(#)Makefile 1.7 06/09/15
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews###############################################################################
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# Modules in this makefile are divided into 2 sections - those that need to
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# be built before the X11 monolithic tree (because X depends on them) and
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# those that need to be build after the X11 monolithic tree (because they
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# depend on X).
dec590a3deb8e87380a8bd3a77d535dba3729bf6Tinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsBEFOREX = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User proto \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User data/xbitmaps \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User util/lndir \
e62b9c9ce6413fb183c8116381e75dcd07ca5517Tinderbox User lib/freetype \
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews lib/fontconfig \
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews lib/libXau \
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews lib/libXdmcp \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User lib/Xft
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox UserAFTERX = \
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User app/xscreensaver \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User font/bitstream-vera
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsALL = $(BEFOREX) $(AFTERX)
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews# Need to install to proto area by default for inter-package dependencies to
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User# work right.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox Userall: install
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserWorld: clean install
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox UserbeforeX-all:
914ed533b846624c8ba5e7a72a5e8e50c9018b0aTinderbox User $(MAKE) $(MFLAGS) subdirs OS_TARGET=all OS_SUBDIRS=BEFOREX
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsafterX-all:
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews $(MAKE) $(MFLAGS) subdirs OS_TARGET=all OS_SUBDIRS=AFTERX
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsclean: beforeX-clean afterX-clean
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsbeforeX-clean:
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean OS_SUBDIRS=BEFOREX
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsafterX-clean:
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User $(MAKE) $(MFLAGS) subdirs OS_TARGET=clean OS_SUBDIRS=AFTERX
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsinstall: beforeX-install afterX-install
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox UserbeforeX-install:
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews $(MAKE) $(MFLAGS) subdirs OS_TARGET=install OS_SUBDIRS=BEFOREX
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsafterX-install:
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews $(MAKE) $(MFLAGS) subdirs OS_TARGET=install OS_SUBDIRS=AFTERX
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrewsdownload: beforeX-download afterX-download
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsbeforeX-download:
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews $(MAKE) $(MFLAGS) subdirs OS_TARGET=download OS_SUBDIRS=BEFOREX
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark AndrewsafterX-download:
6f1205897504b8f50b1785975482c995888dd630Tinderbox User $(MAKE) $(MFLAGS) subdirs OS_TARGET=download OS_SUBDIRS=AFTERX
6f1205897504b8f50b1785975482c995888dd630Tinderbox User
6f1205897504b8f50b1785975482c995888dd630Tinderbox Usersubdirs:
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User @case '${MFLAGS}' in *[ik]*) set +e;; esac; \
6f1205897504b8f50b1785975482c995888dd630Tinderbox User for i in $($(OS_SUBDIRS)) ;\
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews do \
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews (cd $$i ; echo "## making" $(OS_TARGET) "in open-src/$$i..."; \
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User $(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews done
0c91911b4d1e872b87eaf6431ed47fe24d18dd43Mark Andrews