1999-01-17 23:16:20 +00:00
|
|
|
#
|
2010-03-21 12:58:14 -04:00
|
|
|
# Copyright (c) 1996, 1998-2005, 2007-2010
|
|
|
|
# Todd C. Miller <Todd.Miller@courtesan.com>
|
1999-07-22 12:33:26 +00:00
|
|
|
#
|
2004-02-13 21:36:43 +00:00
|
|
|
# Permission to use, copy, modify, and distribute this software for any
|
|
|
|
# purpose with or without fee is hereby granted, provided that the above
|
|
|
|
# copyright notice and this permission notice appear in all copies.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
1999-07-22 12:33:26 +00:00
|
|
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
2010-03-21 12:58:14 -04: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@
|
|
|
|
#
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
#### Start of system configuration section. ####
|
|
|
|
|
|
|
|
srcdir = @srcdir@
|
2005-01-05 22:18:42 +00:00
|
|
|
devdir = @devdir@
|
1999-08-14 15:34:55 +00:00
|
|
|
authdir = $(srcdir)/auth
|
2010-03-14 19:58:47 -04:00
|
|
|
top_builddir = @top_builddir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
incdir = $(top_srcdir)/include
|
2010-07-23 09:12:03 -04:00
|
|
|
docdir = @docdir@
|
2010-08-30 09:47:52 -04:00
|
|
|
timedir = @timedir@
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
# Compiler & tools to use
|
|
|
|
CC = @CC@
|
2010-03-21 12:58:14 -04:00
|
|
|
LIBTOOL = @LIBTOOL@
|
|
|
|
FLEX = @FLEX@
|
|
|
|
YACC = @YACC@
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2002-01-01 21:53:12 +00:00
|
|
|
# Our install program supports extra flags...
|
2010-03-14 19:58:47 -04:00
|
|
|
INSTALL = $(SHELL) $(top_srcdir)/install-sh -c
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1994-03-12 15:40:20 +00:00
|
|
|
# Libraries
|
2010-05-27 17:48:17 -04:00
|
|
|
LIBS = $(top_builddir)/common/libcommon.la $(top_builddir)/@ac_config_libobj_dir@/libreplace.la
|
2010-03-21 12:58:14 -04:00
|
|
|
NET_LIBS = @NET_LIBS@
|
2010-03-27 20:19:40 -04:00
|
|
|
SUDOERS_LIBS = @SUDOERS_LIBS@ @AFS_LIBS@ @GETGROUPS_LIB@ $(LIBS) $(NET_LIBS) @ZLIB@
|
|
|
|
REPLAY_LIBS = @REPLAY_LIBS@ @ZLIB@
|
1994-03-09 23:51:22 +00:00
|
|
|
|
1995-06-18 18:48:10 +00:00
|
|
|
# C preprocessor flags
|
2010-06-01 12:35:19 -04:00
|
|
|
CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(srcdir) -I$(top_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
|
2010-03-14 19:58:47 -04:00
|
|
|
LDFLAGS =
|
2010-03-19 07:32:14 -04:00
|
|
|
SUDOERS_LDFLAGS = @SUDOERS_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@
|
2008-02-09 14:30:06 +00:00
|
|
|
libexecdir = @libexecdir@
|
2007-09-02 20:17:23 +00:00
|
|
|
datarootdir = @datarootdir@
|
2010-03-21 12:58:14 -04:00
|
|
|
|
|
|
|
# Directory in which to install the sudoers plugin
|
2010-03-14 19:58:47 -04:00
|
|
|
plugindir = @PLUGINDIR@
|
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
|
|
|
|
2010-03-21 12:58:14 -04:00
|
|
|
# Directory in which to install sudoreplay.
|
|
|
|
replaydir = $(bindir)
|
|
|
|
|
|
|
|
# Directory in which to install visudo
|
|
|
|
visudodir = $(sbindir)
|
|
|
|
|
|
|
|
# User and group ids the installed files should be "owned" by
|
|
|
|
install_uid = 0
|
|
|
|
install_gid = 0
|
|
|
|
|
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@
|
|
|
|
|
2010-05-28 10:41:58 -04:00
|
|
|
# Pass in paths and uid/gid + OS dependent defines
|
2004-09-28 18:29:05 +00:00
|
|
|
DEFS = @OSDEFS@ -D_PATH_SUDOERS=\"$(sudoersdir)/sudoers\" -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. ####
|
|
|
|
|
2010-05-21 21:29:44 -04:00
|
|
|
SHELL = @SHELL@
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2010-05-28 10:41:58 -04:00
|
|
|
PROGS = sudoers.la visudo sudoreplay testsudoers
|
|
|
|
|
2010-03-14 19:58:47 -04:00
|
|
|
AUTH_OBJS = sudo_auth.lo @AUTH_OBJS@
|
1999-08-14 15:34:55 +00:00
|
|
|
|
2010-05-27 18:00:08 -04:00
|
|
|
LIBSUDOERS_OBJS = alias.lo audit.lo defaults.lo gram.lo match.lo pwutil.lo \
|
2011-01-08 15:42:39 -05:00
|
|
|
timestr.lo toke.lo toke_util.lo redblack.lo
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2010-09-26 17:41:35 -04:00
|
|
|
SUDOERS_OBJS = $(AUTH_OBJS) boottime.lo check.lo env.lo goodpath.lo \
|
2010-12-27 12:18:32 -05:00
|
|
|
group_plugin.lo find_path.lo interfaces.lo logging.lo \
|
|
|
|
parse.lo set_perms.lo sudoers.lo sudo_nss.lo iolog.lo \
|
|
|
|
iolog_path.lo @SUDOERS_OBJS@
|
1995-03-24 19:16:32 +00:00
|
|
|
|
2010-05-27 17:27:36 -04:00
|
|
|
VISUDO_OBJS = visudo.o goodpath.o find_path.o error.o
|
2010-03-21 12:58:14 -04:00
|
|
|
|
2010-05-27 17:27:36 -04:00
|
|
|
REPLAY_OBJS = getdate.o sudoreplay.o error.o
|
2010-03-21 12:58:14 -04:00
|
|
|
|
2010-09-08 15:07:40 -04:00
|
|
|
TEST_OBJS = interfaces.o testsudoers.o tsgetgrpw.o error.o group_plugin.o \
|
|
|
|
net_ifs.o
|
1995-03-24 19:16:32 +00:00
|
|
|
|
2011-01-06 11:05:28 -05:00
|
|
|
CHECK_IOLOG_PATH_OBJS = check_iolog_path.o error.o iolog_path.o pwutil.o \
|
|
|
|
redblack.o
|
|
|
|
|
2009-05-19 21:24:05 +00:00
|
|
|
VERSION = @PACKAGE_VERSION@
|
2010-07-22 07:58:02 -04:00
|
|
|
PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
1994-08-31 23:33:40 +00:00
|
|
|
|
2010-08-16 14:05:44 -04:00
|
|
|
SUDODEP = $(srcdir)/sudoers.h $(srcdir)/defaults.h $(incdir)/error.h \
|
|
|
|
$(incdir)/list.h $(srcdir)/logging.h $(incdir)/missing.h \
|
|
|
|
$(srcdir)/sudo_nss.h $(devdir)/def_data.h \
|
|
|
|
$(top_builddir)/pathnames.h $(top_builddir)/config.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
|
|
|
|
2010-05-28 10:41:58 -04:00
|
|
|
all: $(PROGS)
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2010-03-21 12:58:14 -04:00
|
|
|
.SUFFIXES: .o .c .h .l .y .lo
|
1994-08-05 21:49:33 +00:00
|
|
|
|
1994-03-09 23:51:22 +00:00
|
|
|
.c.o:
|
2010-05-27 17:27:36 -04:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2004-01-05 20:03:09 +00:00
|
|
|
.c.lo:
|
2010-05-27 17:27:36 -04:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
|
2004-01-05 20:03:09 +00:00
|
|
|
|
2010-05-26 17:01:00 -04:00
|
|
|
# Prevent default rules from building .c files from .l and .y files
|
|
|
|
.l.c:
|
|
|
|
|
|
|
|
.y.c:
|
|
|
|
|
2011-01-06 10:44:28 -05:00
|
|
|
Makefile: $(srcdir)/Makefile.in
|
|
|
|
(cd $(top_builddir) && ./config.status --file plugins/sudoers/Makefile)
|
|
|
|
|
2010-03-21 12:58:14 -04:00
|
|
|
libsudoers.la: $(LIBSUDOERS_OBJS)
|
|
|
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(LIBSUDOERS_OBJS) -no-install
|
|
|
|
|
|
|
|
sudoers.la: $(SUDOERS_OBJS) libsudoers.la
|
2010-09-26 17:41:35 -04:00
|
|
|
$(LIBTOOL) @LT_STATIC@ --mode=link $(CC) $(SUDOERS_LDFLAGS) -o $@ $(SUDOERS_OBJS) libsudoers.la $(SUDOERS_LIBS) -module -avoid-version -rpath $(plugindir)
|
2010-03-21 12:58:14 -04:00
|
|
|
|
2010-06-10 16:10:17 -04:00
|
|
|
visudo: libsudoers.la $(VISUDO_OBJS) $(LIBS)
|
2010-03-21 12:58:14 -04:00
|
|
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(VISUDO_OBJS) $(LDFLAGS) libsudoers.la $(LIBS) $(NET_LIBS)
|
2010-03-14 19:58:47 -04:00
|
|
|
|
2010-09-11 09:00:06 -04:00
|
|
|
sudoreplay: $(REPLAY_OBJS) $(LIBS)
|
2010-05-27 17:27:36 -04:00
|
|
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(REPLAY_OBJS) $(LDFLAGS) timestr.lo $(REPLAY_LIBS) $(LIBS)
|
2010-03-21 12:58:14 -04:00
|
|
|
|
2010-09-11 09:00:06 -04:00
|
|
|
testsudoers: libsudoers.la $(TEST_OBJS) $(LIBS)
|
2010-07-06 13:34:05 -04:00
|
|
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(TEST_OBJS) $(LDFLAGS) libsudoers.la $(LIBS) $(NET_LIBS) @LIBDL@
|
2010-03-21 12:58:14 -04:00
|
|
|
|
2011-01-06 11:05:28 -05:00
|
|
|
check_iolog_path: $(CHECK_IOLOG_PATH_OBJS) $(LIBS)
|
|
|
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(CHECK_IOLOG_PATH_OBJS) $(LDFLAGS) $(LIBS)
|
|
|
|
|
2010-03-21 12:58:14 -04:00
|
|
|
# Uncomment the following if you want "make distclean" to clean the parser
|
2010-05-14 18:31:21 -04:00
|
|
|
@DEV@GENERATED = gram.h gram.c toke.c def_data.c def_data.h getdate.c
|
2010-03-21 12:58:14 -04:00
|
|
|
|
|
|
|
# Uncomment the lines before -@true if you intend to modify gram.y
|
2010-05-26 17:01:00 -04:00
|
|
|
$(devdir)/gram.c $(devdir)/gram.h: $(srcdir)/gram.y
|
2010-03-21 12:58:14 -04:00
|
|
|
@DEV@ $(YACC) -d $(srcdir)/gram.y
|
2010-11-09 08:55:55 -05:00
|
|
|
@DEV@ echo "#include <config.h>" > $(devdir)/gram.c
|
|
|
|
@DEV@ cat y.tab.c >> $(devdir)/gram.c
|
|
|
|
@DEV@ rm -f y.tab.c
|
2010-05-26 17:01:00 -04:00
|
|
|
@DEV@ mv -f y.tab.h $(devdir)/gram.h
|
2010-03-21 12:58:14 -04:00
|
|
|
-@true
|
|
|
|
|
|
|
|
# Uncomment the lines before -@true if you intend to modify toke.l
|
2010-05-26 17:01:00 -04:00
|
|
|
$(devdir)/toke.c: $(srcdir)/toke.l
|
2010-03-21 12:58:14 -04:00
|
|
|
@DEV@ $(FLEX) $(srcdir)/toke.l
|
2010-11-09 08:55:55 -05:00
|
|
|
@DEV@ echo "#include <config.h>" > $(devdir)/toke.c
|
|
|
|
@DEV@ cat lex.yy.c >> $(devdir)/toke.c
|
|
|
|
@DEV@ rm -f lex.yy.c
|
2010-03-21 12:58:14 -04:00
|
|
|
-@true
|
|
|
|
|
|
|
|
# Uncomment the lines before -@true if you intend to modify getdate.y
|
2010-05-26 17:01:00 -04:00
|
|
|
$(devdir)/getdate.c: $(srcdir)/getdate.y
|
2010-03-21 12:58:14 -04:00
|
|
|
@DEV@ echo "expect 10 shift/reduce conflicts"
|
|
|
|
@DEV@ $(YACC) $(srcdir)/getdate.y
|
2010-11-09 08:55:55 -05:00
|
|
|
@DEV@ echo "#include <config.h>" > $(devdir)/getdate.c
|
|
|
|
@DEV@ cat y.tab.c >> $(devdir)/getdate.c
|
|
|
|
@DEV@ rm -f y.tab.c
|
2010-03-21 12:58:14 -04:00
|
|
|
-@true
|
|
|
|
|
|
|
|
# Uncomment the following if you intend to modify def_data.in
|
2010-05-26 17:01:00 -04:00
|
|
|
@DEV@$(devdir)/def_data.c $(devdir)/def_data.h: $(srcdir)/def_data.in
|
|
|
|
@DEV@ perl $(srcdir)/mkdefaults -o $(devdir)/def_data $(srcdir)/def_data.in
|
2010-03-21 12:58:14 -04:00
|
|
|
|
2010-08-26 11:06:12 -04:00
|
|
|
sudoers: $(srcdir)/sudoers.in
|
|
|
|
(cd $(top_builddir) && $(SHELL) config.status --file=plugins/sudoers/$@)
|
|
|
|
|
2010-03-14 19:58:47 -04:00
|
|
|
# Sudoers dependencies
|
|
|
|
alias.lo: $(srcdir)/alias.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(srcdir)/redblack.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/alias.c
|
2010-06-16 11:17:02 -04:00
|
|
|
audit.lo: $(srcdir)/audit.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/audit.c
|
2010-06-16 11:17:02 -04:00
|
|
|
bsm_audit.lo: $(srcdir)/bsm_audit.c $(SUDODEP) $(srcdir)/bsm_audit.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/bsm_audit.c
|
2010-03-14 19:58:47 -04:00
|
|
|
boottime.lo: $(srcdir)/boottime.c $(top_builddir)/config.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/boottime.c
|
2010-03-14 19:58:47 -04:00
|
|
|
check.lo: $(srcdir)/check.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/check.c
|
2010-05-26 17:01:00 -04:00
|
|
|
defaults.lo: $(srcdir)/defaults.c $(SUDODEP) $(devdir)/def_data.c $(authdir)/sudo_auth.h $(devdir)/gram.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/defaults.c
|
2010-03-14 19:58:47 -04:00
|
|
|
env.lo: $(srcdir)/env.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/env.c
|
2010-03-14 19:58:47 -04:00
|
|
|
find_path.lo: $(srcdir)/find_path.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/find_path.c
|
2010-03-14 19:58:47 -04:00
|
|
|
getspwuid.lo: $(srcdir)/getspwuid.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getspwuid.c
|
2010-03-14 19:58:47 -04:00
|
|
|
goodpath.lo: $(srcdir)/goodpath.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/goodpath.c
|
2010-05-26 17:01:00 -04:00
|
|
|
gram.lo: $(devdir)/gram.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(devdir)/gram.h
|
2010-05-27 18:11:51 -04:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/gram.c
|
2010-07-02 11:11:25 -04:00
|
|
|
group_plugin.lo: $(srcdir)/group_plugin.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/group_plugin.c
|
2010-03-14 19:58:47 -04:00
|
|
|
interfaces.lo: $(srcdir)/interfaces.c $(SUDODEP) $(srcdir)/interfaces.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/interfaces.c
|
2010-03-27 20:19:40 -04:00
|
|
|
iolog.lo: $(srcdir)/iolog.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/iolog.c
|
2010-12-27 12:18:32 -05:00
|
|
|
iolog_path.lo: $(srcdir)/iolog_path.c $(SUDODEP)
|
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/iolog_path.c
|
2010-03-14 19:58:47 -04:00
|
|
|
ldap.lo: $(srcdir)/ldap.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/ldap.c
|
2010-06-16 11:17:02 -04:00
|
|
|
linux_audit.lo: $(srcdir)/linux_audit.c $(SUDODEP) $(srcdir)/linux_audit.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/linux_audit.c
|
2010-03-14 19:58:47 -04:00
|
|
|
logging.lo: $(srcdir)/logging.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/logging.c
|
2010-05-26 17:01:00 -04:00
|
|
|
match.lo: $(srcdir)/match.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(srcdir)/interfaces.h $(devdir)/gram.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/match.c
|
2010-05-26 17:01:00 -04:00
|
|
|
parse.lo: $(srcdir)/parse.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(devdir)/gram.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/parse.c
|
2010-03-14 19:58:47 -04:00
|
|
|
pwutil.lo: $(srcdir)/pwutil.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/pwutil.c
|
2010-03-14 19:58:47 -04:00
|
|
|
redblack.lo: $(srcdir)/redblack.c $(SUDODEP) $(srcdir)/redblack.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/redblack.c
|
2010-03-14 19:58:47 -04:00
|
|
|
set_perms.lo: $(srcdir)/set_perms.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/set_perms.c
|
2010-03-14 19:58:47 -04:00
|
|
|
sudo_nss.lo: $(srcdir)/sudo_nss.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo_nss.c
|
2010-04-30 15:38:33 -04:00
|
|
|
sudoers.lo: $(srcdir)/sudoers.c $(SUDODEP) $(srcdir)/interfaces.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudoers.c
|
2010-08-16 14:05:44 -04:00
|
|
|
timestr.lo: $(srcdir)/timestr.c $(incdir)/missing.h $(top_builddir)/config.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/timestr.c
|
2011-01-08 15:42:39 -05:00
|
|
|
toke.lo: $(devdir)/toke.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(srcdir)/toke.h $(devdir)/gram.h
|
2010-05-27 18:11:51 -04:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/toke.c
|
2011-01-08 15:42:39 -05:00
|
|
|
toke_util.lo: $(devdir)/toke_util.c $(SUDODEP) $(srcdir)/parse.h $(srcdir)/toke.h $(devdir)/gram.h
|
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/toke_util.c
|
2010-03-14 19:58:47 -04:00
|
|
|
tsgetgrpw.lo: $(srcdir)/tsgetgrpw.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/tsgetgrpw.c
|
2010-08-16 14:05:44 -04:00
|
|
|
plugin_error.lo: $(srcdir)/plugin_error.c $(incdir)/error.h $(incdir)/missing.h $(top_builddir)/config.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/plugin_error.c
|
2010-03-14 19:58:47 -04:00
|
|
|
|
|
|
|
# Auth dependencies
|
|
|
|
sudo_auth.lo: $(authdir)/sudo_auth.c $(AUTHDEP) $(INSDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/sudo_auth.c
|
2010-03-14 19:58:47 -04:00
|
|
|
afs.lo: $(authdir)/afs.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/afs.c
|
2010-03-14 19:58:47 -04:00
|
|
|
aix_auth.lo: $(authdir)/aix_auth.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/aix_auth.c
|
2010-03-14 19:58:47 -04:00
|
|
|
bsdauth.lo: $(authdir)/bsdauth.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/bsdauth.c
|
2010-03-14 19:58:47 -04:00
|
|
|
dce.lo: $(authdir)/dce.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/dce.c
|
2010-03-14 19:58:47 -04:00
|
|
|
fwtk.lo: $(authdir)/fwtk.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/fwtk.c
|
2010-03-14 19:58:47 -04:00
|
|
|
kerb4.lo: $(authdir)/kerb4.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/kerb4.c
|
2010-03-14 19:58:47 -04:00
|
|
|
kerb5.lo: $(authdir)/kerb5.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/kerb5.c
|
2010-03-14 19:58:47 -04:00
|
|
|
pam.lo: $(authdir)/pam.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/pam.c
|
2010-03-14 19:58:47 -04:00
|
|
|
passwd.lo: $(authdir)/passwd.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/passwd.c
|
2010-03-14 19:58:47 -04:00
|
|
|
rfc1938.lo: $(authdir)/rfc1938.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/rfc1938.c
|
2010-03-14 19:58:47 -04:00
|
|
|
secureware.lo: $(authdir)/secureware.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/secureware.c
|
2010-03-14 19:58:47 -04:00
|
|
|
securid.lo: $(authdir)/securid.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/securid.c
|
2010-03-14 19:58:47 -04:00
|
|
|
securid5.lo: $(authdir)/securid5.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/securid5.c
|
2010-03-14 19:58:47 -04:00
|
|
|
sia.lo: $(authdir)/sia.c $(AUTHDEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/sia.c
|
2010-03-14 19:58:47 -04:00
|
|
|
|
2010-04-04 14:01:21 -04:00
|
|
|
# Command dependencies (sudoreplay, testsudoers, visudo)
|
2011-01-06 11:05:28 -05:00
|
|
|
check_iolog_path.o: $(srcdir)/regress/iolog_path/check_iolog_path.c $(SUDODEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/regress/iolog_path/check_iolog_path.c
|
2010-08-16 14:05:44 -04:00
|
|
|
error.o: $(top_srcdir)/src/error.c $(incdir)/error.h $(incdir)/missing.h $(top_builddir)/config.h
|
2010-05-27 18:11:51 -04:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/error.c
|
2010-04-04 14:01:21 -04:00
|
|
|
find_path.o: find_path.lo
|
2010-08-16 14:05:44 -04:00
|
|
|
getdate.o: $(devdir)/getdate.c $(incdir)/missing.h $(top_builddir)/config.h
|
2010-05-27 18:11:51 -04:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/getdate.c
|
2010-04-04 14:01:21 -04:00
|
|
|
goodpath.o: goodpath.lo
|
|
|
|
interfaces.o: interfaces.lo
|
2011-01-06 11:05:28 -05:00
|
|
|
iolog_path.o: iolog_path.lo
|
2010-11-09 10:27:02 -05:00
|
|
|
net_ifs.o: $(top_srcdir)/src/net_ifs.c $(SUDODEP)
|
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/net_ifs.c
|
2011-01-06 11:05:28 -05:00
|
|
|
pwutil.o: pwutil.lo
|
|
|
|
redblack.o: redblack.lo
|
2010-08-16 14:05:44 -04:00
|
|
|
sudoreplay.o: $(srcdir)/sudoreplay.c $(incdir)/alloc.h $(incdir)/missing.h $(incdir)/error.h $(incdir)/missing.h $(top_builddir)/config.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudoreplay.c
|
2010-05-26 17:01:00 -04:00
|
|
|
testsudoers.o: $(srcdir)/testsudoers.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(srcdir)/interfaces.h $(devdir)/gram.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/testsudoers.c
|
2010-04-04 14:01:21 -04:00
|
|
|
tsgetgrpw.o: $(srcdir)/tsgetgrpw.c $(SUDODEP)
|
2010-11-09 10:27:02 -05:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/tsgetgrpw.c
|
2010-05-26 17:01:00 -04:00
|
|
|
visudo.o: $(srcdir)/visudo.c $(SUDODEP) $(devdir)/gram.h
|
2010-11-09 10:27:02 -05:00
|
|
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/visudo.c
|
2010-03-21 12:58:14 -04:00
|
|
|
|
2010-07-23 09:12:03 -04:00
|
|
|
install: install-dirs install-plugin install-binaries install-sudoers install-doc
|
1996-04-05 00:39:26 +00:00
|
|
|
|
|
|
|
install-dirs:
|
2010-03-21 12:58:14 -04:00
|
|
|
$(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(plugindir) \
|
|
|
|
$(DESTDIR)$(visudodir) $(DESTDIR)$(replaydir) \
|
2010-07-23 09:12:03 -04:00
|
|
|
$(DESTDIR)$(sudoersdir) $(DESTDIR)$(docdir)
|
2010-08-03 15:10:56 -04:00
|
|
|
$(SHELL) $(top_srcdir)/mkinstalldirs -m 0700 $(DESTDIR)$(timedir)
|
2010-03-21 12:58:14 -04:00
|
|
|
|
|
|
|
install-binaries: visudo sudoreplay install-dirs
|
2010-07-23 11:23:53 -04:00
|
|
|
$(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -M 0111 sudoreplay $(DESTDIR)$(replaydir)/sudoreplay
|
|
|
|
$(INSTALL) -b~ -O $(install_uid) -G $(install_gid) -M 0111 visudo $(DESTDIR)$(visudodir)/visudo
|
2010-03-14 19:58:47 -04:00
|
|
|
|
2010-05-21 15:31:36 -04:00
|
|
|
install-includes:
|
2010-03-14 19:58:47 -04:00
|
|
|
|
2010-07-13 08:36:19 -04:00
|
|
|
install-doc:
|
2010-07-23 09:12:03 -04:00
|
|
|
@LDAP@$(INSTALL) -O $(install_uid) -G $(install_gid) -M 0555 $(srcdir)/sudoers2ldif $(DESTDIR)$(docdir)
|
2010-03-14 19:58:47 -04:00
|
|
|
|
2010-05-21 15:31:36 -04:00
|
|
|
install-plugin: sudoers.la install-dirs
|
2010-07-23 11:23:53 -04:00
|
|
|
$(LIBTOOL) --mode=install --quiet $(INSTALL) -b~ sudoers.la $(DESTDIR)$(plugindir)
|
2010-05-21 15:31:36 -04:00
|
|
|
|
2010-03-21 12:58:14 -04:00
|
|
|
install-sudoers: install-dirs
|
2010-07-13 08:33:46 -04:00
|
|
|
$(INSTALL) -d -O $(sudoers_uid) -G $(sudoers_gid) -M 0750 \
|
|
|
|
$(DESTDIR)$(sudoersdir)/sudoers.d
|
2010-03-21 12:58:14 -04:00
|
|
|
test -f $(DESTDIR)$(sudoersdir)/sudoers || \
|
|
|
|
$(INSTALL) -O $(sudoers_uid) -G $(sudoers_gid) -M $(sudoers_mode) \
|
2010-08-30 09:06:25 -04:00
|
|
|
sudoers $(DESTDIR)$(sudoersdir)/sudoers
|
1994-03-09 23:51:22 +00:00
|
|
|
|
2010-07-07 11:42:36 -04:00
|
|
|
uninstall:
|
|
|
|
-$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(plugindir)/sudoers.la
|
|
|
|
-rm -f $(DESTDIR)$(replaydir)/sudoreplay
|
|
|
|
-rm -f $(DESTDIR)$(visudodir)/visudo
|
|
|
|
-cmp $(DESTDIR)$(sudoersdir)/sudoers $(srcdir)/sudoers >/dev/null && \
|
|
|
|
rm -f $(DESTDIR)$(sudoersdir)/sudoers
|
|
|
|
|
2011-01-06 11:05:28 -05:00
|
|
|
check: check_iolog_path
|
2011-01-07 13:19:32 -05:00
|
|
|
@./check_iolog_path $(srcdir)/regress/iolog_path/data
|
2011-01-07 15:10:28 -05:00
|
|
|
@for t in $(srcdir)/regress/testsudoers/test*.sh $(srcdir)/regress/visudo/test*.sh; do SRCDIR=$(srcdir) $(SHELL) $$t; done
|
2000-01-03 04:26:17 +00:00
|
|
|
|
1994-03-09 23:51:22 +00:00
|
|
|
clean:
|
2011-01-07 15:10:28 -05:00
|
|
|
-$(LIBTOOL) --mode=clean rm -f $(PROGS) *.lo *.o *.la *.a stamp-* core *.core core.* *.out
|
1994-03-09 23:51:22 +00:00
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
2010-08-26 11:06:12 -04:00
|
|
|
-rm -rf Makefile sudoers sudoers.lo .libs $(LINKS)
|
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
|