open-src/app/xdm/Makefile
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Sat, 05 Dec 2009 22:13:03 -0800
changeset 851 d428083dbbdd
parent 792 be478ae051ae
child 911 a3e7e197651c
permissions -rw-r--r--
6905171 X11R7.5 / Xorg 1.7.3 integration 6907686 Move X files from /usr/X11 to /usr [PSARC 2009/482] 6907695 Mesa & OpenGL switcher for SPARC [LSARC 2009/569] 6742737 deliver xf86-input-synaptics
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
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
# Use is subject to license terms.
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     8
# Permission is hereby granted, free of charge, to any person obtaining a
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     9
# copy of this software and associated documentation files (the
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
# "Software"), to deal in the Software without restriction, including
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    11
# without limitation the rights to use, copy, modify, merge, publish,
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    12
# distribute, and/or sell copies of the Software, and to permit persons
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    13
# to whom the Software is furnished to do so, provided that the above
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
# copyright notice(s) and this permission notice appear in all copies of
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    15
# the Software and that both the above copyright notice(s) and this
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    16
# permission notice appear in supporting documentation.
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    17
# 
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    18
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    19
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    20
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
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
# Except as contained in this notice, the name of a copyright holder
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
# shall not be used in advertising or otherwise to promote the sale, use
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
# or other dealings in this Software without prior written authorization
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    31
# of the copyright holder.
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    33
#
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
# 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
    36
MODULE_NAME=xdm
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    38
# 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
    39
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
    40
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
# 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
    42
SOURCE_PATCHES = \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
	mkdir.patch,-p1 \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
	bindir.patch \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
	terminateServer.patch \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    46
	Xsession.patch
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    47
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
# 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
    49
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
    50
SUN_PACKAGE=SUNWxdm
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
MODULE_STABILITY=Committed
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    52
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
    53
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    54
# 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
    55
MODULE_PREFIX=/usr
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    56
MODULE_PREFIX_SET=yes
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    58
# Additional configure script options
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    59
# 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
    60
# Set various paths to better match Solaris
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    61
MODULE_CONFIG_OPTS= \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
	--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
    63
	--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
    64
	--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
    65
	--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
    66
	--bindir=/usr/sbin \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    67
	DEF_USER_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    68
	DEF_SYSTEM_PATH=/usr/bin:/usr/X11/bin:/usr/sbin:/sbin
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    69
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    70
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    71
# Special handling while xdm is moved to /usr but other apps are still in
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    72
# /usr/X11
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    73
MODULE_CONFIG_OPTS += \
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 792
diff changeset
    74
	--with-xrdb='$(X11_BIN_DIR)/xrdb' \
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 792
diff changeset
    75
	--with-default-session=command='$(X11_BIN_DIR)/xterm -ls' \
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    76
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    77
# Additional build & install targets
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    78
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
    79
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
    80
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    81
include ../Makefile.inc
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    82
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    83
# 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
    84
install_xdmshell: default_install
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    85
	-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
    86
	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
    87
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    88
# 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
    89
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
    90
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
    91
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
    92
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
    93
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
    94
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
    95
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
    96
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
    97
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    98
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
    99
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
   100
$(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
   101
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   102
XCF_HEADER = %1$$s----------------------------------------------------------------------------
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   103
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
   104
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
   105
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
   106
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
   107
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
   108
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
   109
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
   110
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   111
$(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
   112
	mkdir -p $@
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   113
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   114
$(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
   115
	-rm -f $@
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   116
	mkdir -p $(PROTODIR)/$(XDM_USR_CONFIGDIR)
851
d428083dbbdd 6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 792
diff changeset
   117
	@ $(START_CMD_ECHO) ; cp -p $(XCF_USR_SRCDIR)/$$(basename $@) $@
792
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   118
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   119
$(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
   120
	-rm -f $@
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   121
	FILENAME=$$(basename $@) ; \
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   122
	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
   123
	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
   124
	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
   125
be478ae051ae 6885155 Xorg modularization: xdm 1.1.9 [LSARC/2009/512]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
   126
$(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
   127
	cp -p config-README.txt $@