open-src/app/xdm/Makefile
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Wed, 31 Aug 2011 14:38:40 -0700
changeset 1199 b6706e7f1c36
parent 1197 0dc02fa0d678
child 1339 4f152696e5f2
permissions -rw-r--r--
7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     3
# xdm Makefile
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
#
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
     5
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
# 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
     8
# 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
     9
# 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
    10
# 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
    11
# 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
    12
# 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
    13
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    14
# 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
    15
# 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
    16
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    17
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    18
# 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
    19
# 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
    20
# 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
    21
# 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
    22
# 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
    23
# 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
    24
# DEALINGS IN THE SOFTWARE.
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
# Package name used in tarballs
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
MODULE_NAME=xdm
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    31
# 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: 967
diff changeset
    32
MODULE_PKGNAME=system/display-manager/xdm
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    33
MODULE_PKGNAME_SET=yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 967
diff changeset
    34
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
# Version number (used in path names)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
MODULE_VERSION=1.1.9
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    38
# Checksums for upstream tarball
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    39
TARBALL_MD5  = 030ae4bd9b8d428749d68bfdf56ce8a5
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    40
TARBALL_SHA1 = ea0ee2923999d54848dc8a165867ffa7c628fd7b
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    41
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    42
# Patches to apply to source after unpacking, in order
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
SOURCE_PATCHES = \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
	mkdir.patch,-p1 \
1141
e98284f37c98 6960231 xdm login fails with: pam_unix_cred: cannot load ttyname with c2audit loaded
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1097
diff changeset
    45
	pam_tty.patch,-p1 \
e98284f37c98 6960231 xdm login fails with: pam_unix_cred: cannot load ttyname with c2audit loaded
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1097
diff changeset
    46
	pam_user.patch,-p1 \
1199
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    47
	bindir.patch,-p1 \
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
	terminateServer.patch \
930
1d5fde7d897b 6822636 xdm: Xterminals unable to login via XDM due to possible race condition - Sol 10
Naveen Gundlagutta <Naveen.Gundlagutta@Sun.COM>
parents: 924
diff changeset
    49
	bug-6822636.patch \
924
107931382538 6820612 Sol10: cde dtchooser does not connect to Sol 10 xdm via host list
Naveen Gundlagutta <Naveen.Gundlagutta@Sun.COM>
parents: 919
diff changeset
    50
	bug-6820612.patch,-p1 \
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
	Xsession.patch
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    52
1199
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    53
# Need to rebuild configure/Makefile.in after applying bindir.patch
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    54
AUTORECONF=yes
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    55
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    56
# Man pages to apply Sun footer to & attributes to list
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
SUNTOUCHED_MANPAGES=xdm.man.cpp
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    58
MODULE_STABILITY=Committed
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    59
MODULE_SUNTOUCH_MAN_FLAGS= -p $(MODULE_PREFIX)/sbin/
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    60
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    61
# Where to install xdm files
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
MODULE_PREFIX=/usr
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    63
MODULE_PREFIX_SET=yes
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    64
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    65
# Additional configure script options
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    66
# Only build shared greeter module, not static
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    67
# Set various paths to better match Solaris
1199
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    68
# Find xrdb & xterm in /usr/bin even with --bindir set to /usr/sbin
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    69
MODULE_CONFIG_OPTS= \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    70
	--enable-shared=yes --enable-static=no \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    71
	--with-xdmconfigdir=/etc/X11/xdm \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    72
	--with-piddir=/var/run/xdm \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    73
	--with-authdir=/var/run/xdm \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    74
	--bindir=/usr/sbin \
1199
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    75
	--with-xrdb='$(X11_BIN_DIR)/xrdb' \
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    76
	--with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
b6706e7f1c36 7084696 xdm default $PATH should stop including obsolete directories (fix other paths)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1197
diff changeset
    77
	DEF_SERVER='$(X11_BIN_DIR)/X' \
1197
0dc02fa0d678 7084696 xdm default $PATH should stop including obsolete directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
    78
	DEF_USER_PATH=/usr/bin:/usr/sbin \
0dc02fa0d678 7084696 xdm default $PATH should stop including obsolete directories
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1196
diff changeset
    79
	DEF_SYSTEM_PATH=/usr/bin:/usr/sbin
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    80
1196
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1141
diff changeset
    81
# configure scripts add libraries like -lXt & -lXinerama to the global $(LIBS)
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1141
diff changeset
    82
