open-src/app/mesa-demos/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Thu, 06 Apr 2017 22:27:29 -0700
changeset 1703 59811dd200b2
parent 1610 77a2e608a1ff
permissions -rw-r--r--
25856626 X man pages contain some man page normalization problems
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
1703
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
     3
# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
# Permission is hereby granted, free of charge, to any person obtaining a
919
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     6
# copy of this software and associated documentation files (the "Software"),
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     7
# to deal in the Software without restriction, including without limitation
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     8
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
     9
# and/or sell copies of the Software, and to permit persons to whom the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    10
# Software is furnished to do so, subject to the following conditions:
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    11
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    12
# The above copyright notice and this permission notice (including the next
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    13
# paragraph) shall be included in all copies or substantial portions of the
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    14
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    15
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    16
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    17
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    18
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    19
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    20
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    21
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    22
# DEALINGS IN THE SOFTWARE.
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
#
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    25
# Package name used in tarballs
1059
f79837e2c045 7009815 Upgrade mesa-demos to 8.0.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    26
MODULE_NAME=mesa-demos
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    28
# Package metadata
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    29
UPSTREAM	= The Mesa 3-D Graphics Library
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    30
UPSTREAM_URL	= http://mesa3d.org/
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    31
UPSTREAM_SET	= yes
1392
fa8ecde31cf5 17251350 X needs more TPNO's
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1366
diff changeset
    32
MODULE_DESC	= the Mesa 3-D Graphics demo applications
1549
4b5a9782609e 21256857 Update Xorg to the latest community version 1.17.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1493
diff changeset
    33
ORACLE_TPNO	= 22939
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    34
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    35
# pkg(5) name we deliver the files in (override default)
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    36
MODULE_PKGNAME=x11/demo/mesa-demos
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    37
MODULE_PKGNAME_SET=yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    38
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    39
# Version number (used in path names)
1549
4b5a9782609e 21256857 Update Xorg to the latest community version 1.17.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1493
diff changeset
    40
MODULE_VERSION=8.2.0
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    41
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 910
diff changeset
    42
# Checksums for upstream tarball
1549
4b5a9782609e 21256857 Update Xorg to the latest community version 1.17.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1493
diff changeset
    43
TARBALL_MD5  = 72613a2c8c013716db02e3ff59d29061
4b5a9782609e 21256857 Update Xorg to the latest community version 1.17.2
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1493
diff changeset
    44
TARBALL_SHA1 = e1a66ac63eebba4f950f95d830f34a6005167116
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    46
# Download site for source
1059
f79837e2c045 7009815 Upgrade mesa-demos to 8.0.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    47
SOURCE_URL=ftp://ftp.freedesktop.org/pub/mesa/demos/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
156
1dec9ce4addc 6551329 X open-src makefiles spawn too many shell commands
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 98
diff changeset
    48
SOURCE_URL_SET=yes
1551
73fac33fe172 21299212 X packages should use com.oracle.info.consolidation.repository-* tags
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1549
diff changeset
    49
GIT_URL=$(FDO_GIT_URL)/mesa/demos
73fac33fe172 21299212 X packages should use com.oracle.info.consolidation.repository-* tags
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1549
diff changeset
    50
GIT_URL_SET=yes
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
1703
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
    52
# Man pages to apply Sun footer to & attributes to list
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
    53
SUNTOUCHED_MANPAGES= man/glxgears.1 man/glxinfo.1
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
    54
MODULE_STABILITY= Volatile
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
    55
MODULE_SUNTOUCH_MAN_FLAGS = -r '{__xorgversion__, "$(MODULE_NAME) $(MODULE_VERSION)"}'
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
    56
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
# Binaries built in tree
1466
fbd4067be4c6 19461700 Split source & build subdirectories in X builds
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1425
diff changeset
    58
DEMOS_DIR=$(BUILD_DIR)/src/xdemos
1059
f79837e2c045 7009815 Upgrade mesa-demos to 8.0.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    59
GLXGEARS_BIN=$(DEMOS_DIR)/glxgears
f79837e2c045 7009815 Upgrade mesa-demos to 8.0.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    60
GLXINFO_BIN=$(DEMOS_DIR)/glxinfo
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    61
1059
f79837e2c045 7009815 Upgrade mesa-demos to 8.0.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    62
# Override some configure checks for libraries we don't need in the subset
f79837e2c045 7009815 Upgrade mesa-demos to 8.0.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    63
# we build & ship - have to set them to be non-empty strings though or 
f79837e2c045 7009815 Upgrade mesa-demos to 8.0.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    64
# configure will fail.
f79837e2c045 7009815 Upgrade mesa-demos to 8.0.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    65
MODULE_CONFIG_ENV = \
f79837e2c045 7009815 Upgrade mesa-demos to 8.0.1
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1042
diff changeset
    66
	GLEW_CFLAGS="-I-have-no-GLEW-" GLEW_LIBS="-I-have-no-GLEW-"
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    67
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    68
# What to build
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1059
diff changeset
    69
BUILD_TARGETS= $(GLXGEARS_BIN) $(GLXINFO_BIN) $(MODTYPE_ADD_BUILD_TARGETS)
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    70
BUILD_TARGETS_SET=yes
1262
b26dab1722a7 7155021 should deliver 32-bit versions of dri drivers
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1196
diff changeset
    71
