Add dependency for siglist.lo in compat. This is a generated file so
"make depend" needs to depend on it.
This commit is contained in:
@@ -78,7 +78,10 @@ install install-doc: config.status ChangeLog pre-install
|
|||||||
autoconf:
|
autoconf:
|
||||||
autoconf -I m4
|
autoconf -I m4
|
||||||
|
|
||||||
depend:
|
siglist.c:
|
||||||
|
(cd compat && exec $(MAKE) $@)
|
||||||
|
|
||||||
|
depend: siglist.c
|
||||||
@if test "$(srcdir)" != "."; then \
|
@if test "$(srcdir)" != "."; then \
|
||||||
echo "make depend only supported in the source directory"; \
|
echo "make depend only supported in the source directory"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
|
@@ -163,6 +163,8 @@ nanosleep.lo: $(srcdir)/nanosleep.c $(top_builddir)/config.h \
|
|||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/nanosleep.c
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/nanosleep.c
|
||||||
setenv.lo: $(srcdir)/setenv.c $(top_builddir)/config.h $(incdir)/missing.h
|
setenv.lo: $(srcdir)/setenv.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/setenv.c
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/setenv.c
|
||||||
|
siglist.lo: siglist.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) siglist.c
|
||||||
snprintf.lo: $(srcdir)/snprintf.c $(top_builddir)/config.h $(incdir)/missing.h
|
snprintf.lo: $(srcdir)/snprintf.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/snprintf.c
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/snprintf.c
|
||||||
strlcat.lo: $(srcdir)/strlcat.c $(top_builddir)/config.h $(incdir)/missing.h
|
strlcat.lo: $(srcdir)/strlcat.c $(top_builddir)/config.h $(incdir)/missing.h
|
||||||
|
13
mkdep.pl
13
mkdep.pl
@@ -42,14 +42,14 @@ sub mkdep {
|
|||||||
$makefile =~ s:\@SUDOERS_OBJS\@:bsm_audit.lo linux_audit.lo ldap.lo plugin_error.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
|
# 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:\@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:;
|
$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 siglist.lo snprintf.lo strlcat.lo strlcpy.lo strsignal.lo unsetenv.lo utimes.lo:;
|
||||||
|
|
||||||
# Parse OBJS lines
|
# Parse OBJS lines
|
||||||
my @objs;
|
my %objs;
|
||||||
while ($makefile =~ /^[A-Z0-9_]*OBJS\s*=\s*(.*)/mg) {
|
while ($makefile =~ /^[A-Z0-9_]*OBJS\s*=\s*(.*)/mg) {
|
||||||
foreach (split/\s+/, $1) {
|
foreach (split/\s+/, $1) {
|
||||||
next if /^\$[\(\{].*[\)\}]$/; # skip included vars for now
|
next if /^\$[\(\{].*[\)\}]$/; # skip included vars for now
|
||||||
push(@objs, $_);
|
$objs{$_} = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ sub mkdep {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Do .lo files first
|
# Do .lo files first
|
||||||
foreach my $obj (sort @objs) {
|
foreach my $obj (sort keys %objs) {
|
||||||
next unless $obj =~ /(\S+)\.(l?o)$/;
|
next unless $obj =~ /(\S+)\.(l?o)$/;
|
||||||
if ($2 eq "o" && exists($srcs{"$1.lo"})) {
|
if ($2 eq "o" && exists($srcs{"$1.lo"})) {
|
||||||
# If we have both .lo and .o files, make the .o depend on the .lo
|
# If we have both .lo and .o files, make the .o depend on the .lo
|
||||||
@@ -135,6 +135,11 @@ sub find_depends {
|
|||||||
my $src = $_[0];
|
my $src = $_[0];
|
||||||
my ($deps, $code, @headers);
|
my ($deps, $code, @headers);
|
||||||
|
|
||||||
|
if ($src !~ /\//) {
|
||||||
|
# XXX - want build dir not src dir
|
||||||
|
$src = "$dir_vars{'srcdir'}/$src";
|
||||||
|
}
|
||||||
|
|
||||||
# resolve $(srcdir) etc.
|
# resolve $(srcdir) etc.
|
||||||
foreach (keys %dir_vars) {
|
foreach (keys %dir_vars) {
|
||||||
$src =~ s/\$[\(\{]$_[\)\}]/$dir_vars{$_}/g;
|
$src =~ s/\$[\(\{]$_[\)\}]/$dir_vars{$_}/g;
|
||||||
|
@@ -454,15 +454,6 @@ env.lo: $(srcdir)/env.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
|||||||
error.o: $(top_srcdir)/src/error.c $(top_builddir)/config.h \
|
error.o: $(top_srcdir)/src/error.c $(top_builddir)/config.h \
|
||||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/gettext.h
|
$(incdir)/missing.h $(incdir)/error.h $(incdir)/gettext.h
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(top_srcdir)/src/error.c
|
$(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 \
|
find_path.lo: $(srcdir)/find_path.c $(top_builddir)/config.h \
|
||||||
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
$(srcdir)/sudoers.h $(top_builddir)/pathnames.h \
|
||||||
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
$(incdir)/missing.h $(incdir)/error.h $(incdir)/alloc.h \
|
||||||
@@ -525,13 +516,6 @@ iolog_path.lo: $(srcdir)/iolog_path.c $(top_builddir)/config.h \
|
|||||||
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
$(srcdir)/def_data.h $(srcdir)/logging.h $(srcdir)/sudo_nss.h \
|
||||||
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
$(incdir)/sudo_plugin.h $(incdir)/gettext.h
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/iolog_path.c
|
$(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 \
|
kerb4.lo: $(authdir)/kerb4.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
||||||
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
$(top_builddir)/pathnames.h $(incdir)/missing.h $(incdir)/error.h \
|
||||||
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
$(incdir)/alloc.h $(incdir)/list.h $(incdir)/fileops.h \
|
||||||
@@ -603,16 +587,6 @@ pwutil.lo: $(srcdir)/pwutil.c $(top_builddir)/config.h $(srcdir)/sudoers.h \
|
|||||||
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
$(srcdir)/sudo_nss.h $(incdir)/sudo_plugin.h $(incdir)/gettext.h \
|
||||||
$(srcdir)/redblack.h
|
$(srcdir)/redblack.h
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/pwutil.c
|
$(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 \
|
redblack.lo: $(srcdir)/redblack.c $(top_builddir)/config.h $(incdir)/missing.h \
|
||||||
$(incdir)/alloc.h $(srcdir)/redblack.h
|
$(incdir)/alloc.h $(srcdir)/redblack.h
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/redblack.c
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/redblack.c
|
||||||
|
Reference in New Issue
Block a user