mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
Auto-generate Makefile dependencies with a perl script.
This commit is contained in:
parent
d9e807b269
commit
78e235945f
10
Makefile.in
10
Makefile.in
@ -78,6 +78,16 @@ install install-doc: config.status ChangeLog pre-install
|
||||
autoconf:
|
||||
autoconf -I m4
|
||||
|
||||
depend:
|
||||
$(srcdir)/mkdep.pl compat/Makefile.in common/Makefile.in \
|
||||
plugins/sudoers/Makefile.in plugins/sample/Makefile.in \
|
||||
plugins/sample_group/Makefile.in src/Makefile.in \
|
||||
zlib/Makefile.in
|
||||
./config.status --file compat/Makefile --file common/Makefile \
|
||||
--file plugins/sudoers/Makefile --file plugins/sample/Makefile \
|
||||
--file plugins/sample_group/Makefile --file src/Makefile \
|
||||
--file zlib/Makefile
|
||||
|
||||
ChangeLog:
|
||||
if test -d $(srcdir)/.hg && cd $(srcdir); then \
|
||||
if hg log --style=changelog -b default > $@.tmp; then \
|
||||
|
@ -30,7 +30,7 @@ CC = @CC@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
|
||||
# C preprocessor flags
|
||||
CPPFLAGS = -I. -I$(top_builddir) -I$(incdir) @CPPFLAGS@
|
||||
CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
|
||||
|
||||
# Usually -O and/or -g
|
||||
CFLAGS = @CFLAGS@
|
||||
@ -58,26 +58,6 @@ Makefile: $(srcdir)/Makefile.in
|
||||
libcommon.la: $(LTOBJS)
|
||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(LTOBJS) -no-install
|
||||
|
||||
# Dependencies
|
||||
aix.lo: $(srcdir)/aix.c $(incdir)/missing.h $(incdir)/alloc.h $(incdir)/error.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/aix.c
|
||||
alloc.lo: $(srcdir)/alloc.c $(incdir)/missing.h $(incdir)/alloc.h $(incdir)/error.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/alloc.c
|
||||
atobool.lo: $(srcdir)/atobool.c $(incdir)/missing.h $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/atobool.c
|
||||
fileops.lo: $(srcdir)/fileops.c $(incdir)/fileops.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fileops.c
|
||||
fmt_string.lo: $(srcdir)/fmt_string.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fmt_string.c
|
||||
lbuf.lo: $(srcdir)/lbuf.c $(incdir)/missing.h $(incdir)/alloc.h $(incdir)/error.h $(incdir)/missing.h $(incdir)/lbuf.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/lbuf.c
|
||||
list.lo: $(srcdir)/list.c $(incdir)/missing.h $(incdir)/list.h $(incdir)/error.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/list.c
|
||||
term.lo: $(srcdir)/term.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/term.c
|
||||
zero_bytes.lo: $(srcdir)/zero_bytes.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/zero_bytes.c
|
||||
|
||||
update-po:
|
||||
|
||||
compile-po:
|
||||
@ -116,3 +96,31 @@ realclean: distclean
|
||||
rm -f TAGS tags
|
||||
|
||||
cleandir: realclean
|
||||
|
||||
# Autogenerated dependencies, do not modify
|
||||
aix.lo: $(srcdir)/aix.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/aix.c
|
||||
alloc.lo: $(srcdir)/alloc.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/alloc.c
|
||||
atobool.lo: $(srcdir)/atobool.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/atobool.c
|
||||
fileops.lo: $(srcdir)/fileops.c $(top_builddir)/config.h \
|
||||
$(top_srcdir)/compat/timespec.h $(incdir)/missing.h \
|
||||
$(incdir)/fileops.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fileops.c
|
||||
fmt_string.lo: $(srcdir)/fmt_string.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fmt_string.c
|
||||
lbuf.lo: $(srcdir)/lbuf.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(incdir)/alloc.h $(incdir)/error.h $(incdir)/lbuf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/lbuf.c
|
||||
list.lo: $(srcdir)/list.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(incdir)/list.h $(incdir)/error.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/list.c
|
||||
term.lo: $(srcdir)/term.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/term.c
|
||||
zero_bytes.lo: $(srcdir)/zero_bytes.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/zero_bytes.c
|
||||
|
@ -30,7 +30,7 @@ CC = @CC@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
|
||||
# C preprocessor flags
|
||||
CPPFLAGS = -I$(top_builddir) -I$(incdir) @CPPFLAGS@
|
||||
CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
|
||||
|
||||
# Usually -O and/or -g
|
||||
CFLAGS = @CFLAGS@
|
||||
@ -80,46 +80,6 @@ globtest: globtest.o libreplace.la
|
||||
@DEV@$(srcdir)/mksiglist.h: $(srcdir)/siglist.in
|
||||
@DEV@ awk 'BEGIN {print "/* public domain */\n"} /^ [A-Z]/ {printf("#ifdef SIG%s\n if (my_sys_siglist[SIG%s] == NULL)\n\tmy_sys_siglist[SIG%s] = \"%s\";\n#endif\n", $$1, $$1, $$1, substr($$0, 13))}' < $(srcdir)/siglist.in > $@
|
||||
|
||||
# Dependencies
|
||||
closefrom.lo: $(srcdir)/closefrom.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/closefrom.c
|
||||
dlopen.lo: $(srcdir)/dlopen.c $(srcdir)/dlfcn.h $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/dlopen.c
|
||||
fnmatch.lo: $(srcdir)/fnmatch.c $(srcdir)/fnmatch.h $(srcdir)/charclass.h $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fnmatch.c
|
||||
getcwd.lo: $(srcdir)/getcwd.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getcwd.c
|
||||
getline.lo: $(srcdir)/getline.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getline.c
|
||||
getprogname.lo: $(srcdir)/getprogname.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getprogname.c
|
||||
glob.lo: $(srcdir)/glob.c $(srcdir)/glob.h $(srcdir)/charclass.h $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/glob.c
|
||||
isblank.lo: $(srcdir)/isblank.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/isblank.c
|
||||
memrchr.lo: $(srcdir)/memrchr.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/memrchr.c
|
||||
mktemp.lo: $(srcdir)/mktemp.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mktemp.c
|
||||
nanosleep.lo: $(srcdir)/nanosleep.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/nanosleep.c
|
||||
siglist.lo: ./siglist.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) ./siglist.c
|
||||
snprintf.lo: $(srcdir)/snprintf.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/snprintf.c
|
||||
strcasecmp.lo: $(srcdir)/strcasecmp.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strcasecmp.c
|
||||
strerror.lo: $(srcdir)/strerror.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strerror.c
|
||||
strlcat.lo: $(srcdir)/strlcat.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strlcat.c
|
||||
strlcpy.lo: $(srcdir)/strlcpy.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strlcpy.c
|
||||
strsignal.lo: $(srcdir)/strsignal.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strsignal.c
|
||||
utimes.lo: $(srcdir)/utimes.c $(incdir)/missing.h $(srcdir)/utime.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/utimes.c
|
||||
|
||||
update-po:
|
||||
|
||||
compile-po:
|
||||
@ -166,3 +126,54 @@ realclean: distclean
|
||||
rm -f TAGS tags
|
||||
|
||||
cleandir: realclean
|
||||
|
||||
# Autogenerated dependencies, do not modify
|
||||
closefrom.lo: $(srcdir)/closefrom.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/closefrom.c
|
||||
dlopen.lo: $(srcdir)/dlopen.c $(top_builddir)/config.h \
|
||||
$(top_srcdir)/compat/dlfcn.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/dlopen.c
|
||||
fnmatch.lo: $(srcdir)/fnmatch.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(top_srcdir)/compat/charclass.h $(top_srcdir)/compat/fnmatch.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/fnmatch.c
|
||||
getcwd.lo: $(srcdir)/getcwd.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getcwd.c
|
||||
getgrouplist.lo: compat/getgrouplist.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) compat/getgrouplist.c
|
||||
getline.lo: $(srcdir)/getline.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getline.c
|
||||
getprogname.lo: $(srcdir)/getprogname.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getprogname.c
|
||||
glob.lo: $(srcdir)/glob.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(top_srcdir)/compat/glob.h $(top_srcdir)/compat/charclass.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/glob.c
|
||||
isblank.lo: $(srcdir)/isblank.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/isblank.c
|
||||
memrchr.lo: $(srcdir)/memrchr.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/memrchr.c
|
||||
mksiglist.lo: compat/mksiglist.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(top_srcdir)/compat/mksiglist.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) compat/mksiglist.c
|
||||
mktemp.lo: $(srcdir)/mktemp.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/mktemp.c
|
||||
nanosleep.lo: $(srcdir)/nanosleep.c $(top_builddir)/config.h \
|
||||
$(top_srcdir)/compat/timespec.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/nanosleep.c
|
||||
setenv.lo: compat/setenv.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) compat/setenv.c
|
||||
snprintf.lo: $(srcdir)/snprintf.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/snprintf.c
|
||||
strlcat.lo: $(srcdir)/strlcat.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strlcat.c
|
||||
strlcpy.lo: $(srcdir)/strlcpy.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strlcpy.c
|
||||
strsignal.lo: $(srcdir)/strsignal.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/strsignal.c
|
||||
unsetenv.lo: compat/unsetenv.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) compat/unsetenv.c
|
||||
utimes.lo: $(srcdir)/utimes.c $(top_builddir)/config.h \
|
||||
$(top_srcdir)/compat/utime.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/utimes.c
|
||||
|
184
mkdep.pl
Executable file
184
mkdep.pl
Executable file
@ -0,0 +1,184 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
use File::Temp qw/ :mktemp /;
|
||||
use Fcntl;
|
||||
use warnings;
|
||||
|
||||
die "usage: $0 Makefile ...\n" unless $#ARGV >= 0;
|
||||
|
||||
my @incpaths;
|
||||
my %dir_vars;
|
||||
my %implicit;
|
||||
|
||||
foreach (@ARGV) {
|
||||
mkdep($_);
|
||||
}
|
||||
|
||||
sub mkdep {
|
||||
my $file = $_[0];
|
||||
|
||||
my $makefile;
|
||||
if (open(MF, "<$file")) {
|
||||
local $/; # enable "slurp" mode
|
||||
$makefile = <MF>;
|
||||
} else {
|
||||
warn "$0: $file: $!\n";
|
||||
return undef;
|
||||
}
|
||||
close(MF);
|
||||
|
||||
# New makefile, minus the autogenerated dependencies
|
||||
my $separator = "# Autogenerated dependencies, do not modify";
|
||||
my $new_makefile = $makefile;
|
||||
$new_makefile =~ s/${separator}.*$//s;
|
||||
$new_makefile .= "$separator\n";
|
||||
|
||||
# Old makefile, join lines with continuation characters
|
||||
$makefile =~ s/\\\n//mg;
|
||||
|
||||
# Expand some configure bits
|
||||
$makefile =~ s:\@COMMON_OBJS\@:aix.lo:;
|
||||
$makefile =~ s:\@SUDO_OBJS\@:preload.o selinux.o sesh.o sudo_noexec.lo:;
|
||||
$makefile =~ s:\@SUDOERS_OBJS\@:bsm_audit.lo linux_audit.lo ldap.lo plugin_error.lo:;
|
||||
# XXX - fill in AUTH_OBJS from contents of the auth dir instead
|
||||
$makefile =~ s:\@AUTH_OBJS\@:afs.lo aix_auth.lo bsdauth.lo dce.lo fwtk.lo kerb4.lo kerb5.lo pam.lo passwd.lo rfc1938.lo secureware.lo securid.lo securid5.lo sia.lo:;
|
||||
$makefile =~ s:\@LTLIBOBJS\@:closefrom.lo dlopen.lo fnmatch.lo getcwd.lo getgrouplist.lo getline.lo getprogname.lo glob.lo isblank.lo memrchr.lo mksiglist.lo mktemp.lo nanosleep.lo setenv.lo snprintf.lo strlcat.lo strlcpy.lo strsignal.lo unsetenv.lo utimes.lo:;
|
||||
|
||||
# Parse OBJS lines
|
||||
my @objs;
|
||||
while ($makefile =~ /^[A-Z0-9_]*OBJS\s*=\s*(.*)/mg) {
|
||||
foreach (split/\s+/, $1) {
|
||||
next if /^\$[\(\{].*[\)\}]$/; # skip included vars for now
|
||||
push(@objs, $_);
|
||||
}
|
||||
}
|
||||
|
||||
# Find include paths
|
||||
@incpaths = ();
|
||||
while ($makefile =~ /-I(\S+)/mg) {
|
||||
push(@incpaths, $1) unless $1 eq ".";
|
||||
}
|
||||
|
||||
# Values of srcdir, top_srcdir, top_builddir, incdir
|
||||
%dir_vars = ();
|
||||
$file =~ m:^(.*)/+[^/]+:;
|
||||
$dir_vars{'srcdir'} = $1 || '.';
|
||||
$dir_vars{'devdir'} = $dir_vars{'srcdir'};
|
||||
$dir_vars{'authdir'} = $dir_vars{'srcdir'} . "/auth";
|
||||
$dir_vars{'top_srcdir'} = '.';
|
||||
#$dir_vars{'top_builddir'} = '.';
|
||||
$dir_vars{'incdir'} = 'include';
|
||||
|
||||
# Find implicit rules for generate .o and .lo files
|
||||
%implicit = ();
|
||||
while ($makefile =~ /^\.c\.(l?o):\s*\n\t+(.*)$/mg) {
|
||||
$implicit{$1} = $2;
|
||||
}
|
||||
|
||||
# Find existing .o and .lo dependencies
|
||||
my %srcs;
|
||||
while ($makefile =~ /^(\w+\.l?o):\s*(\S+\.c)/mg) {
|
||||
$srcs{$1} = $2;
|
||||
}
|
||||
|
||||
# Do .lo files first
|
||||
foreach my $obj (sort @objs) {
|
||||
next unless $obj =~ /(\S+)\.(l?o)$/;
|
||||
if ($2 eq "o" && exists($srcs{"$1.lo"})) {
|
||||
# If we have both .lo and .o files, make the .o depend on the .lo
|
||||
$new_makefile .= sprintf("%s: %s.lo\n", $obj, $1);
|
||||
} else {
|
||||
# XXX - search for the .c file if we don't know it
|
||||
# XXX - use MANIFEST file for this
|
||||
my $src = $srcs{$obj} || $1 . '.c';
|
||||
my $ext = $2;
|
||||
my $imp = $implicit{$ext};
|
||||
$imp =~ s/\$</$src/g;
|
||||
my $deps = sprintf("%s: %s %s", $obj, $src,
|
||||
join(' ', find_depends($src)));
|
||||
if (length($deps) > 80) {
|
||||
my $off = 0;
|
||||
my $indent = length($obj) + 2;
|
||||
while (length($deps) - $off > 80 - $indent) {
|
||||
my $pos;
|
||||
if ($off != 0) {
|
||||
$new_makefile .= ' ' x $indent;
|
||||
$pos = rindex($deps, ' ', $off + 80 - $indent - 2);
|
||||
} else {
|
||||
$pos = rindex($deps, ' ', $off + 78);
|
||||
}
|
||||
$new_makefile .= substr($deps, $off, $pos - $off) . " \\\n";
|
||||
$off = $pos + 1;
|
||||
}
|
||||
$new_makefile .= ' ' x $indent;
|
||||
$new_makefile .= substr($deps, $off) . "\n";
|
||||
} else {
|
||||
$new_makefile .= "$deps\n";
|
||||
}
|
||||
$new_makefile .= "\t$imp\n";
|
||||
}
|
||||
}
|
||||
|
||||
rename($file, $file . ".old");
|
||||
if (!open(MF, ">$file")) {
|
||||
warn("cannot open $file: $!\n");
|
||||
rename($file . ".old", $file);
|
||||
} else {
|
||||
print MF $new_makefile || warn("cannot write $file: $!\n");
|
||||
close(MF);
|
||||
}
|
||||
}
|
||||
|
||||
exit(0);
|
||||
|
||||
sub find_depends {
|
||||
my $src = $_[0];
|
||||
my ($deps, $code, @headers);
|
||||
|
||||
# resolve $(srcdir) etc.
|
||||
foreach (keys %dir_vars) {
|
||||
$src =~ s/\$[\(\{]$_[\)\}]/$dir_vars{$_}/g;
|
||||
}
|
||||
|
||||
# find open source file and find headers used by it
|
||||
if (!open(FILE, "<$src")) {
|
||||
warn "unable to open $src\n";
|
||||
return "";
|
||||
}
|
||||
local $/; # enable "slurp" mode
|
||||
$code = <FILE>;
|
||||
close(FILE);
|
||||
|
||||
# find all headers
|
||||
while ($code =~ /^#\s*include\s+["<](\S+)[">]/mg) {
|
||||
my ($hdr, $hdr_path) = find_header($1);
|
||||
if (defined($hdr)) {
|
||||
push(@headers, $hdr);
|
||||
# Look for other includes in the .h file
|
||||
push(@headers, find_depends($hdr_path));
|
||||
}
|
||||
}
|
||||
|
||||
@headers;
|
||||
}
|
||||
|
||||
# find the path to a header file
|
||||
# returns path or undef if not found
|
||||
sub find_header {
|
||||
my $hdr = $_[0];
|
||||
|
||||
# Look for .h.in files in top_builddir and build dir
|
||||
return ("\$(top_builddir\)/$hdr", "./${hdr}.in") if -r "./${hdr}.in";
|
||||
return ("./$hdr", "$dir_vars{'srcdir'}/${hdr}.in") if -r "$dir_vars{'srcdir'}/${hdr}.in";
|
||||
|
||||
foreach my $inc (@incpaths) {
|
||||
my $hdr_path = "$inc/$hdr";
|
||||
# resolve variables in include path
|
||||
foreach (keys %dir_vars) {
|
||||
$hdr_path =~ s/\$[\(\{]$_[\)\}]/$dir_vars{$_}/g;
|
||||
}
|
||||
return ("$inc/$hdr", $hdr_path) if -r $hdr_path;
|
||||
}
|
||||
|
||||
undef;
|
||||
}
|
@ -80,9 +80,6 @@ Makefile: $(srcdir)/Makefile.in
|
||||
.c.lo:
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
|
||||
|
||||
sample_plugin.lo: $(srcdir)/sample_plugin.c
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_plugin.c
|
||||
|
||||
sample_plugin.la: $(OBJS)
|
||||
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ $(OBJS) $(LIBS) -module -export-symbols $(srcdir)/sample_plugin.sym -avoid-version -rpath $(plugindir)
|
||||
|
||||
@ -127,3 +124,9 @@ realclean: distclean
|
||||
rm -f TAGS tags
|
||||
|
||||
cleandir: realclean
|
||||
|
||||
# Autogenerated dependencies, do not modify
|
||||
sample_plugin.lo: $(srcdir)/sample_plugin.c $(top_builddir)/config.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/sudo_plugin.h \
|
||||
$(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_plugin.c
|
||||
|
@ -80,12 +80,6 @@ Makefile: $(srcdir)/Makefile.in
|
||||
.c.lo:
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
|
||||
|
||||
getgrent.lo: $(srcdir)/getgrent.c
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getgrent.c
|
||||
|
||||
sample_group.lo: $(srcdir)/sample_group.c
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_group.c
|
||||
|
||||
sample_group.la: $(OBJS)
|
||||
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ $(OBJS) $(LIBS) -module -export-symbols $(srcdir)/sample_group.sym -avoid-version -rpath $(plugindir)
|
||||
|
||||
@ -130,3 +124,10 @@ realclean: distclean
|
||||
rm -f TAGS tags
|
||||
|
||||
cleandir: realclean
|
||||
|
||||
# Autogenerated dependencies, do not modify
|
||||
getgrent.lo: $(srcdir)/getgrent.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getgrent.c
|
||||
sample_group.lo: $(srcdir)/sample_group.c $(top_builddir)/config.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_group.c
|
||||
|
@ -146,16 +146,6 @@ XGETTEXT_OPTS = -k_ -kN_ -dsudoers --copyright-holder="Todd C. Miller" \
|
||||
--flag easprintf:3:c-format --flag lbuf_append:2:c-format \
|
||||
--flag lbuf_append_quoted:3:c-format --foreign-user
|
||||
|
||||
SUDODEP = $(srcdir)/sudoers.h $(srcdir)/defaults.h $(incdir)/error.h \
|
||||
$(incdir)/list.h $(srcdir)/logging.h $(incdir)/missing.h \
|
||||
$(incdir)/gettext.h $(srcdir)/sudo_nss.h $(devdir)/def_data.h \
|
||||
$(top_builddir)/pathnames.h $(top_builddir)/config.h
|
||||
|
||||
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
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
.SUFFIXES: .o .c .h .l .y .lo
|
||||
@ -231,123 +221,6 @@ $(devdir)/getdate.c: $(srcdir)/getdate.y
|
||||
sudoers: $(srcdir)/sudoers.in
|
||||
(cd $(top_builddir) && $(SHELL) config.status --file=plugins/sudoers/$@)
|
||||
|
||||
# Sudoers dependencies
|
||||
alias.lo: $(srcdir)/alias.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(srcdir)/redblack.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/alias.c
|
||||
audit.lo: $(srcdir)/audit.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/audit.c
|
||||
bsm_audit.lo: $(srcdir)/bsm_audit.c $(SUDODEP) $(srcdir)/bsm_audit.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/bsm_audit.c
|
||||
boottime.lo: $(srcdir)/boottime.c $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/boottime.c
|
||||
check.lo: $(srcdir)/check.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/check.c
|
||||
defaults.lo: $(srcdir)/defaults.c $(SUDODEP) $(devdir)/def_data.c $(authdir)/sudo_auth.h $(devdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/defaults.c
|
||||
env.lo: $(srcdir)/env.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/env.c
|
||||
find_path.lo: $(srcdir)/find_path.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/find_path.c
|
||||
getspwuid.lo: $(srcdir)/getspwuid.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/getspwuid.c
|
||||
goodpath.lo: $(srcdir)/goodpath.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/goodpath.c
|
||||
gram.lo: $(devdir)/gram.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(devdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/gram.c
|
||||
group_plugin.lo: $(srcdir)/group_plugin.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/group_plugin.c
|
||||
interfaces.lo: $(srcdir)/interfaces.c $(SUDODEP) $(srcdir)/interfaces.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/interfaces.c
|
||||
iolog.lo: $(srcdir)/iolog.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/iolog.c
|
||||
iolog_path.lo: $(srcdir)/iolog_path.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/iolog_path.c
|
||||
ldap.lo: $(srcdir)/ldap.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/ldap.c
|
||||
linux_audit.lo: $(srcdir)/linux_audit.c $(SUDODEP) $(srcdir)/linux_audit.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/linux_audit.c
|
||||
logging.lo: $(srcdir)/logging.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/logging.c
|
||||
match.lo: $(srcdir)/match.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(srcdir)/interfaces.h $(devdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/match.c
|
||||
parse.lo: $(srcdir)/parse.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(devdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/parse.c
|
||||
pwutil.lo: $(srcdir)/pwutil.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/pwutil.c
|
||||
redblack.lo: $(srcdir)/redblack.c $(SUDODEP) $(srcdir)/redblack.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/redblack.c
|
||||
set_perms.lo: $(srcdir)/set_perms.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/set_perms.c
|
||||
sudo_nss.lo: $(srcdir)/sudo_nss.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo_nss.c
|
||||
sudoers.lo: $(srcdir)/sudoers.c $(SUDODEP) $(srcdir)/interfaces.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudoers.c
|
||||
timestr.lo: $(srcdir)/timestr.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/timestr.c
|
||||
toke.lo: $(devdir)/toke.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(srcdir)/toke.h $(devdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/toke.c
|
||||
toke_util.lo: $(srcdir)/toke_util.c $(SUDODEP) $(srcdir)/parse.h $(srcdir)/toke.h $(devdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/toke_util.c
|
||||
tsgetgrpw.lo: $(srcdir)/tsgetgrpw.c $(SUDODEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/tsgetgrpw.c
|
||||
plugin_error.lo: $(srcdir)/plugin_error.c $(incdir)/error.h $(incdir)/missing.h $(incdir)/gettext.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/plugin_error.c
|
||||
|
||||
# Auth dependencies
|
||||
sudo_auth.lo: $(authdir)/sudo_auth.c $(AUTHDEP) $(INSDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/sudo_auth.c
|
||||
afs.lo: $(authdir)/afs.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/afs.c
|
||||
aix_auth.lo: $(authdir)/aix_auth.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/aix_auth.c
|
||||
bsdauth.lo: $(authdir)/bsdauth.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/bsdauth.c
|
||||
dce.lo: $(authdir)/dce.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/dce.c
|
||||
fwtk.lo: $(authdir)/fwtk.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/fwtk.c
|
||||
kerb4.lo: $(authdir)/kerb4.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/kerb4.c
|
||||
kerb5.lo: $(authdir)/kerb5.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/kerb5.c
|
||||
pam.lo: $(authdir)/pam.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/pam.c
|
||||
passwd.lo: $(authdir)/passwd.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/passwd.c
|
||||
rfc1938.lo: $(authdir)/rfc1938.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/rfc1938.c
|
||||
secureware.lo: $(authdir)/secureware.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/secureware.c
|
||||
securid.lo: $(authdir)/securid.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/securid.c
|
||||
securid5.lo: $(authdir)/securid5.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/securid5.c
|
||||
sia.lo: $(authdir)/sia.c $(AUTHDEP)
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/sia.c
|
||||
|
||||
# Command dependencies (sudoreplay, testsudoers, visudo)
|
||||
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
|
||||
error.o: $(top_srcdir)/src/error.c $(incdir)/error.h $(incdir)/missing.h $(incdir)/gettext.h $(top_builddir)/config.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/error.c
|
||||
find_path.o: find_path.lo
|
||||
getdate.o: $(devdir)/getdate.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/getdate.c
|
||||
goodpath.o: goodpath.lo
|
||||
interfaces.o: interfaces.lo
|
||||
net_ifs.o: $(top_srcdir)/src/net_ifs.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/net_ifs.c
|
||||
sudoreplay.o: $(srcdir)/sudoreplay.c $(incdir)/alloc.h $(incdir)/missing.h $(incdir)/error.h $(incdir)/missing.h $(incdir)/gettext.h $(top_builddir)/config.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudoreplay.c
|
||||
check_fill.o: $(srcdir)/regress/parser/check_fill.c
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/regress/parser/check_fill.c
|
||||
testsudoers.o: $(srcdir)/testsudoers.c $(SUDODEP) $(srcdir)/parse.h $(incdir)/list.h $(srcdir)/interfaces.h $(devdir)/gram.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/testsudoers.c
|
||||
tsgetgrpw.o: $(srcdir)/tsgetgrpw.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/tsgetgrpw.c
|
||||
visudo.o: $(srcdir)/visudo.c $(SUDODEP) $(devdir)/gram.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/visudo.c
|
||||
|
||||
update-po:
|
||||
@echo "Updating $(POTFILE)"; \
|
||||
$(XGETTEXT) $(XGETTEXT_OPTS) $(srcdir)/*c $(srcdir)/auth/*c -o $(POTFILE)
|
||||
@ -500,3 +373,349 @@ realclean: distclean
|
||||
rm -f TAGS tags
|
||||
|
||||
cleandir: realclean
|
||||
|
||||
# Autogenerated dependencies, do not modify
|
||||
afs.lo: $(authdir)/afs.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/afs.c
|
||||
aix_auth.lo: $(authdir)/aix_auth.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/aix_auth.c
|
||||
alias.lo: $(srcdir)/alias.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/parse.h $(srcdir)/redblack.h $(srcdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/alias.c
|
||||
audit.lo: $(srcdir)/audit.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(srcdir)/logging.h $(srcdir)/bsm_audit.h $(srcdir)/linux_audit.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/audit.c
|
||||
boottime.lo: $(srcdir)/boottime.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/boottime.c
|
||||
bsdauth.lo: $(authdir)/bsdauth.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/bsdauth.c
|
||||
bsm_audit.lo: $(srcdir)/bsm_audit.c $(top_builddir)/config.h \
|
||||
$(srcdir)/bsm_audit.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/bsm_audit.c
|
||||
check.lo: $(srcdir)/check.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/check.c
|
||||
check_iolog_path.o: $(srcdir)/regress/iolog_path/check_iolog_path.c \
|
||||
$(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h \
|
||||
$(incdir)/error.h $(incdir)/alloc.h $(incdir)/list.h \
|
||||
$(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h \
|
||||
$(incdir)/gettext.h $(srcdir)/def_data.c
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/regress/iolog_path/check_iolog_path.c
|
||||
dce.lo: $(authdir)/dce.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/dce.c
|
||||
defaults.lo: $(srcdir)/defaults.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/parse.h $(srcdir)/gram.h $(srcdir)/def_data.c
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/defaults.c
|
||||
env.lo: $(srcdir)/env.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/env.c
|
||||
error.o: $(top_srcdir)/src/error.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/error.c
|
||||
error.o: $(top_srcdir)/src/error.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/error.c
|
||||
error.o: $(top_srcdir)/src/error.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/error.c
|
||||
error.o: $(top_srcdir)/src/error.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/error.c
|
||||
find_path.lo: $(srcdir)/find_path.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/find_path.c
|
||||
find_path.o: find_path.lo
|
||||
fwtk.lo: $(authdir)/fwtk.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/fwtk.c
|
||||
getdate.o: $(devdir)/getdate.c $(top_builddir)/config.h \
|
||||
$(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/getdate.c
|
||||
goodpath.lo: $(srcdir)/goodpath.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/goodpath.c
|
||||
goodpath.o: goodpath.lo
|
||||
gram.lo: $(devdir)/gram.c $(top_builddir)/config.h $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h $(incdir)/missing.h \
|
||||
$(incdir)/error.h $(incdir)/alloc.h $(incdir)/list.h \
|
||||
$(incdir)/fileops.h $(srcdir)/defaults.h $(srcdir)/def_data.h \
|
||||
$(srcdir)/logging.h $(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h \
|
||||
$(incdir)/gettext.h $(srcdir)/parse.h $(srcdir)/toke.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/gram.c
|
||||
group_plugin.lo: $(srcdir)/group_plugin.c $(top_builddir)/config.h \
|
||||
$(top_srcdir)/compat/dlfcn.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h \
|
||||
$(incdir)/error.h $(incdir)/alloc.h $(incdir)/list.h \
|
||||
$(incdir)/fileops.h $(srcdir)/defaults.h $(srcdir)/def_data.h \
|
||||
$(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/group_plugin.c
|
||||
group_plugin.o: group_plugin.lo
|
||||
interfaces.lo: $(srcdir)/interfaces.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/interfaces.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/interfaces.c
|
||||
interfaces.o: interfaces.lo
|
||||
iolog.lo: $(srcdir)/iolog.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/iolog.c
|
||||
iolog_path.lo: $(srcdir)/iolog_path.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/iolog_path.c
|
||||
iolog_path.lo: $(srcdir)/iolog_path.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/iolog_path.c
|
||||
kerb4.lo: $(authdir)/kerb4.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/kerb4.c
|
||||
kerb5.lo: $(authdir)/kerb5.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/kerb5.c
|
||||
ldap.lo: $(srcdir)/ldap.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/parse.h $(incdir)/lbuf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/ldap.c
|
||||
linux_audit.lo: $(srcdir)/linux_audit.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(srcdir)/linux_audit.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/linux_audit.c
|
||||
logging.lo: $(srcdir)/logging.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/logging.c
|
||||
match.lo: $(srcdir)/match.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/interfaces.h $(srcdir)/parse.h $(srcdir)/gram.h \
|
||||
$(top_srcdir)/compat/fnmatch.h $(top_srcdir)/compat/glob.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/match.c
|
||||
net_ifs.o: $(top_srcdir)/src/net_ifs.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h $(incdir)/alloc.h $(incdir)/error.h \
|
||||
$(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/net_ifs.c
|
||||
pam.lo: $(authdir)/pam.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/pam.c
|
||||
parse.lo: $(srcdir)/parse.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/parse.h $(incdir)/lbuf.h $(srcdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/parse.c
|
||||
passwd.lo: $(authdir)/passwd.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/passwd.c
|
||||
plugin_error.lo: $(srcdir)/plugin_error.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h $(incdir)/alloc.h $(incdir)/error.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/plugin_error.c
|
||||
pwutil.lo: $(srcdir)/pwutil.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/redblack.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/pwutil.c
|
||||
pwutil.lo: $(srcdir)/pwutil.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/redblack.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/pwutil.c
|
||||
redblack.lo: $(srcdir)/redblack.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(incdir)/alloc.h $(srcdir)/redblack.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/redblack.c
|
||||
redblack.lo: $(srcdir)/redblack.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(incdir)/alloc.h $(srcdir)/redblack.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/redblack.c
|
||||
rfc1938.lo: $(authdir)/rfc1938.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/rfc1938.c
|
||||
secureware.lo: $(authdir)/secureware.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/secureware.c
|
||||
securid.lo: $(authdir)/securid.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/securid.c
|
||||
securid5.lo: $(authdir)/securid5.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/securid5.c
|
||||
set_perms.lo: $(srcdir)/set_perms.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/set_perms.c
|
||||
sia.lo: $(authdir)/sia.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/sia.c
|
||||
sudo_auth.lo: $(authdir)/sudo_auth.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h $(srcdir)/insults.h \
|
||||
$(srcdir)/ins_2001.h $(srcdir)/ins_goons.h \
|
||||
$(srcdir)/ins_classic.h $(srcdir)/ins_csops.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(authdir)/sudo_auth.c
|
||||
sudo_nss.lo: $(srcdir)/sudo_nss.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(incdir)/lbuf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo_nss.c
|
||||
sudoers.lo: $(srcdir)/sudoers.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(incdir)/lbuf.h $(srcdir)/interfaces.h \
|
||||
$(srcdir)/sudoers_version.h $(srcdir)/auth/sudo_auth.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudoers.c
|
||||
sudoreplay.o: $(srcdir)/sudoreplay.c $(top_builddir)/config.h \
|
||||
$(top_srcdir)/compat/timespec.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/alloc.h $(incdir)/error.h \
|
||||
$(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudoreplay.c
|
||||
testsudoers.o: $(srcdir)/testsudoers.c $(top_builddir)/config.h \
|
||||
$(srcdir)/tsgetgrpw.h $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/interfaces.h $(srcdir)/parse.h $(srcdir)/gram.h \
|
||||
$(top_srcdir)/compat/fnmatch.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/testsudoers.c
|
||||
timestr.lo: $(srcdir)/timestr.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/timestr.c
|
||||
toke.lo: $(devdir)/toke.c $(top_builddir)/config.h $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h $(incdir)/missing.h \
|
||||
$(incdir)/error.h $(incdir)/alloc.h $(incdir)/list.h \
|
||||
$(incdir)/fileops.h $(srcdir)/defaults.h $(srcdir)/def_data.h \
|
||||
$(srcdir)/logging.h $(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h \
|
||||
$(incdir)/gettext.h $(srcdir)/parse.h $(srcdir)/toke.h $(srcdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(devdir)/toke.c
|
||||
toke_util.lo: $(srcdir)/toke_util.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h $(srcdir)/parse.h \
|
||||
$(srcdir)/toke.h $(srcdir)/gram.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/toke_util.c
|
||||
tsgetgrpw.o: $(srcdir)/tsgetgrpw.c $(top_builddir)/config.h \
|
||||
$(srcdir)/tsgetgrpw.h $(top_builddir)/config.h \
|
||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||
$(incdir)/list.h $(incdir)/fileops.h $(srcdir)/defaults.h \
|
||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/tsgetgrpw.c
|
||||
visudo.o: $(srcdir)/visudo.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||
$(srcdir)/defaults.h $(srcdir)/def_data.h $(srcdir)/logging.h \
|
||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||
$(srcdir)/interfaces.h $(srcdir)/parse.h $(srcdir)/redblack.h \
|
||||
$(incdir)/gettext.h $(srcdir)/sudoers_version.h $(srcdir)/gram.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/visudo.c
|
||||
|
123
src/Makefile.in
123
src/Makefile.in
@ -39,7 +39,7 @@ LT_LIBS = $(top_builddir)/common/libcommon.la $(LIBOBJDIR)libreplace.la
|
||||
LIBS = @LIBS@ @SUDO_LIBS@ @GETGROUPS_LIB@ @NET_LIBS@ @LIBINTL@ $(LT_LIBS)
|
||||
|
||||
# C preprocessor flags
|
||||
CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(srcdir) -I. @CPPFLAGS@
|
||||
CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(srcdir) -I$(top_srcdir) -I. @CPPFLAGS@
|
||||
|
||||
# Usually -O and/or -g
|
||||
CFLAGS = @CFLAGS@
|
||||
@ -96,11 +96,6 @@ XGETTEXT_OPTS = -k_ -kN_ -dsudo --copyright-holder="Todd C. Miller" \
|
||||
--flag easprintf:3:c-format --flag lbuf_append:2:c-format \
|
||||
--flag lbuf_append_quoted:3:c-format --foreign-user
|
||||
|
||||
SUDODEP = $(srcdir)/sudo.h $(incdir)/sudo_plugin.h $(incdir)/alloc.h \
|
||||
$(incdir)/error.h $(incdir)/list.h $(incdir)/missing.h \
|
||||
$(incdir)/gettext.h $(top_builddir)/pathnames.h \
|
||||
$(top_builddir)/config.h
|
||||
|
||||
all: $(PROGS)
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in
|
||||
@ -123,43 +118,6 @@ libsudo_noexec.la: sudo_noexec.lo
|
||||
sesh: sesh.o
|
||||
$(CC) -o $@ sesh.o
|
||||
|
||||
# Dependencies
|
||||
# XXX - SUDODEP is overkill for some of these
|
||||
conversation.o: $(srcdir)/conversation.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/conversation.c
|
||||
error.o: $(srcdir)/error.c $(incdir)/error.h $(incdir)/missing.h $(incdir)/gettext.h $(top_builddir)/config.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/error.c
|
||||
exec.o: $(srcdir)/exec.c $(SUDODEP) $(srcdir)/sudo_exec.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/exec.c
|
||||
exec_pty.o: $(srcdir)/exec_pty.c $(SUDODEP) $(srcdir)/sudo_exec.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/exec_pty.c
|
||||
get_pty.o: $(srcdir)/get_pty.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/get_pty.c
|
||||
net_ifs.o: $(srcdir)/net_ifs.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/net_ifs.c
|
||||
load_plugins.o: $(srcdir)/load_plugins.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/load_plugins.c
|
||||
parse_args.o: $(srcdir)/parse_args.c sudo_usage.h $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/parse_args.c
|
||||
preload.o: $(srcdir)/preload.c $(incdir)/sudo_plugin.h $(top_builddir)/config.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/preload.c
|
||||
selinux.o: $(srcdir)/selinux.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/selinux.c
|
||||
sesh.o: $(srcdir)/sesh.c $(incdir)/missing.h $(incdir)/gettext.h $(top_builddir)/config.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sesh.c
|
||||
sudo.o: $(srcdir)/sudo.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo.c
|
||||
sudo_edit.o: $(srcdir)/sudo_edit.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo_edit.c
|
||||
sudo_noexec.lo: $(srcdir)/sudo_noexec.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo_noexec.c
|
||||
tgetpass.o: $(srcdir)/tgetpass.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/tgetpass.c
|
||||
ttysize.o: $(srcdir)/ttysize.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/ttysize.c
|
||||
utmp.o: $(srcdir)/utmp.c $(SUDODEP)
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/utmp.c
|
||||
|
||||
update-po:
|
||||
@echo "Updating $(POTFILE)"; \
|
||||
$(XGETTEXT) $(XGETTEXT_OPTS) $(top_srcdir)/src/*c $(top_srcdir)/common/*c $(top_srcdir)/compat/*c -o $(POTFILE)
|
||||
@ -236,3 +194,82 @@ realclean: distclean
|
||||
rm -f TAGS tags
|
||||
|
||||
cleandir: realclean
|
||||
|
||||
# Autogenerated dependencies, do not modify
|
||||
conversation.o: $(srcdir)/conversation.c $(top_builddir)/config.h \
|
||||
$(srcdir)/sudo.h $(top_builddir)/pathnames.h \
|
||||
$(incdir)/missing.h $(incdir)/alloc.h $(incdir)/error.h \
|
||||
$(incdir)/fileops.h $(incdir)/list.h $(incdir)/gettext.h \
|
||||
$(incdir)/sudo_plugin.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/conversation.c
|
||||
error.o: $(srcdir)/error.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(incdir)/error.h $(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/error.c
|
||||
exec.o: $(srcdir)/exec.c $(top_builddir)/config.h $(srcdir)/sudo.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/alloc.h \
|
||||
$(incdir)/error.h $(incdir)/fileops.h $(incdir)/list.h \
|
||||
$(incdir)/gettext.h $(srcdir)/sudo_exec.h $(incdir)/sudo_plugin.h \
|
||||
$(srcdir)/sudo_plugin_int.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/exec.c
|
||||
exec_pty.o: $(srcdir)/exec_pty.c $(top_builddir)/config.h $(srcdir)/sudo.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/alloc.h \
|
||||
$(incdir)/error.h $(incdir)/fileops.h $(incdir)/list.h \
|
||||
$(incdir)/gettext.h $(srcdir)/sudo_exec.h $(incdir)/sudo_plugin.h \
|
||||
$(srcdir)/sudo_plugin_int.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/exec_pty.c
|
||||
get_pty.o: $(srcdir)/get_pty.c $(top_builddir)/config.h $(srcdir)/sudo.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/alloc.h \
|
||||
$(incdir)/error.h $(incdir)/fileops.h $(incdir)/list.h \
|
||||
$(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/get_pty.c
|
||||
load_plugins.o: $(srcdir)/load_plugins.c $(top_builddir)/config.h \
|
||||
$(top_srcdir)/compat/dlfcn.h $(srcdir)/sudo.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h \
|
||||
$(incdir)/alloc.h $(incdir)/error.h $(incdir)/fileops.h \
|
||||
$(incdir)/list.h $(incdir)/gettext.h $(incdir)/sudo_plugin.h \
|
||||
$(srcdir)/sudo_plugin_int.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/load_plugins.c
|
||||
net_ifs.o: $(srcdir)/net_ifs.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(incdir)/alloc.h $(incdir)/error.h $(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/net_ifs.c
|
||||
parse_args.o: $(srcdir)/parse_args.c $(top_builddir)/config.h ./sudo_usage.h \
|
||||
$(srcdir)/sudo.h $(top_builddir)/pathnames.h $(incdir)/missing.h \
|
||||
$(incdir)/alloc.h $(incdir)/error.h $(incdir)/fileops.h \
|
||||
$(incdir)/list.h $(incdir)/gettext.h $(incdir)/lbuf.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/parse_args.c
|
||||
preload.o: $(srcdir)/preload.c $(top_builddir)/config.h $(incdir)/sudo_plugin.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/preload.c
|
||||
selinux.o: $(srcdir)/selinux.c $(top_builddir)/config.h $(srcdir)/sudo.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/alloc.h \
|
||||
$(incdir)/error.h $(incdir)/fileops.h $(incdir)/list.h \
|
||||
$(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/selinux.c
|
||||
sesh.o: $(srcdir)/sesh.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||
$(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sesh.c
|
||||
sudo.o: $(srcdir)/sudo.c $(top_builddir)/config.h $(srcdir)/sudo.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/alloc.h \
|
||||
$(incdir)/error.h $(incdir)/fileops.h $(incdir)/list.h \
|
||||
$(incdir)/gettext.h $(incdir)/sudo_plugin.h \
|
||||
$(srcdir)/sudo_plugin_int.h ./sudo_usage.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo.c
|
||||
sudo_edit.o: $(srcdir)/sudo_edit.c $(top_builddir)/config.h $(srcdir)/sudo.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/alloc.h \
|
||||
$(incdir)/error.h $(incdir)/fileops.h $(incdir)/list.h \
|
||||
$(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo_edit.c
|
||||
sudo_noexec.lo: $(srcdir)/sudo_noexec.c $(top_builddir)/config.h \
|
||||
$(incdir)/missing.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sudo_noexec.c
|
||||
tgetpass.o: $(srcdir)/tgetpass.c $(top_builddir)/config.h $(srcdir)/sudo.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/alloc.h \
|
||||
$(incdir)/error.h $(incdir)/fileops.h $(incdir)/list.h \
|
||||
$(incdir)/gettext.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/tgetpass.c
|
||||
ttysize.o: $(srcdir)/ttysize.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/ttysize.c
|
||||
utmp.o: $(srcdir)/utmp.c $(top_builddir)/config.h $(srcdir)/sudo.h \
|
||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/alloc.h \
|
||||
$(incdir)/error.h $(incdir)/fileops.h $(incdir)/list.h \
|
||||
$(incdir)/gettext.h $(srcdir)/sudo_exec.h
|
||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/utmp.c
|
||||
|
@ -57,38 +57,6 @@ Makefile: $(srcdir)/Makefile.in
|
||||
libz.la: $(LTOBJS)
|
||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(LTOBJS) -no-install
|
||||
|
||||
# Dependencies
|
||||
adler32.lo: $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/adler32.c
|
||||
compress.lo: $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/compress.c
|
||||
crc32.lo: $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h $(srcdir)/crc32.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/crc32.c
|
||||
deflate.lo: $(srcdir)/deflate.h $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/deflate.c
|
||||
gzclose.lo: $(srcdir)/zlib.h ./zconf.h $(srcdir)/gzguts.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/gzclose.c
|
||||
gzlib.lo: $(srcdir)/zlib.h ./zconf.h $(srcdir)/gzguts.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/gzlib.c
|
||||
gzread.lo: $(srcdir)/zlib.h ./zconf.h $(srcdir)/gzguts.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/gzread.c
|
||||
gzwrite.lo: $(srcdir)/zlib.h ./zconf.h $(srcdir)/gzguts.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/gzwrite.c
|
||||
infback.lo: $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h $(srcdir)/inftrees.h $(srcdir)/inflate.h $(srcdir)/inffast.h $(srcdir)/inffixed.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/infback.c
|
||||
inffast.lo: $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h $(srcdir)/inftrees.h $(srcdir)/inflate.h $(srcdir)/inffast.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/inffast.c
|
||||
inflate.lo: $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h $(srcdir)/inftrees.h $(srcdir)/inflate.h $(srcdir)/inffast.h $(srcdir)/inffixed.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/inflate.c
|
||||
inftrees.lo: $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h $(srcdir)/inftrees.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/inftrees.c
|
||||
trees.lo: $(srcdir)/deflate.h $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h $(srcdir)/trees.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/trees.c
|
||||
uncompr.lo: $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/uncompr.c
|
||||
zutil.lo: $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/zutil.c
|
||||
|
||||
update-po:
|
||||
|
||||
compile-po:
|
||||
@ -127,3 +95,44 @@ realclean: distclean
|
||||
rm -f TAGS tags
|
||||
|
||||
cleandir: realclean
|
||||
|
||||
# Autogenerated dependencies, do not modify
|
||||
adler32.lo: $(srcdir)/adler32.c $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/adler32.c
|
||||
compress.lo: $(srcdir)/compress.c $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/compress.c
|
||||
crc32.lo: $(srcdir)/crc32.c $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h \
|
||||
$(srcdir)/crc32.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/crc32.c
|
||||
deflate.lo: $(srcdir)/deflate.c $(srcdir)/deflate.h $(srcdir)/zutil.h \
|
||||
$(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/deflate.c
|
||||
gzclose.lo: $(srcdir)/gzclose.c $(srcdir)/gzguts.h $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/gzclose.c
|
||||
gzlib.lo: $(srcdir)/gzlib.c $(srcdir)/gzguts.h $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/gzlib.c
|
||||
gzread.lo: $(srcdir)/gzread.c $(srcdir)/gzguts.h $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/gzread.c
|
||||
gzwrite.lo: $(srcdir)/gzwrite.c $(srcdir)/gzguts.h $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/gzwrite.c
|
||||
infback.lo: $(srcdir)/infback.c $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h \
|
||||
$(srcdir)/inftrees.h $(srcdir)/inflate.h $(srcdir)/inffast.h \
|
||||
$(srcdir)/inffixed.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/infback.c
|
||||
inffast.lo: $(srcdir)/inffast.c $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h \
|
||||
$(srcdir)/inftrees.h $(srcdir)/inflate.h $(srcdir)/inffast.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/inffast.c
|
||||
inflate.lo: $(srcdir)/inflate.c $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h \
|
||||
$(srcdir)/inftrees.h $(srcdir)/inflate.h $(srcdir)/inffast.h \
|
||||
$(srcdir)/inffixed.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/inflate.c
|
||||
inftrees.lo: $(srcdir)/inftrees.c $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h \
|
||||
$(srcdir)/inftrees.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/inftrees.c
|
||||
trees.lo: $(srcdir)/trees.c $(srcdir)/deflate.h $(srcdir)/zutil.h \
|
||||
$(srcdir)/zlib.h ./zconf.h $(srcdir)/trees.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/trees.c
|
||||
uncompr.lo: $(srcdir)/uncompr.c $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/uncompr.c
|
||||
zutil.lo: $(srcdir)/zutil.c $(srcdir)/zutil.h $(srcdir)/zlib.h ./zconf.h
|
||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/zutil.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user