open-src/app/Makefile
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Sun, 24 Feb 2008 08:43:52 -0800
changeset 332 a60a23ffaebe
parent 326 db53d7d95c65
child 335 32180fb30fd9
permissions -rw-r--r--
6662431 luit [PSARC 2008/100]
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
# Makefile for X Consolidation Open Source Application modules
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
286
d9eacaa3a109 6652612 Replace xmodmap with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 280
diff changeset
     3
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
# Use subject to license terms.
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
#
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
# Permission is hereby granted, free of charge, to any person obtaining a
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
# copy of this software and associated documentation files (the
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     8
# "Software"), to deal in the Software without restriction, including
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     9
# without limitation the rights to use, copy, modify, merge, publish,
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
# distribute, and/or sell copies of the Software, and to permit persons
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    11
# to whom the Software is furnished to do so, provided that the above
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    12
# copyright notice(s) and this permission notice appear in all copies of
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    13
# the Software and that both the above copyright notice(s) and this
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
# permission notice appear in supporting documentation.
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    15
# 
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    16
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    17
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    18
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    19
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    20
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
# 
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
# Except as contained in this notice, the name of a copyright holder
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
# shall not be used in advertising or otherwise to promote the sale, use
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
# or other dealings in this Software without prior written authorization
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
# of the copyright holder.
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
#
332
a60a23ffaebe 6662431 luit [PSARC 2008/100]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 326
diff changeset
    31
# @(#)Makefile	1.32	08/02/24
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
#
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    33
###############################################################################
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    35
OS_SUBDIRS_common = \
321
c1cb7591d690 6665484 Replace bitmap and appres with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 320
diff changeset
    36
	appres \
c1cb7591d690 6665484 Replace bitmap and appres with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 320
diff changeset
    37
	bitmap \
213
18892ba1c27b 6598244 Xorg modularization: constype
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 210
diff changeset
    38
	constype \
304
663147d1e4cc 6657867 Replace xclipboard and editres with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 299
diff changeset
    39
	editres \
325
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 324
diff changeset
    40
	iceauth \
320
77f732d3caaa 6664054 Update listres to open source version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 319
diff changeset
    41
	listres \
332
a60a23ffaebe 6662431 luit [PSARC 2008/100]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 326
diff changeset
    42
	luit \
231
fac2564585d9 6614335 sparc X build fails due to missing glxinfo/glxgears man pages
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 213
diff changeset
    43
	mesa-demos \
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    44
	mkfontscale \
324
f645da0bdd43 6666299 Update TWM to open source version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 321
diff changeset
    45
	twm \
310
1732b3c1b136 6661603 Deliver x11perf as part of the X11 consolidation
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 309
diff changeset
    46
	x11perf \
316
a47e6b8e701b 6663468 update xauth to open source version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 310
diff changeset
    47
	xauth \
290
016d87bea02c 6653913 Replace xmag, xcalc with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 289
diff changeset
    48
	xcalc \
332
a60a23ffaebe 6662431 luit [PSARC 2008/100]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 326
diff changeset
    49
	xclipboard \
a60a23ffaebe 6662431 luit [PSARC 2008/100]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 326
diff changeset
    50
	xcmsdb \
a60a23ffaebe 6662431 luit [PSARC 2008/100]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 326
diff changeset
    51
	xconsole \
210
5bac47f9c993 6351300 libXcursor & xcursorgen [LSARC 2007/491]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 156
diff changeset
    52
	xcursorgen \
128
7e825376e18c 6533086 Xorg modularization: xdpyinfo 1.0.1
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 98
diff changeset
    53
	xdpyinfo \
326
db53d7d95c65 6655323 replace xev with opensrc version from X.org(7.3)
Sam Lau <Sam.Lau@Sun.COM>
parents: 325
diff changeset
    54
	xev \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    55
	xgamma \
294
2c88146a951a 6654375 Import the open source version of xhost
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 290
diff changeset
    56
	xhost \
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    57
	xkbcomp \
277
a985ad3680af 6648881 Update xkill to Xorg version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 262
diff changeset
    58
	xkill \
289
bd2a2d0c9622 6653810 Use OpenSource version of xlsatoms
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 286
diff changeset
    59
	xlsatoms \
326
db53d7d95c65 6655323 replace xev with opensrc version from X.org(7.3)
Sam Lau <Sam.Lau@Sun.COM>
parents: 325
diff changeset
    60
	xlsclients \
290
016d87bea02c 6653913 Replace xmag, xcalc with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 289
diff changeset
    61
	xmag \
286
d9eacaa3a109 6652612 Replace xmodmap with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 280
diff changeset
    62
	xmodmap \
90
aa93b75745de 6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 70
diff changeset
    63
	xpm \
295
ae94314169f7 6654827 Replace xprop with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 294
diff changeset
    64
	xprop \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    65
	xrandr \
299
ba59bb56fed5 6656679 Update xrdb to use the opensource version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 295
diff changeset
    66
	xrdb \
262
dce04ad1270e 6642085 Replace xrefresh with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 253
diff changeset
    67
	xrefresh \
277
a985ad3680af 6648881 Update xkill to Xorg version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 262
diff changeset
    68
	xset \
332
a60a23ffaebe 6662431 luit [PSARC 2008/100]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 326
diff changeset
    69
	xsetroot \
a60a23ffaebe 6662431 luit [PSARC 2008/100]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 326
diff changeset
    70
	xstdcmap \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    71
	xvidtune \
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    72
	xvinfo \
319
898867197820 6663965 Replace xwd and xwud with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 316
diff changeset
    73
	xwd \
280
b7cafbbed804 6651429 Replace xwininfo with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 277
diff changeset
    74
	xwininfo \
319
898867197820 6663965 Replace xwd and xwud with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 316
diff changeset
    75
	xwud \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    76
	xscreensaver
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    77
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    78
OS_SUBDIRS_sparc = $(OS_SUBDIRS_common)
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    79
231
fac2564585d9 6614335 sparc X build fails due to missing glxinfo/glxgears man pages
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 213
diff changeset
    80
OS_SUBDIRS_i386 = $(OS_SUBDIRS_common)
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    81
156
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 128
diff changeset
    82
MACH:sh=uname -p
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 128
diff changeset
    83
OS_SUBDIRS=$(OS_SUBDIRS_$(MACH))
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    84
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    85
all: 
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    86
	$(MAKE) $(MFLAGS) subdirs OS_TARGET=all
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    87
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    88
World: clean all
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    89
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    90
clean: 
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    91
	$(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    92
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    93
install:
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    94
	$(MAKE) $(MFLAGS) subdirs OS_TARGET=install
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    95
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    96
download:
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    97
	$(MAKE) $(MFLAGS) subdirs OS_TARGET=download
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    98
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    99
subdirs:
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   100
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   101
	for i in $(OS_SUBDIRS) ;\
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   102
	do \
253
88e5aa1fb5f9 6632519 X proto source dirs should be renamed
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 231
diff changeset
   103
	(cd $$i ; echo "## making" $(OS_TARGET) "in open-src/app/$$i..."; \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   104
	$(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   105
	done