open-src/app/Makefile
author Stefan Teleman <Stefan.Teleman@Sun.COM>
Fri, 22 Feb 2008 15:07:27 -0800
changeset 325 ab2a98db8d31
parent 324 f645da0bdd43
child 326 db53d7d95c65
permissions -rw-r--r--
6654393 Upgrade libfreetype to 2.3.5 6654835 Replace iceauth with Xorg Open Source version of iceauth 6654836 libICE should be replaced with the Open Source version from X.org 6654837 libSM should be replaced by the Open Source version delivered by X.org
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
#
325
ab2a98db8d31 6654393 Upgrade libfreetype to 2.3.5
Stefan Teleman <Stefan.Teleman@Sun.COM>
parents: 324
diff changeset
    31
# @(#)Makefile	1.29	08/02/22
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 \
231
fac2564585d9 6614335 sparc X build fails due to missing glxinfo/glxgears man pages
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 213
diff changeset
    42
	mesa-demos \
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    43
	mkfontscale \
324
f645da0bdd43 6666299 Update TWM to open source version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 321
diff changeset
    44
	twm \
310
1732b3c1b136 6661603 Deliver x11perf as part of the X11 consolidation
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 309
diff changeset
    45
	x11perf \
316
a47e6b8e701b 6663468 update xauth to open source version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 310
diff changeset
    46
	xauth \
290
016d87bea02c 6653913 Replace xmag, xcalc with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 289
diff changeset
    47
	xcalc \
304
663147d1e4cc 6657867 Replace xclipboard and editres with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 299
diff changeset
    48
 	xclipboard \
321
c1cb7591d690 6665484 Replace bitmap and appres with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 320
diff changeset
    49
 	xcmsdb \
309
cdb665e70efa 6661101 Replace xconsole and xstdcmap with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 304
diff changeset
    50
 	xconsole \
210
5bac47f9c993 6351300 libXcursor & xcursorgen [LSARC 2007/491]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 156
diff changeset
    51
	xcursorgen \
128
7e825376e18c 6533086 Xorg modularization: xdpyinfo 1.0.1
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 98
diff changeset
    52
	xdpyinfo \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    53
	xgamma \
294
2c88146a951a 6654375 Import the open source version of xhost
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 290
diff changeset
    54
	xhost \
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    55
	xkbcomp \
277
a985ad3680af 6648881 Update xkill to Xorg version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 262
diff changeset
    56
	xkill \
289
bd2a2d0c9622 6653810 Use OpenSource version of xlsatoms
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 286
diff changeset
    57
	xlsatoms \
290
016d87bea02c 6653913 Replace xmag, xcalc with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 289
diff changeset
    58
	xmag \
286
d9eacaa3a109 6652612 Replace xmodmap with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 280
diff changeset
    59
	xmodmap \
90
aa93b75745de 6509458 Xorg modularization: libXpm & xpm apps
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 70
diff changeset
    60
	xpm \
295
ae94314169f7 6654827 Replace xprop with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 294
diff changeset
    61
	xprop \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
	xrandr \
299
ba59bb56fed5 6656679 Update xrdb to use the opensource version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 295
diff changeset
    63
	xrdb \
262
dce04ad1270e 6642085 Replace xrefresh with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 253
diff changeset
    64
	xrefresh \
277
a985ad3680af 6648881 Update xkill to Xorg version
Jay Cotton <Jay.Cotton@Sun.COM>
parents: 262
diff changeset
    65
	xset \
280
b7cafbbed804 6651429 Replace xwininfo with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 277
diff changeset
    66
        xsetroot \
309
cdb665e70efa 6661101 Replace xconsole and xstdcmap with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 304
diff changeset
    67
        xstdcmap \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    68
	xvidtune \
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    69
	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
    70
	xwd \
280
b7cafbbed804 6651429 Replace xwininfo with the opensrc version from X.Org
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents: 277
diff changeset
    71
	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
    72
	xwud \
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    73
	xscreensaver
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    74
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 90
diff changeset
    75
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
    76
231
fac2564585d9 6614335 sparc X build fails due to missing glxinfo/glxgears man pages
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 213
diff changeset
    77
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
    78
156
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 128
diff changeset
    79
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
    80
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
    81
70
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    82
all: 
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    83
	$(MAKE) $(MFLAGS) subdirs OS_TARGET=all
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    84
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    85
World: clean all
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    86
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    87
clean: 
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    88
	$(MAKE) $(MFLAGS) subdirs OS_TARGET=clean
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
install:
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    91
	$(MAKE) $(MFLAGS) subdirs OS_TARGET=install
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
download:
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    94
	$(MAKE) $(MFLAGS) subdirs OS_TARGET=download
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
subdirs:
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    97
	@case '${MFLAGS}' in *[ik]*) set +e;; esac; \
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    98
	for i in $(OS_SUBDIRS) ;\
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    99
	do \
253
88e5aa1fb5f9 6632519 X proto source dirs should be renamed
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 231
diff changeset
   100
	(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
   101
	$(MAKE) $(MFLAGS) CDEBUGFLAGS="$(CDEBUGFLAGS)" $(OS_TARGET)); \
af1bea13b32b 6477401 Xorg modularization: SUNWxorg-client*
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   102
	done