1999-01-17 23:16:20 +00:00
|
|
|
#
|
2003-03-15 20:31:02 +00:00
|
|
|
# Copyright (c) 1996, 1998-2003 Todd C. Miller <Todd.Miller@courtesan.com>
|
1999-07-22 12:33:26 +00:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
1999-07-31 16:19:45 +00:00
|
|
|
#
|
1999-07-22 12:33:26 +00:00
|
|
|
# 1. Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
1999-07-31 16:19:45 +00:00
|
|
|
#
|
1999-07-22 12:33:26 +00:00
|
|
|
# 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in the
|
|
|
|
# documentation and/or other materials provided with the distribution.
|
1999-07-31 16:19:45 +00:00
|
|
|
#
|
1999-07-22 12:33:26 +00:00
|
|
|
# 3. The name of the author may not be used to endorse or promote products
|
1999-07-31 16:19:45 +00:00
|
|
|
# derived from this software without specific prior written permission
|
|
|
|
# from the author.
|
|
|
|
#
|
|
|
|
# 4. Products derived from this software may not be called "Sudo" nor
|
|
|
|
# may "Sudo" appear in their names without specific prior written
|
|
|
|
# permission from the author.
|
1999-07-22 12:33:26 +00:00
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
|
|
|
# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
|
# AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
|
|
|
# THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
|
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
|
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
|
|
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
2003-04-16 00:42:09 +00:00
|
|
|
# Sponsored in part by the Defense Advanced Research Projects
|
|
|
|
# Agency (DARPA) and Air Force Research Laboratory, Air Force
|
|
|
|
# Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
|
|
|
#
|
1999-07-22 12:33:26 +00:00
|
|
|
# @configure_input@
|
|
|
|
#
|
|
|
|
# $Sudo$
|
1999-01-17 23:16:20 +00:00
|
|
|
#
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
1999-08-14 15:34:55 +00:00
|
|
|
authdir = $(srcdir)/auth
|
2004-01-05 20:03:09 +00:00
|
|
|
top_builddir = .
|
1994-03-09 23:51:22 +00:00
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
# Compiler & tools to use
|
|
|
|
CC = @CC@
|
1996-02-04 21:11:54 +00:00
|
|
|
LEX = flex
|
1994-03-09 23:51:22 +00:00
|
|
|
YACC = @YACC@
|
1994-08-05 21:49:33 +00:00
|
|
|
NROFF = nroff
|
2004-01-05 20:03:09 +00:00
|
|
|
LIBTOOL = @LIBTOOL@
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2002-01-01 21:53:12 +00:00
|
|
|
# Our install program supports extra flags...
|
1999-11-25 00:43:44 +00:00
|
|
|
INSTALL = $(SHELL) $(srcdir)/install-sh -c
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1994-03-12 15:40:20 +00:00
|
|
|
# Libraries
|
1999-08-26 13:16:06 +00:00
|
|
|
LIBS = @LIBS@
|
|
|
|
NET_LIBS = @NET_LIBS@
|
|
|
|
SUDO_LIBS = @SUDO_LIBS@ @AFS_LIBS@ $(LIBS) $(NET_LIBS)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1995-06-18 18:48:10 +00:00
|
|
|
# C preprocessor flags
|
1995-11-19 23:24:09 +00:00
|
|
|
CPPFLAGS = -I. -I$(srcdir) @CPPFLAGS@
|
1995-06-18 18:48:10 +00:00
|
|
|
|
1999-08-14 15:34:55 +00:00
|
|
|
# Usually -O and/or -g
|
1995-11-19 23:24:09 +00:00
|
|
|
CFLAGS = @CFLAGS@
|
1994-07-07 00:51:57 +00:00
|
|
|
|
1995-11-19 23:24:09 +00:00
|
|
|
# Flags to pass to the link stage
|
1999-08-26 13:16:06 +00:00
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
SUDO_LDFLAGS = @SUDO_LDFLAGS@ $(LDFLAGS)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1994-07-07 00:51:57 +00:00
|
|
|
# Where to install things...
|
1995-11-13 05:52:08 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
1995-11-19 02:28:04 +00:00
|
|
|
bindir = @bindir@
|
|
|
|
sbindir = @sbindir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
mandir = @mandir@
|
2004-01-05 20:03:09 +00:00
|
|
|
noexecdir = @NOEXECDIR@
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
# Directory in which to install sudo.
|
1995-11-19 02:28:04 +00:00
|
|
|
sudodir = $(bindir)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
# Directory in which to install visudo
|
1995-11-19 02:28:04 +00:00
|
|
|
visudodir = $(sbindir)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1994-03-12 15:40:20 +00:00
|
|
|
# Directory in which to install the sudoers file
|
1995-11-19 02:28:04 +00:00
|
|
|
sudoersdir = $(sysconfdir)
|
1994-03-12 15:40:20 +00:00
|
|
|
|
1994-03-09 23:51:22 +00:00
|
|
|
# Directory in which to install the man page
|
1994-08-05 21:49:33 +00:00
|
|
|
mantype = @MANTYPE@
|
2000-03-23 00:35:59 +00:00
|
|
|
mansectsu = @mansectsu@
|
|
|
|
mansectform = @mansectform@
|
|
|
|
mandirsu = $(mandir)/$(mantype)$(mansectsu)
|
|
|
|
mandirform = $(mandir)/$(mantype)$(mansectform)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1996-04-28 00:26:05 +00:00
|
|
|
# User and group ids the installed files should be "owned" by
|
|
|
|
install_uid = 0
|
|
|
|
install_gid = 0
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1998-10-17 04:31:14 +00:00
|
|
|
# User, group, and mode the sudoers file should be "owned" by (configure)
|
|
|
|
sudoers_uid = @SUDOERS_UID@
|
|
|
|
sudoers_gid = @SUDOERS_GID@
|
|
|
|
sudoers_mode = @SUDOERS_MODE@
|
|
|
|
|
|
|
|
# Pass in paths and uid/gid + OS dependent defined
|
1999-08-06 09:37:03 +00:00
|
|
|
DEFS = @OSDEFS@ -D_PATH_SUDOERS=\"$(sudoersdir)/sudoers\" -D_PATH_SUDOERS_TMP=\"$(sudoersdir)/sudoers.tmp\" -DSUDOERS_UID=$(sudoers_uid) -DSUDOERS_GID=$(sudoers_gid) -DSUDOERS_MODE=$(sudoers_mode)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
1994-03-12 15:40:20 +00:00
|
|
|
PROGS = @PROGS@
|
|
|
|
|
2004-01-12 19:03:54 +00:00
|
|
|
SRCS = alloc.c alloca.c check.c closefrom.c def_data.c defaults.c env.c err.c \
|
|
|
|
fileops.c find_path.c fnmatch.c getcwd.c getprogname.c getspwuid.c \
|
2004-02-13 02:08:27 +00:00
|
|
|
goodpath.c interfaces.c ldap.c lex.yy.c lsearch.c logging.c parse.c parse.lex \
|
2001-12-19 15:04:46 +00:00
|
|
|
parse.yacc set_perms.c sigaction.c snprintf.c strcasecmp.c strerror.c \
|
2004-01-21 22:25:10 +00:00
|
|
|
strlcat.c strlcpy.c sudo.c sudo.tab.c sudo_edit.c testsudoers.c \
|
|
|
|
tgetpass.c utime.c visudo.c zero_bytes.c $(AUTH_SRCS)
|
1999-07-22 12:33:26 +00:00
|
|
|
|
2000-10-26 16:42:40 +00:00
|
|
|
AUTH_SRCS = auth/afs.c auth/aix_auth.c auth/bsdauth.c auth/dce.c auth/fwtk.c \
|
|
|
|
auth/kerb4.c auth/kerb5.c auth/pam.c auth/passwd.c auth/rfc1938.c \
|
2002-05-17 17:04:10 +00:00
|
|
|
auth/secureware.c auth/securid.c auth/securid5.c auth/sia.c \
|
|
|
|
auth/sudo_auth.c
|
1999-07-22 12:33:26 +00:00
|
|
|
|
2000-12-31 01:38:37 +00:00
|
|
|
HDRS = compat.h def_data.h defaults.h ins_2001.h ins_classic.h ins_csops.h \
|
|
|
|
ins_goons.h insults.h interfaces.h logging.h parse.h sudo.h sudo.tab.h \
|
2003-04-02 18:16:00 +00:00
|
|
|
version.h auth/sudo_auth.h emul/err.h emul/fnmatch.h emul/search.h \
|
|
|
|
emul/utime.h
|
1999-08-14 15:34:55 +00:00
|
|
|
|
1999-07-22 12:33:26 +00:00
|
|
|
AUTH_OBJS = sudo_auth.o @AUTH_OBJS@
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1999-09-08 08:06:28 +00:00
|
|
|
PARSEOBJS = sudo.tab.o lex.yy.o alloc.o defaults.o
|
1995-03-24 19:16:32 +00:00
|
|
|
|
2000-12-30 03:29:47 +00:00
|
|
|
SUDOBJS = check.o env.o getspwuid.o goodpath.o fileops.o find_path.o \
|
2004-01-21 22:25:10 +00:00
|
|
|
interfaces.o logging.o parse.o set_perms.o sudo.o sudo_edit.o \
|
2004-02-13 02:08:27 +00:00
|
|
|
tgetpass.o zero_bytes.o @SUDO_OBJS@ $(AUTH_OBJS) $(PARSEOBJS)
|
1995-03-24 19:16:32 +00:00
|
|
|
|
2000-04-01 21:23:28 +00:00
|
|
|
VISUDOBJS = visudo.o fileops.o goodpath.o find_path.o $(PARSEOBJS)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1999-07-22 12:33:26 +00:00
|
|
|
TESTOBJS = interfaces.o testsudoers.o $(PARSEOBJS)
|
1995-04-13 17:18:28 +00:00
|
|
|
|
1996-06-26 02:28:25 +00:00
|
|
|
LIBOBJS = @LIBOBJS@ @ALLOCA@
|
1994-06-06 00:02:02 +00:00
|
|
|
|
2003-04-02 18:45:35 +00:00
|
|
|
VERSION = 1.6.8
|
1994-08-31 23:33:40 +00:00
|
|
|
|
2001-04-13 01:41:04 +00:00
|
|
|
DISTFILES = $(SRCS) $(HDRS) BUGS CHANGES HISTORY INSTALL INSTALL.configure \
|
1999-07-22 12:33:26 +00:00
|
|
|
LICENSE Makefile.in PORTING README RUNSON TODO TROUBLESHOOTING \
|
2001-11-02 22:18:04 +00:00
|
|
|
UPGRADE aclocal.m4 aixcrypt.exp config.guess config.h.in \
|
2001-12-19 15:04:46 +00:00
|
|
|
config.sub configure configure.in def_data.in fnmatch.3 indent.pro \
|
|
|
|
install-sh mkdefaults mkinstalldirs pathnames.h.in sample.pam \
|
|
|
|
sample.syslog.conf sample.sudoers sudo.cat sudo.man.in sudo.pod \
|
|
|
|
sudoers sudoers.cat sudoers.man.in sudoers.pod visudo.cat \
|
|
|
|
visudo.man.in visudo.pod auth/API
|
1999-08-14 15:34:55 +00:00
|
|
|
|
2000-01-24 15:48:46 +00:00
|
|
|
BINFILES= BUGS CHANGES HISTORY LICENSE README TODO TROUBLESHOOTING \
|
1999-11-20 02:04:12 +00:00
|
|
|
UPGRADE install-sh mkinstalldirs sample.syslog.conf sample.sudoers \
|
|
|
|
sudo sudo.cat sudo.man sudo.pod sudoers sudoers.cat sudoers.man \
|
|
|
|
sudoers.pod visudo visudo.cat visudo.man visudo.pod
|
1999-11-18 02:38:58 +00:00
|
|
|
|
|
|
|
BINSPECIAL= INSTALL.binary Makefile.binary
|
|
|
|
|
1999-09-08 08:06:28 +00:00
|
|
|
SUDODEP = $(srcdir)/sudo.h $(srcdir)/compat.h $(srcdir)/defaults.h \
|
2000-12-31 01:38:37 +00:00
|
|
|
$(srcdir)/logging.h config.h def_data.h pathnames.h
|
1999-08-14 15:34:55 +00:00
|
|
|
|
|
|
|
AUTHDEP = $(SUDODEP) $(authdir)/sudo_auth.h
|
|
|
|
|
|
|
|
INSDEP = $(srcdir)/ins_2001.h $(srcdir)/ins_classic.h $(srcdir)/ins_csops.h \
|
|
|
|
$(srcdir)/ins_goons.h $(srcdir)/insults.h
|
1998-05-19 04:10:51 +00:00
|
|
|
|
1994-03-12 15:40:20 +00:00
|
|
|
all: $(PROGS)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2004-01-05 20:03:09 +00:00
|
|
|
.SUFFIXES: .o .c .h .lex .yacc .man .cat .lo
|
1994-08-05 21:49:33 +00:00
|
|
|
|
1994-03-09 23:51:22 +00:00
|
|
|
.c.o:
|
1998-10-17 04:31:14 +00:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $<
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2004-01-05 20:03:09 +00:00
|
|
|
.c.lo:
|
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $<
|
|
|
|
|
1994-08-05 21:49:33 +00:00
|
|
|
.man.cat:
|
1996-02-05 22:03:45 +00:00
|
|
|
@rm -f $(srcdir)/$@
|
|
|
|
$(NROFF) -man $< > $(srcdir)/$@
|
1994-08-05 21:49:33 +00:00
|
|
|
|
1999-07-22 12:33:26 +00:00
|
|
|
sudo: $(SUDOBJS) $(LIBOBJS)
|
|
|
|
$(CC) -o $@ $(SUDOBJS) $(LIBOBJS) $(SUDO_LDFLAGS) $(SUDO_LIBS)
|
1995-03-24 19:16:32 +00:00
|
|
|
|
1999-07-22 12:33:26 +00:00
|
|
|
visudo: $(VISUDOBJS) $(LIBOBJS)
|
2000-02-29 22:46:32 +00:00
|
|
|
$(CC) -o $@ $(VISUDOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS) $(NET_LIBS)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1999-07-22 12:33:26 +00:00
|
|
|
testsudoers: $(TESTOBJS) $(LIBOBJS)
|
1999-08-26 13:16:06 +00:00
|
|
|
$(CC) -o $@ $(TESTOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS) $(NET_LIBS)
|
1995-12-05 23:57:47 +00:00
|
|
|
|
2004-01-05 20:03:09 +00:00
|
|
|
sudo_noexec.la: sudo_noexec.lo
|
2004-01-09 07:50:12 +00:00
|
|
|
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir)
|
2004-01-05 20:03:09 +00:00
|
|
|
|
1999-08-14 15:34:55 +00:00
|
|
|
# Uncomment the following if you want "make clean" to clean the parser
|
|
|
|
@DEV@PARSESRCS = sudo.tab.h sudo.tab.c lex.yy.c
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1999-08-14 15:34:55 +00:00
|
|
|
# Uncomment the following if you intend to modify parse.yacc
|
|
|
|
@DEV@sudo.tab.c sudo.tab.h: parse.yacc
|
|
|
|
@DEV@ rm -f sudo.tab.h sudo.tab.c
|
|
|
|
@DEV@ $(YACC) -d -b sudo $(srcdir)/parse.yacc
|
1995-03-24 19:16:32 +00:00
|
|
|
|
1996-02-04 21:11:54 +00:00
|
|
|
# Uncomment the following if you intend to modify parse.lex
|
1999-08-14 15:34:55 +00:00
|
|
|
@DEV@lex.yy.c: parse.lex
|
|
|
|
@DEV@ rm -f lex.yy.c
|
|
|
|
@DEV@ $(LEX) $(srcdir)/parse.lex
|
|
|
|
|
2000-12-31 01:38:37 +00:00
|
|
|
# Uncomment the following if you intend to modify def_data.in
|
|
|
|
@DEV@def_data.h def_data.c: def_data.in
|
2001-12-30 18:58:34 +00:00
|
|
|
@DEV@ perl $(srcdir)/mkdefaults -o def_data $(srcdir)/def_data.in
|
2000-12-31 01:38:37 +00:00
|
|
|
|
1999-08-14 15:34:55 +00:00
|
|
|
# Dependencies (not counting auth functions)
|
|
|
|
alloc.o: alloc.c $(SUDODEP)
|
|
|
|
check.o: check.c $(SUDODEP)
|
2004-01-12 19:03:54 +00:00
|
|
|
closefrom.o: closefrom.c config.h
|
2000-12-30 03:29:47 +00:00
|
|
|
env.o: env.c $(SUDODEP)
|
2003-04-02 18:16:00 +00:00
|
|
|
err.o: err.c config.h compat.h emul/err.h
|
1999-08-14 15:34:55 +00:00
|
|
|
fileops.o: fileops.c $(SUDODEP)
|
|
|
|
find_path.o: find_path.c $(SUDODEP)
|
2003-04-02 18:16:00 +00:00
|
|
|
getprogname.o: getprogname.c config.h
|
1999-08-14 15:34:55 +00:00
|
|
|
getspwuid.o: getspwuid.c $(SUDODEP)
|
|
|
|
goodpath.o: goodpath.c $(SUDODEP)
|
|
|
|
logging.o: logging.c $(SUDODEP)
|
2000-11-03 05:37:44 +00:00
|
|
|
set_perms.o: set_perms.c $(SUDODEP)
|
1999-08-14 15:34:55 +00:00
|
|
|
tgetpass.o: tgetpass.c $(SUDODEP)
|
|
|
|
visudo.o: visudo.c $(SUDODEP) version.h
|
1999-09-08 08:06:28 +00:00
|
|
|
sudo.o: sudo.c $(SUDODEP) interfaces.h version.h
|
1999-08-14 15:34:55 +00:00
|
|
|
interfaces.o: interfaces.c $(SUDODEP) interfaces.h
|
|
|
|
testsudoers.o: testsudoers.c $(SUDODEP) parse.h interfaces.h
|
|
|
|
parse.o: parse.c $(SUDODEP) parse.h interfaces.h
|
|
|
|
lex.yy.o: lex.yy.c $(SUDODEP) parse.h sudo.tab.h
|
2001-11-02 23:09:35 +00:00
|
|
|
sudo.tab.o: sudo.tab.c $(SUDODEP) parse.h sudo.tab.c sudo.tab.h
|
2000-12-31 01:38:37 +00:00
|
|
|
defaults.o: defaults.c $(SUDODEP) def_data.c auth/sudo_auth.h
|
1999-08-14 15:34:55 +00:00
|
|
|
fnmatch.o: fnmatch.c config.h compat.h emul/fnmatch.h
|
|
|
|
getcwd.o: getcwd.c config.h compat.h
|
|
|
|
lsearch.o: lsearch.c config.h compat.h emul/search.h
|
|
|
|
snprintf.o: snprintf.c config.h compat.h
|
1999-08-24 17:37:38 +00:00
|
|
|
strcasecmp.o: strcasecmp.c config.h
|
2003-03-12 22:08:29 +00:00
|
|
|
strlcat.o: strlcat.c config.h
|
|
|
|
strlcpy.o: strlcpy.c config.h
|
1999-08-14 15:34:55 +00:00
|
|
|
strerror.o: strerror.c config.h
|
|
|
|
utime.o: utime.c config.h pathnames.h compat.h emul/utime.h
|
2004-02-13 02:08:27 +00:00
|
|
|
ldap.o: ldap.c $(SUDODEP) parse.h
|
1999-07-22 12:33:26 +00:00
|
|
|
|
|
|
|
# Authentication functions live in "auth" dir and so need extra care
|
1999-08-14 15:34:55 +00:00
|
|
|
sudo_auth.o: $(authdir)/sudo_auth.c $(AUTHDEP) $(INSDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/sudo_auth.c
|
|
|
|
afs.o: $(authdir)/afs.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/afs.c
|
|
|
|
aix_auth.o: $(authdir)/aix_auth.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/aix_auth.c
|
2000-10-26 16:42:40 +00:00
|
|
|
bsdauth.o: $(authdir)/bsdauth.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/bsdauth.c
|
1999-08-14 15:34:55 +00:00
|
|
|
dce.o: $(authdir)/dce.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/dce.c
|
|
|
|
fwtk.o: $(authdir)/fwtk.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/fwtk.c
|
|
|
|
kerb4.o: $(authdir)/kerb4.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/kerb4.c
|
|
|
|
kerb5.o: $(authdir)/kerb5.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/kerb5.c
|
|
|
|
pam.o: $(authdir)/pam.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/pam.c
|
|
|
|
passwd.o: $(authdir)/passwd.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/passwd.c
|
|
|
|
rfc1938.o: $(authdir)/rfc1938.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/rfc1938.c
|
|
|
|
secureware.o: $(authdir)/secureware.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/secureware.c
|
|
|
|
securid.o: $(authdir)/securid.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/securid.c
|
2002-05-17 17:04:10 +00:00
|
|
|
securid5.o: $(authdir)/securid5.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/securid5.c
|
1999-08-14 15:34:55 +00:00
|
|
|
sia.o: $(authdir)/sia.c $(AUTHDEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(authdir)/sia.c
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2000-03-23 00:35:59 +00:00
|
|
|
sudo.man.in: $(srcdir)/sudo.pod
|
1996-02-05 22:03:45 +00:00
|
|
|
@rm -f $(srcdir)/$@
|
2003-03-14 01:23:19 +00:00
|
|
|
( cd $(srcdir); mansectsu=`echo @MANSECTSU@|tr A-Z a-z`; mansectform=`echo @MANSECTFORM@|tr A-Z a-z`; sed -n -e 1d -e '/^=pod/q' -e 's/^/.\\" /p' sudo.pod > $@; pod2man --quotes=none --date="`date '+%B %e, %Y'`" --section=$$mansectsu --release=$(VERSION) --center="MAINTENANCE COMMANDS" sudo.pod | sed -e "s/(5)/($$mansectform)/" -e "s/(8)/($$mansectsu)/" >> $@ )
|
1996-02-05 22:03:45 +00:00
|
|
|
|
2000-03-23 03:50:54 +00:00
|
|
|
sudo.man: sudo.man.in
|
|
|
|
CONFIG_FILES=$@ CONFIG_HEADERS= sh ./config.status
|
|
|
|
|
1999-08-01 16:35:06 +00:00
|
|
|
sudo.cat: sudo.man
|
1994-08-05 21:49:33 +00:00
|
|
|
|
2000-03-23 00:35:59 +00:00
|
|
|
visudo.man.in: $(srcdir)/visudo.pod
|
1996-02-05 22:03:45 +00:00
|
|
|
@rm -f $(srcdir)/$@
|
2003-03-14 01:23:19 +00:00
|
|
|
( cd $(srcdir); mansectsu=`echo @MANSECTSU@|tr A-Z a-z`; mansectform=`echo @MANSECTFORM@|tr A-Z a-z`; sed -n -e 1d -e '/^=pod/q' -e 's/^/.\\" /p' visudo.pod > $@; pod2man --quotes=none --date="`date '+%B %e, %Y'`" --section=$$mansectsu --release=$(VERSION) --center="MAINTENANCE COMMANDS" visudo.pod | sed -e "s/(5)/($$mansectform)/" -e "s/(8)/($$mansectsu)/" >> $@ )
|
1996-02-05 22:03:45 +00:00
|
|
|
|
2000-03-23 03:50:54 +00:00
|
|
|
visudo.man: visudo.man.in
|
|
|
|
CONFIG_FILES=$@ CONFIG_HEADERS= sh ./config.status
|
|
|
|
|
1999-08-01 16:35:06 +00:00
|
|
|
visudo.cat: visudo.man
|
1995-03-29 13:17:14 +00:00
|
|
|
|
2000-03-23 00:35:59 +00:00
|
|
|
sudoers.man.in: $(srcdir)/sudoers.pod
|
1996-02-05 22:03:45 +00:00
|
|
|
@rm -f $(srcdir)/$@
|
2003-03-14 01:23:19 +00:00
|
|
|
( cd $(srcdir); mansectsu=`echo @MANSECTSU@|tr A-Z a-z`; mansectform=`echo @MANSECTFORM@|tr A-Z a-z`; sed -n -e 1d -e '/^=pod/q' -e 's/^/.\\" /p' sudoers.pod > $@; pod2man --quotes=none --date="`date '+%B %e, %Y'`" --section=$$mansectform --release=$(VERSION) --center="MAINTENANCE COMMANDS" sudoers.pod | sed -e "s/(5)/($$mansectform)/" -e "s/(8)/($$mansectsu)/" >> $@ )
|
1996-02-05 22:03:45 +00:00
|
|
|
|
2000-03-23 03:50:54 +00:00
|
|
|
sudoers.man:: sudoers.man.in
|
|
|
|
CONFIG_FILES=$@ CONFIG_HEADERS= sh ./config.status
|
|
|
|
|
1999-08-01 16:35:06 +00:00
|
|
|
sudoers.cat: sudoers.man
|
1996-02-05 22:03:45 +00:00
|
|
|
|
2004-01-05 20:03:09 +00:00
|
|
|
install: install-dirs install-binaries @INSTALL_NOEXEC@ install-sudoers install-man
|
1996-04-05 00:39:26 +00:00
|
|
|
|
|
|
|
install-dirs:
|
2002-01-20 00:43:16 +00:00
|
|
|
$(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(sudodir) \
|
|
|
|
$(DESTDIR)$(visudodir) $(DESTDIR)$(sudoersdir) \
|
|
|
|
$(DESTDIR)$(mandirsu) $(DESTDIR)$(mandirform)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
install-binaries: $(PROGS)
|
2002-01-20 00:43:16 +00:00
|
|
|
$(INSTALL) -O $(install_uid) -G $(install_gid) -M 4111 -s sudo $(DESTDIR)$(sudodir)/sudo
|
2004-01-21 23:01:35 +00:00
|
|
|
ln -f $(DESTDIR)$(sudodir)/sudo $(DESTDIR)$(sudodir)/sudoedit
|
|
|
|
|
2002-01-20 00:43:16 +00:00
|
|
|
$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0111 -s visudo $(DESTDIR)$(visudodir)/visudo
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2004-01-05 20:03:09 +00:00
|
|
|
install-noexec: sudo_noexec.la
|
|
|
|
$(LIBTOOL) --mode=install $(INSTALL) sudo_noexec.la $(noexecdir)
|
|
|
|
|
1994-03-09 23:51:22 +00:00
|
|
|
install-sudoers:
|
2002-01-20 00:43:16 +00:00
|
|
|
test -f $(DESTDIR)$(sudoersdir)/sudoers || \
|
2002-01-01 21:53:12 +00:00
|
|
|
$(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -M $(sudoers_mode) \
|
2002-01-20 00:43:16 +00:00
|
|
|
$(srcdir)/sudoers $(DESTDIR)$(sudoersdir)/sudoers
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
install-man:
|
2002-01-20 00:43:16 +00:00
|
|
|
$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/sudo.$(mantype) $(DESTDIR)$(mandirsu)/sudo.$(mansectsu)
|
|
|
|
$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/visudo.$(mantype) $(DESTDIR)$(mandirsu)/visudo.$(mansectsu)
|
|
|
|
$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0444 @mansrcdir@/sudoers.$(mantype) $(DESTDIR)$(mandirform)/sudoers.$(mansectform)
|
1995-11-13 03:25:07 +00:00
|
|
|
@MAN_POSTINSTALL@
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2000-01-03 04:26:17 +00:00
|
|
|
check:
|
|
|
|
@echo nothing to check
|
|
|
|
|
1994-03-12 21:15:19 +00:00
|
|
|
tags: $(SRCS)
|
|
|
|
ctags $(SRCS)
|
|
|
|
|
|
|
|
TAGS: $(SRCS)
|
|
|
|
etags $(SRCS)
|
|
|
|
|
1994-03-09 23:51:22 +00:00
|
|
|
clean:
|
2000-03-24 00:40:55 +00:00
|
|
|
-rm -f *.o $(PROGS) testsudoers core sudo.core visudo.core \
|
1999-08-17 14:29:28 +00:00
|
|
|
testsudoers.core
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
2000-03-24 00:40:55 +00:00
|
|
|
-rm -f Makefile *.man pathnames.h config.h config.status config.cache \
|
1999-11-28 23:51:54 +00:00
|
|
|
config.log $(PARSESRCS)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1995-09-01 02:52:22 +00:00
|
|
|
clobber: distclean
|
|
|
|
|
1994-03-09 23:51:22 +00:00
|
|
|
realclean: distclean
|
1994-03-12 21:15:19 +00:00
|
|
|
rm -f TAGS tags
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1998-01-21 06:19:22 +00:00
|
|
|
cleandir: realclean
|
|
|
|
|
2000-03-27 02:57:52 +00:00
|
|
|
dist:
|
1999-07-31 16:31:27 +00:00
|
|
|
rm -f ../sudo-$(VERSION).tar.gz
|
1995-11-25 04:55:36 +00:00
|
|
|
( cd .. ; TF="/tmp/sudo.dist$$$$" ; rm -f $$TF ; for i in $(DISTFILES) ; \
|
1999-07-31 16:31:27 +00:00
|
|
|
do echo sudo-$(VERSION)/$$i >> $$TF ; done ; \
|
|
|
|
tar Ocf sudo-$(VERSION).tar \
|
|
|
|
`cat $$TF` && gzip --best sudo-$(VERSION).tar && rm -f $$TF)
|
|
|
|
ls -l ../sudo-$(VERSION).tar.gz
|
1999-11-18 02:38:58 +00:00
|
|
|
|
|
|
|
bindist:
|
|
|
|
@mkdir tmp.`arch -l`
|
|
|
|
@mkdir tmp.`arch -l`/sudo-$(VERSION)
|
2002-01-12 17:59:01 +00:00
|
|
|
( \
|
|
|
|
tdir=tmp.`arch -l`/sudo-$(VERSION) ; \
|
1999-11-18 02:38:58 +00:00
|
|
|
for i in $(BINFILES) ; do \
|
2002-01-12 17:59:01 +00:00
|
|
|
if [ -f $$i ]; then \
|
|
|
|
cp $$i $$tdir ; \
|
1999-11-18 02:38:58 +00:00
|
|
|
elif [ -f $(srcdir)/$$i ]; then \
|
2002-01-12 17:59:01 +00:00
|
|
|
cp $(srcdir)/$$i $$tdir ; \
|
1999-11-18 02:38:58 +00:00
|
|
|
else \
|
2002-01-12 17:59:01 +00:00
|
|
|
echo cannot find $$i ; \
|
|
|
|
exit 1 ; \
|
1999-11-18 02:38:58 +00:00
|
|
|
fi ; \
|
|
|
|
done ; \
|
2002-01-12 18:15:53 +00:00
|
|
|
cp $(srcdir)/INSTALL.binary $$tdir/INSTALL ; \
|
2002-01-12 19:00:15 +00:00
|
|
|
sed -e 's/@_MANTYPE@/$(mantype)/g' -e 's/@_mansectsu@/$(mansectsu)/g' \
|
|
|
|
-e 's/@_mansectform@/$(mansectform)/g' $(srcdir)/Makefile.binary \
|
2002-01-12 18:15:53 +00:00
|
|
|
> $$tdir/Makefile ; \
|
1999-11-18 02:38:58 +00:00
|
|
|
)
|
2002-01-12 17:59:01 +00:00
|
|
|
strip sudo
|
|
|
|
strip visudo
|
|
|
|
( cd tmp.`arch -l` && tar Ocf ../sudo-$(VERSION)-`arch -l`.tar sudo-$(VERSION) )
|
1999-11-18 02:38:58 +00:00
|
|
|
gzip --best sudo-$(VERSION)-`arch -l`.tar
|
|
|
|
rm -rf tmp.`arch -l`
|