BUILD_TYPES_SET=yes
b26dab1722a7 7155021 should deliver 32-bit versions of dri drivers
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1196
diff changeset
    72
BUILD_TYPES=32 64
231
fac2564585d9 6614335 sparc X build fails due to missing glxinfo/glxgears man pages
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 227
diff changeset
    73
fac2564585d9 6614335 sparc X build fails due to missing glxinfo/glxgears man pages
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 227
diff changeset
    74
# What to install
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1059
diff changeset
    75
INSTALL_TARGETS= install_demos install_man
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    76
INSTALL_TARGETS_SET=yes
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    77
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    78
# Compatibility links from /usr/X11/bin to /usr/bin
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    79
MODULE_X11_BINCOMPAT_LINKS = glxinfo
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    80
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    81
### Include common rulesets
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    82
include ../Makefile.inc
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    83
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    84
### Rules specific to this directory:
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    85
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    86
# Only care about building X demos
1425
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    87
DEMO_LDFLAGS = $(PROG_LDFLAGS) -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    88
	-L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    89
MODULE_LD_OPTIONS = $(ZDISCARD_UNUSED_DEP)
659
72515eb439dc 6813198 [defect 7060] glxinfo -i is coring
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    90
378
37921779d3c0 6679315 resync FOX & Nevada X gates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 355
diff changeset
    91
# Flags passed on make command line when building
659
72515eb439dc 6813198 [defect 7060] glxinfo -i is coring
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 606
diff changeset
    92
MODULE_BUILD_MAKEFLAGS = LDFLAGS="$(DEMO_LDFLAGS)"
378
37921779d3c0 6679315 resync FOX & Nevada X gates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 355
diff changeset
    93
1425
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    94
DEMO_BUILD_COMMAND = $(DEFAULT_BUILD_COMMAND:@DIR@=$(DEMOS_DIR))
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    95
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    96
# Build Mesa demos
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
    97
$(GLXGEARS_BIN): $(UNPACK_TARGET) $(CONFIGURE_TARGETS)
1425
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
    98
	$(DEMO_BUILD_COMMAND) glxgears
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    99
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   100
$(GLXINFO_BIN): $(UNPACK_TARGET) $(CONFIGURE_TARGETS)
1425
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
   101
	$(DEMO_BUILD_COMMAND) glxinfo
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   102
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   103
# For testing - we don't ship the rest of these
493
f43507b5737d 6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 378
diff changeset
   104
all-xdemos_gen: $(UNPACK_TARGET) $(CONFIGURE_TARGETS)
1425
d2b9d2006251 17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1392
diff changeset
   105
	$(DEMO_BUILD_COMMAND)
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   106
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   107
all-xdemos:
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1059
diff changeset
   108
	$(MAKE) $(MAKEFLAGS) $(BUILD_64_FLAGS) all-xdemos_gen
98
c21b46ed1efd 6489660 Xorg server 7.2 [PSARC 2007/051]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   109
606
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
   110
DESTDIR=$(PROTODIR)
068c11b419c9 6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 493
diff changeset
   111
1493
7fa19fcd81cd 17806761 accessx should be 64-bit program
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1466
diff changeset
   112
BINSUBDIR       = $(BINSUBDIR_$(BUILD_TYPE))
7fa19fcd81cd 17806761 accessx should be 64-bit program
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1466
diff changeset
   113
BINSUBDIR_32    = /$(SUBDIR32)
7fa19fcd81cd 17806761 accessx should be 64-bit program
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1466
diff changeset
   114
BINSUBDIR_64    = # None
7fa19fcd81cd 17806761 accessx should be 64-bit program
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1466
diff changeset
   115
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1059
diff changeset
   116
install_demos: $(INSTALL_DEPS)
1610
77a2e608a1ff 22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1551
diff changeset
   117
	mkdir -p $(DESTDIR)$(MODULE_BIN_DIR)$(BINSUBDIR)
1703
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   118
	$(INSTALL_SCRIPT) -m 0755 $(GLXGEARS_BIN) $(GLXINFO_BIN) \
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   119
		$(DESTDIR)$(MODULE_BIN_DIR)$(BINSUBDIR)
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   120
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   121
FIXED_MAN_PAGES = $(SUNTOUCHED_MANPAGES:%=$(SOURCE_DIR)/%)
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   122
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   123
$(SOURCE_ADD_TARGET): $(FIXED_MAN_PAGES)
231
fac2564585d9 6614335 sparc X build fails due to missing glxinfo/glxgears man pages
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 227
diff changeset
   124
1703
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   125
$(SOURCE_DIR)/man/%: $(SOURCE_DIR)/man
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   126
	ln -sf ../../$(@F) $@
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   127
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   128
$(SOURCE_DIR)/man: $(SOURCE_INIT_TARGET)
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   129
	mkdir -p $@
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   130
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   131
install_man: $(FIXED_MAN_TARGET)
1610
77a2e608a1ff 22807351 X gate makefiles no longer need to carry around $(X11_DIR) baggage
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1551
diff changeset
   132
	mkdir -p $(DESTDIR)$(MODULE_MAN_DIR)/man1
1703
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   133
	$(INSTALL_SCRIPT) -m 0444 $(FIXED_MAN_PAGES) \
59811dd200b2 25856626 X man pages contain some man page normalization problems
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1610
diff changeset
   134
		$(DESTDIR)$(MODULE_MAN_DIR)/man1