Cross Reference: Makefile
xref
: /
solaris-x11-s12
/
open-src
/
app
/
xdm
/
Makefile
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
Makefile revision 851
306
N/A
###############################################################################
306
N/A
#
935
N/A
# xdm Makefile
306
N/A
#
306
N/A
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
919
N/A
# Use is subject to license terms.
919
N/A
#
919
N/A
# Permission is hereby granted, free of charge, to any person obtaining a
919
N/A
# copy of this software and associated documentation files (the
919
N/A
# "Software"), to deal in the Software without restriction, including
919
N/A
# without limitation the rights to use, copy, modify, merge, publish,
919
N/A
# distribute,
and
/
or
sell copies of the Software, and to permit persons
919
N/A
# to whom the Software is furnished to do so, provided that the above
919
N/A
# copyright notice(s) and this permission notice appear in all copies of
919
N/A
# the Software and that both the above copyright notice(s) and this
919
N/A
# permission notice appear in supporting documentation.
919
N/A
#
919
N/A
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
919
N/A
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
919
N/A
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
919
N/A
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
919
N/A
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
306
N/A
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
306
N/A
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
493
N/A
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
493
N/A
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
970
N/A
#
970
N/A
# Except as contained in this notice, the name of a copyright holder
970
N/A
# shall not be used in advertising or otherwise to promote the sale, use
970
N/A
# or other dealings in this Software without prior written authorization
306
N/A
# of the copyright holder.
493
N/A
#
306
N/A
#
493
N/A
493
N/A
# Package name used in tarballs
935
N/A
MODULE_NAME
=
xdm
935
N/A
935
N/A
# Version number (used in path names)
810
N/A
MODULE_VERSION
=
1.1
.
9
810
N/A
810
N/A
# Patches to apply to source after unpacking, in order
493
N/A
SOURCE_PATCHES
= \
493
N/A
mkdir.patch
,-
p1
\
493
N/A
bindir.patch
\
837
N/A
terminateServer.patch
\
493
N/A
Xsession.patch
306
N/A
963
N/A
# Man pages to apply Sun footer to & attributes to list
963
N/A
SUNTOUCHED_MANPAGES
=
xdm.man.cpp
963
N/A
SUN_PACKAGE
=
SUNWxdm
970
N/A
MODULE_STABILITY
=
Committed
970
N/A
MODULE_SUNTOUCH_MAN_FLAGS
= -p
$(
MODULE_PREFIX
)
/
sbin
/
970
N/A
970
N/A
# Where to install xdm files
970
N/A
MODULE_PREFIX
=/
usr
970
N/A
MODULE_PREFIX_SET
=
yes
970
N/A
306
N/A
# Additional configure script options
493
N/A
# Only build shared greeter module, not static
306
N/A
# Set various paths to better match Solaris
306
N/A
MODULE_CONFIG_OPTS
= \
561
N/A
--
enable
-
shared
=
yes
--
enable
-
static
=
no
\
306
N/A
--
with
-
xdmconfigdir
=/
etc
/
X11
/
xdm
\
963
N/A
--
with
-
piddir
=/
var
/
run
/
xdm
\
963
N/A
--
with
-
authdir
=/
var
/
run
/
xdm
\
963
N/A
--
bindir
=/
usr
/
sbin
\
837
N/A
DEF_USER_PATH
=/
usr
/
bin
:/
usr
/
X11
/
bin
:/
usr
/
sbin
:/
sbin
\
837
N/A
DEF_SYSTEM_PATH
=/
usr
/
bin
:/
usr
/
X11
/
bin
:/
usr
/
sbin
:/
sbin
837
N/A
837
N/A
837
N/A
# Special handling while xdm is moved to /usr but other apps are still in
837
N/A
# /
usr
/
X11
963
N/A
MODULE_CONFIG_OPTS
+= \
837
N/A
--
with
-
xrdb
=
'$(X11_BIN_DIR)/xrdb'
\
306
N/A
--
with
-
default
-
session
=
command
=
'$(X11_BIN_DIR)/xterm -ls'
\
837
N/A
837
N/A
# Additional build & install targets
963
N/A
MODULE_ADD_BUILD_TARGETS
=
build_xdm_configs
837
N/A
MODULE_ADD_INSTALL_TARGETS
=
install_xdmshell
install_xdm_configs
837
N/A
837
N/A
include
../
Makefile.inc
837
N/A
837
N/A
# Move xdmshell from default location to the place we put in our packages
837
N/A
install_xdmshell
:
default_install
970
N/A
-
rm
-f
$(
PROTODIR
)
/
usr
/
lib
/
X11
/
xdm
/
xdmshell
851
N/A
mv
$(
PROTODIR
)
/
usr
/
sbin
/
xdmshell
$(
PROTODIR
)
/
usr
/
lib
/
X11
/
xdm
/
xdmshell
851
N/A
970
N/A
# Copy xdm config files from /etc to /usr for use as prototypes
970
N/A
XDM_CONFIG_FILES
=
Xaccess
Xresources
Xservers
xdm
-
config
970
N/A
XDM_ETC_CONFIGDIR
=/
etc
/
X11
/
xdm
970
N/A
XDM_USR_CONFIGDIR
=/
usr
/
lib
/
X11
/
xdm
970
N/A
XCF_USR_FILES
=
$(
XDM_CONFIG_FILES
:%=
$(
PROTODIR
)
/
$(
XDM_USR_CONFIGDIR
)
/%)
970
N/A
XCF_ETC_SRCDIR
=
$(
SOURCE_DIR
)
/
config
970
N/A
XCF_ETC_SRCFILES
=
$(
XDM_CONFIG_FILES
:%=
$(
XCF_ETC_SRCDIR
)
/%)
970
N/A
XCF_USR_SRCDIR
=
$(
SOURCE_DIR
)
/
config
/
annotated
970
N/A
XCF_USR_SRCFILES
=
$(
XDM_CONFIG_FILES
:%=
$(
XCF_USR_SRCDIR
)
/%)
970
N/A
970
N/A
build_xdm_configs
:
$(
XCF_USR_SRCFILES
)
970
N/A
install_xdm_configs
:
$(
XCF_USR_FILES
)
$(
PROTODIR
)
/
$(
XDM_USR_CONFIGDIR
)
/
README
$(
XCF_ETC_SRCFILES
)
:
default_build
XCF_HEADER
= %
1
$$s----------------------------------------------------------------------------
XCF_HEADER
+= \n%
1
$$s
NOTE
:
The
file
provided
in
$(
XDM_USR_CONFIGDIR
)
is
a
sample
%
2
$$s
XCF_HEADER
+= \n%
1
$$s
configuration
file
provided
for
your
reference
.
XCF_HEADER
+= \n%
1
$$s
XCF_HEADER
+= \n%
1
$$s
xdm
reads
the
actual
configuration
from
the
copies
located
in
$(
XDM_ETC_CONFIGDIR
)
XCF_HEADER
+= \n%
1
$$s
(
unless
configured
otherwise
by
$(
XDM_ETC_CONFIGDIR
)
/
xdm
-
config
or
XCF_HEADER
+= \n%
1
$$s a
file
specified
via
the
-
config
command
line
option
)
.
XCF_HEADER
+= \n%
1
$$s----------------------------------------------------------------------------\n
$(
PROTODIR
)
/
$(
XDM_USR_CONFIGDIR
)
$(
XCF_USR_SRCDIR
)
:
mkdir
-p $@
$(
XCF_USR_FILES
)
:
$(
PROTODIR
)
/
$(
XDM_USR_CONFIGDIR
)
$(
XCF_USR_SRCFILES
)
-
rm
-f $@
mkdir
-p
$(
PROTODIR
)
/
$(
XDM_USR_CONFIGDIR
)
@
$(
START_CMD_ECHO
)
;
cp
-p
$(
XCF_USR_SRCDIR
)
/$
$(
basename
$@)
$@
$(
XCF_USR_SRCFILES
)
:
$(
XCF_USR_SRCDIR
)
$(
XCF_ETC_SRCFILES
)
-
rm
-f $@
FILENAME
=$
$(
basename
$@)
; \
COMMENT_CHAR
=$
$(
head
-n
1
$(
XCF_ETC_SRCDIR
)
/$${
FILENAME
})
; \
printf
'$(XCF_HEADER)'
$${
COMMENT_CHAR
} $${
FILENAME
} > $@ ; \
cat
$(
XCF_ETC_SRCDIR
)
/$${
FILENAME
} >> $@
$(
PROTODIR
)
/
$(
XDM_USR_CONFIGDIR
)
/
README
:
$(
PROTODIR
)
/
$(
XDM_USR_CONFIGDIR
)
config-README.txt
cp
-p
config-README.txt
$@