# when only some objects need them, so ignore them in the rest.
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1141
diff changeset
    83
MODTYPE_LD_OPTIONS = -z ignore
1ce455dae979 7081325 X builds should run check_rtime to ensure binaries are linked well
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1141
diff changeset
    84
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    85
# Additional build & install targets
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    86
MODULE_ADD_BUILD_TARGETS=build_xdm_configs
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    87
MODULE_ADD_INSTALL_TARGETS=install_xdmshell install_xdm_configs
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    88
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    89
# Need to fix libtool interference with our linker flags
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    90
DELIBTOOLIZE=yes
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    91
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    92
include ../Makefile.inc
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    93
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    94
# Move xdmshell from default location to the place we put in our packages
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    95
install_xdmshell: default_install
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    96
	-rm -f $(PROTODIR)/usr/lib/X11/xdm/xdmshell
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    97
	mv $(PROTODIR)/usr/sbin/xdmshell $(PROTODIR)/usr/lib/X11/xdm/xdmshell
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    98
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    99
# Copy xdm config files from /etc to /usr for use as prototypes
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   100
XDM_CONFIG_FILES=Xaccess Xresources Xservers xdm-config
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   101
XDM_ETC_CONFIGDIR=/etc/X11/xdm
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   102
XDM_USR_CONFIGDIR=/usr/lib/X11/xdm
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   103
XCF_USR_FILES=$(XDM_CONFIG_FILES:%=$(PROTODIR)/$(XDM_USR_CONFIGDIR)/%)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   104
XCF_ETC_SRCDIR=$(SOURCE_DIR)/config
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   105
XCF_ETC_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_ETC_SRCDIR)/%)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   106
XCF_USR_SRCDIR=$(SOURCE_DIR)/config/annotated
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   107
XCF_USR_SRCFILES=$(XDM_CONFIG_FILES:%=$(XCF_USR_SRCDIR)/%)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   108
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   109
build_xdm_configs: $(XCF_USR_SRCFILES)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   110
install_xdm_configs: $(XCF_USR_FILES) $(PROTODIR)/$(XDM_USR_CONFIGDIR)/README
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   111
$(XCF_ETC_SRCFILES): default_build
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   112
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   113
XCF_HEADER = %1$$s----------------------------------------------------------------------------
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   114
XCF_HEADER += \n%1$$s NOTE: The file provided in $(XDM_USR_CONFIGDIR) is a sample %2$$s
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   115
XCF_HEADER += \n%1$$s configuration file provided for your reference.
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   116
XCF_HEADER += \n%1$$s
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   117
XCF_HEADER += \n%1$$s xdm reads the actual configuration from the copies located in $(XDM_ETC_CONFIGDIR)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   118
XCF_HEADER += \n%1$$s (unless configured otherwise by $(XDM_ETC_CONFIGDIR)/xdm-config or
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   119
XCF_HEADER += \n%1$$s  a file specified via the -config command line option).
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   120
XCF_HEADER += \n%1$$s----------------------------------------------------------------------------\n
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   121
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   122
$(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCDIR):
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   123
	mkdir -p $@
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   124
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   125
$(XCF_USR_FILES): $(PROTODIR)/$(XDM_USR_CONFIGDIR) $(XCF_USR_SRCFILES)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   126
	-rm -f $@
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   127
	mkdir -p $(PROTODIR)/$(XDM_USR_CONFIGDIR)
967
efbd0ee6805d 6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   128
	cp -p $(XCF_USR_SRCDIR)/$(@F) $@
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   129
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   130
$(XCF_USR_SRCFILES): $(XCF_USR_SRCDIR) $(XCF_ETC_SRCFILES)
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   131
	-rm -f $@
967
efbd0ee6805d 6963229 build race conditions and other makefile issues
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
   132
	FILENAME=$(@F) ; \
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   133
	COMMENT_CHAR=$$(head -n 1 $(XCF_ETC_SRCDIR)/$${FILENAME}) ; \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   134
	printf '$(XCF_HEADER)' $${COMMENT_CHAR} $${FILENAME} > $@ ; \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   135
	cat $(XCF_ETC_SRCDIR)/$${FILENAME} >> $@
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   136
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   137
$(PROTODIR)/$(XDM_USR_CONFIGDIR)/README:$(PROTODIR)/$(XDM_USR_CONFIGDIR)  config-README.txt
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   138
	cp -p config-README.txt $@