Top level directory reorg
Move src/po -> po Combine common and compat -> lib/util Move zlib -> lib/zlib
This commit is contained in:
@@ -30,10 +30,10 @@ Makefile$
|
|||||||
^src/check_ttyname$
|
^src/check_ttyname$
|
||||||
^src/sudo_usage\.h$
|
^src/sudo_usage\.h$
|
||||||
|
|
||||||
^compat/mksiglist$
|
^lib/util/mksiglist$
|
||||||
^compat/mksigname$
|
^lib/util/mksigname$
|
||||||
^compat/siglist\.c$
|
^lib/util/siglist\.c$
|
||||||
^compat/signame\.c$
|
^lib/util/signame\.c$
|
||||||
|
|
||||||
^plugins/sudoers/(sudoers|sudoreplay|testsudoers|visudo|check_[a-z_]+)$
|
^plugins/sudoers/(sudoers|sudoreplay|testsudoers|visudo|check_[a-z_]+)$
|
||||||
^plugins/sudoers/.*\.(out|toke|err)$
|
^plugins/sudoers/.*\.(out|toke|err)$
|
||||||
|
351
MANIFEST
351
MANIFEST
@@ -8,103 +8,6 @@ README
|
|||||||
README.LDAP
|
README.LDAP
|
||||||
aclocal.m4
|
aclocal.m4
|
||||||
autogen.sh
|
autogen.sh
|
||||||
common/Makefile.in
|
|
||||||
common/aix.c
|
|
||||||
common/alloc.c
|
|
||||||
common/atobool.c
|
|
||||||
common/atoid.c
|
|
||||||
common/atomode.c
|
|
||||||
common/event.c
|
|
||||||
common/event_poll.c
|
|
||||||
common/event_select.c
|
|
||||||
common/fatal.c
|
|
||||||
common/fileops.c
|
|
||||||
common/fmt_string.c
|
|
||||||
common/gidlist.c
|
|
||||||
common/lbuf.c
|
|
||||||
common/progname.c
|
|
||||||
common/regress/atofoo/atofoo_test.c
|
|
||||||
common/regress/sudo_conf/conf_test.c
|
|
||||||
common/regress/sudo_conf/test1.in
|
|
||||||
common/regress/sudo_conf/test1.out.ok
|
|
||||||
common/regress/sudo_conf/test2.in
|
|
||||||
common/regress/sudo_conf/test2.out.ok
|
|
||||||
common/regress/sudo_conf/test3.in
|
|
||||||
common/regress/sudo_conf/test3.out.ok
|
|
||||||
common/regress/sudo_conf/test4.in
|
|
||||||
common/regress/sudo_conf/test4.out.ok
|
|
||||||
common/regress/sudo_conf/test5.err.ok
|
|
||||||
common/regress/sudo_conf/test5.in
|
|
||||||
common/regress/sudo_conf/test5.out.ok
|
|
||||||
common/regress/sudo_conf/test6.in
|
|
||||||
common/regress/sudo_conf/test6.out.ok
|
|
||||||
common/regress/sudo_parseln/parseln_test.c
|
|
||||||
common/regress/sudo_parseln/test1.in
|
|
||||||
common/regress/sudo_parseln/test1.out.ok
|
|
||||||
common/regress/sudo_parseln/test2.in
|
|
||||||
common/regress/sudo_parseln/test2.out.ok
|
|
||||||
common/regress/sudo_parseln/test3.in
|
|
||||||
common/regress/sudo_parseln/test3.out.ok
|
|
||||||
common/regress/sudo_parseln/test4.in
|
|
||||||
common/regress/sudo_parseln/test4.out.ok
|
|
||||||
common/regress/sudo_parseln/test5.in
|
|
||||||
common/regress/sudo_parseln/test5.out.ok
|
|
||||||
common/regress/sudo_parseln/test6.in
|
|
||||||
common/regress/sudo_parseln/test6.out.ok
|
|
||||||
common/regress/tailq/hltq_test.c
|
|
||||||
common/secure_path.c
|
|
||||||
common/setgroups.c
|
|
||||||
common/sudo_conf.c
|
|
||||||
common/sudo_debug.c
|
|
||||||
common/sudo_dso.c
|
|
||||||
common/sudo_printf.c
|
|
||||||
common/term.c
|
|
||||||
common/ttysize.c
|
|
||||||
compat/Makefile.in
|
|
||||||
compat/charclass.h
|
|
||||||
compat/clock_gettime.c
|
|
||||||
compat/closefrom.c
|
|
||||||
compat/endian.h
|
|
||||||
compat/fnmatch.c
|
|
||||||
compat/fnmatch.h
|
|
||||||
compat/getaddrinfo.c
|
|
||||||
compat/getaddrinfo.h
|
|
||||||
compat/getcwd.c
|
|
||||||
compat/getgrouplist.c
|
|
||||||
compat/getline.c
|
|
||||||
compat/getopt.h
|
|
||||||
compat/getopt_long.c
|
|
||||||
compat/glob.c
|
|
||||||
compat/glob.h
|
|
||||||
compat/inet_pton.c
|
|
||||||
compat/isblank.c
|
|
||||||
compat/memrchr.c
|
|
||||||
compat/memset_s.c
|
|
||||||
compat/mksiglist.c
|
|
||||||
compat/mksiglist.h
|
|
||||||
compat/mksigname.c
|
|
||||||
compat/mksigname.h
|
|
||||||
compat/mktemp.c
|
|
||||||
compat/nss_dbdefs.h
|
|
||||||
compat/pw_dup.c
|
|
||||||
compat/regress/fnmatch/fnm_test.c
|
|
||||||
compat/regress/fnmatch/fnm_test.in
|
|
||||||
compat/regress/glob/files
|
|
||||||
compat/regress/glob/globtest.c
|
|
||||||
compat/regress/glob/globtest.in
|
|
||||||
compat/sha2.c
|
|
||||||
compat/sha2.h
|
|
||||||
compat/sig2str.c
|
|
||||||
compat/siglist.in
|
|
||||||
compat/snprintf.c
|
|
||||||
compat/stdbool.h
|
|
||||||
compat/strlcat.c
|
|
||||||
compat/strlcpy.c
|
|
||||||
compat/strsignal.c
|
|
||||||
compat/strtonum.c
|
|
||||||
compat/timespec.h
|
|
||||||
compat/utime.h
|
|
||||||
compat/utimes.c
|
|
||||||
config.guess
|
config.guess
|
||||||
config.h.in
|
config.h.in
|
||||||
config.sub
|
config.sub
|
||||||
@@ -148,6 +51,19 @@ doc/visudo.man.in
|
|||||||
doc/visudo.mdoc.in
|
doc/visudo.mdoc.in
|
||||||
include/Makefile.in
|
include/Makefile.in
|
||||||
include/alloc.h
|
include/alloc.h
|
||||||
|
include/compat/charclass.h/
|
||||||
|
include/compat/endian.h/
|
||||||
|
include/compat/fnmatch.h/
|
||||||
|
include/compat/getaddrinfo.h/
|
||||||
|
include/compat/getopt.h/
|
||||||
|
include/compat/glob.h/
|
||||||
|
include/compat/mksiglist.h/
|
||||||
|
include/compat/mksigname.h/
|
||||||
|
include/compat/nss_dbdefs.h/
|
||||||
|
include/compat/sha2.h/
|
||||||
|
include/compat/stdbool.h/
|
||||||
|
include/compat/timespec.h/
|
||||||
|
include/compat/utime.h/
|
||||||
include/fatal.h
|
include/fatal.h
|
||||||
include/fileops.h
|
include/fileops.h
|
||||||
include/gettext.h
|
include/gettext.h
|
||||||
@@ -165,6 +81,116 @@ indent.pro
|
|||||||
init.d/aix.sh.in
|
init.d/aix.sh.in
|
||||||
init.d/hpux.sh.in
|
init.d/hpux.sh.in
|
||||||
install-sh
|
install-sh
|
||||||
|
lib/util/Makefile.in
|
||||||
|
lib/util/aix.c
|
||||||
|
lib/util/alloc.c
|
||||||
|
lib/util/atobool.c
|
||||||
|
lib/util/atoid.c
|
||||||
|
lib/util/atomode.c
|
||||||
|
lib/util/clock_gettime.c
|
||||||
|
lib/util/closefrom.c
|
||||||
|
lib/util/event.c
|
||||||
|
lib/util/event_poll.c
|
||||||
|
lib/util/event_select.c
|
||||||
|
lib/util/fatal.c
|
||||||
|
lib/util/fileops.c
|
||||||
|
lib/util/fmt_string.c
|
||||||
|
lib/util/fnmatch.c
|
||||||
|
lib/util/getaddrinfo.c
|
||||||
|
lib/util/getcwd.c
|
||||||
|
lib/util/getgrouplist.c
|
||||||
|
lib/util/getline.c
|
||||||
|
lib/util/getopt_long.c
|
||||||
|
lib/util/gidlist.c
|
||||||
|
lib/util/glob.c
|
||||||
|
lib/util/inet_pton.c
|
||||||
|
lib/util/isblank.c
|
||||||
|
lib/util/lbuf.c
|
||||||
|
lib/util/memrchr.c
|
||||||
|
lib/util/memset_s.c
|
||||||
|
lib/util/mksiglist.c
|
||||||
|
lib/util/mksigname.c
|
||||||
|
lib/util/mktemp.c
|
||||||
|
lib/util/progname.c
|
||||||
|
lib/util/pw_dup.c
|
||||||
|
lib/util/regress/atofoo/atofoo_test.c
|
||||||
|
lib/util/regress/fnmatch/fnm_test.c
|
||||||
|
lib/util/regress/fnmatch/fnm_test.in
|
||||||
|
lib/util/regress/glob/files
|
||||||
|
lib/util/regress/glob/globtest.c
|
||||||
|
lib/util/regress/glob/globtest.in
|
||||||
|
lib/util/regress/sudo_conf/conf_test.c
|
||||||
|
lib/util/regress/sudo_conf/test1.in
|
||||||
|
lib/util/regress/sudo_conf/test1.out.ok
|
||||||
|
lib/util/regress/sudo_conf/test2.in
|
||||||
|
lib/util/regress/sudo_conf/test2.out.ok
|
||||||
|
lib/util/regress/sudo_conf/test3.in
|
||||||
|
lib/util/regress/sudo_conf/test3.out.ok
|
||||||
|
lib/util/regress/sudo_conf/test4.in
|
||||||
|
lib/util/regress/sudo_conf/test4.out.ok
|
||||||
|
lib/util/regress/sudo_conf/test5.err.ok
|
||||||
|
lib/util/regress/sudo_conf/test5.in
|
||||||
|
lib/util/regress/sudo_conf/test5.out.ok
|
||||||
|
lib/util/regress/sudo_conf/test6.in
|
||||||
|
lib/util/regress/sudo_conf/test6.out.ok
|
||||||
|
lib/util/regress/sudo_parseln/parseln_test.c
|
||||||
|
lib/util/regress/sudo_parseln/test1.in
|
||||||
|
lib/util/regress/sudo_parseln/test1.out.ok
|
||||||
|
lib/util/regress/sudo_parseln/test2.in
|
||||||
|
lib/util/regress/sudo_parseln/test2.out.ok
|
||||||
|
lib/util/regress/sudo_parseln/test3.in
|
||||||
|
lib/util/regress/sudo_parseln/test3.out.ok
|
||||||
|
lib/util/regress/sudo_parseln/test4.in
|
||||||
|
lib/util/regress/sudo_parseln/test4.out.ok
|
||||||
|
lib/util/regress/sudo_parseln/test5.in
|
||||||
|
lib/util/regress/sudo_parseln/test5.out.ok
|
||||||
|
lib/util/regress/sudo_parseln/test6.in
|
||||||
|
lib/util/regress/sudo_parseln/test6.out.ok
|
||||||
|
lib/util/regress/tailq/hltq_test.c
|
||||||
|
lib/util/secure_path.c
|
||||||
|
lib/util/setgroups.c
|
||||||
|
lib/util/sha2.c
|
||||||
|
lib/util/sig2str.c
|
||||||
|
lib/util/siglist.in
|
||||||
|
lib/util/snprintf.c
|
||||||
|
lib/util/strlcat.c
|
||||||
|
lib/util/strlcpy.c
|
||||||
|
lib/util/strsignal.c
|
||||||
|
lib/util/strtonum.c
|
||||||
|
lib/util/sudo_conf.c
|
||||||
|
lib/util/sudo_debug.c
|
||||||
|
lib/util/sudo_dso.c
|
||||||
|
lib/util/sudo_printf.c
|
||||||
|
lib/util/term.c
|
||||||
|
lib/util/ttysize.c
|
||||||
|
lib/util/utimes.c
|
||||||
|
lib/zlib/Makefile.in
|
||||||
|
lib/zlib/adler32.c
|
||||||
|
lib/zlib/compress.c
|
||||||
|
lib/zlib/crc32.c
|
||||||
|
lib/zlib/crc32.h
|
||||||
|
lib/zlib/deflate.c
|
||||||
|
lib/zlib/deflate.h
|
||||||
|
lib/zlib/gzclose.c
|
||||||
|
lib/zlib/gzguts.h
|
||||||
|
lib/zlib/gzlib.c
|
||||||
|
lib/zlib/gzread.c
|
||||||
|
lib/zlib/gzwrite.c
|
||||||
|
lib/zlib/infback.c
|
||||||
|
lib/zlib/inffast.c
|
||||||
|
lib/zlib/inffast.h
|
||||||
|
lib/zlib/inffixed.h
|
||||||
|
lib/zlib/inflate.c
|
||||||
|
lib/zlib/inflate.h
|
||||||
|
lib/zlib/inftrees.c
|
||||||
|
lib/zlib/inftrees.h
|
||||||
|
lib/zlib/trees.c
|
||||||
|
lib/zlib/trees.h
|
||||||
|
lib/zlib/uncompr.c
|
||||||
|
lib/zlib/zconf.h.in
|
||||||
|
lib/zlib/zlib.h
|
||||||
|
lib/zlib/zutil.c
|
||||||
|
lib/zlib/zutil.h
|
||||||
ltmain.sh
|
ltmain.sh
|
||||||
m4/ax_check_compile_flag.m4
|
m4/ax_check_compile_flag.m4
|
||||||
m4/ax_check_link_flag.m4
|
m4/ax_check_link_flag.m4
|
||||||
@@ -419,6 +445,58 @@ plugins/sudoers/visudo_json.c
|
|||||||
plugins/system_group/Makefile.in
|
plugins/system_group/Makefile.in
|
||||||
plugins/system_group/system_group.c
|
plugins/system_group/system_group.c
|
||||||
plugins/system_group/system_group.exp
|
plugins/system_group/system_group.exp
|
||||||
|
po/README
|
||||||
|
po/ca.mo
|
||||||
|
po/ca.po
|
||||||
|
po/cs.mo
|
||||||
|
po/cs.po
|
||||||
|
po/da.mo
|
||||||
|
po/da.po
|
||||||
|
po/de.mo
|
||||||
|
po/de.po
|
||||||
|
po/eo.mo
|
||||||
|
po/eo.po
|
||||||
|
po/es.mo
|
||||||
|
po/es.po
|
||||||
|
po/eu.mo
|
||||||
|
po/eu.po
|
||||||
|
po/fi.mo
|
||||||
|
po/fi.po
|
||||||
|
po/fr.mo
|
||||||
|
po/fr.po
|
||||||
|
po/gl.mo
|
||||||
|
po/gl.po
|
||||||
|
po/hr.mo
|
||||||
|
po/hr.po
|
||||||
|
po/it.mo
|
||||||
|
po/it.po
|
||||||
|
po/ja.mo
|
||||||
|
po/ja.po
|
||||||
|
po/nb.mo
|
||||||
|
po/nb.po
|
||||||
|
po/nl.mo
|
||||||
|
po/nl.po
|
||||||
|
po/pl.mo
|
||||||
|
po/pl.po
|
||||||
|
po/pt_BR.mo
|
||||||
|
po/pt_BR.po
|
||||||
|
po/ru.mo
|
||||||
|
po/ru.po
|
||||||
|
po/sl.mo
|
||||||
|
po/sl.po
|
||||||
|
po/sr.mo
|
||||||
|
po/sr.po
|
||||||
|
po/sudo.pot
|
||||||
|
po/sv.mo
|
||||||
|
po/sv.po
|
||||||
|
po/tr.mo
|
||||||
|
po/tr.po
|
||||||
|
po/uk.mo
|
||||||
|
po/uk.po
|
||||||
|
po/vi.mo
|
||||||
|
po/vi.po
|
||||||
|
po/zh_CN.mo
|
||||||
|
po/zh_CN.po
|
||||||
pp
|
pp
|
||||||
src/Makefile.in
|
src/Makefile.in
|
||||||
src/conversation.c
|
src/conversation.c
|
||||||
@@ -433,58 +511,6 @@ src/locale_stub.c
|
|||||||
src/net_ifs.c
|
src/net_ifs.c
|
||||||
src/openbsd.c
|
src/openbsd.c
|
||||||
src/parse_args.c
|
src/parse_args.c
|
||||||
src/po/README
|
|
||||||
src/po/ca.mo
|
|
||||||
src/po/ca.po
|
|
||||||
src/po/cs.mo
|
|
||||||
src/po/cs.po
|
|
||||||
src/po/da.mo
|
|
||||||
src/po/da.po
|
|
||||||
src/po/de.mo
|
|
||||||
src/po/de.po
|
|
||||||
src/po/eo.mo
|
|
||||||
src/po/eo.po
|
|
||||||
src/po/es.mo
|
|
||||||
src/po/es.po
|
|
||||||
src/po/eu.mo
|
|
||||||
src/po/eu.po
|
|
||||||
src/po/fi.mo
|
|
||||||
src/po/fi.po
|
|
||||||
src/po/fr.mo
|
|
||||||
src/po/fr.po
|
|
||||||
src/po/gl.mo
|
|
||||||
src/po/gl.po
|
|
||||||
src/po/hr.mo
|
|
||||||
src/po/hr.po
|
|
||||||
src/po/it.mo
|
|
||||||
src/po/it.po
|
|
||||||
src/po/ja.mo
|
|
||||||
src/po/ja.po
|
|
||||||
src/po/nb.mo
|
|
||||||
src/po/nb.po
|
|
||||||
src/po/nl.mo
|
|
||||||
src/po/nl.po
|
|
||||||
src/po/pl.mo
|
|
||||||
src/po/pl.po
|
|
||||||
src/po/pt_BR.mo
|
|
||||||
src/po/pt_BR.po
|
|
||||||
src/po/ru.mo
|
|
||||||
src/po/ru.po
|
|
||||||
src/po/sl.mo
|
|
||||||
src/po/sl.po
|
|
||||||
src/po/sr.mo
|
|
||||||
src/po/sr.po
|
|
||||||
src/po/sudo.pot
|
|
||||||
src/po/sv.mo
|
|
||||||
src/po/sv.po
|
|
||||||
src/po/tr.mo
|
|
||||||
src/po/tr.po
|
|
||||||
src/po/uk.mo
|
|
||||||
src/po/uk.po
|
|
||||||
src/po/vi.mo
|
|
||||||
src/po/vi.po
|
|
||||||
src/po/zh_CN.mo
|
|
||||||
src/po/zh_CN.po
|
|
||||||
src/preload.c
|
src/preload.c
|
||||||
src/preserve_fds.c
|
src/preserve_fds.c
|
||||||
src/regress/ttyname/check_ttyname.c
|
src/regress/ttyname/check_ttyname.c
|
||||||
@@ -503,30 +529,3 @@ src/tgetpass.c
|
|||||||
src/ttyname.c
|
src/ttyname.c
|
||||||
src/utmp.c
|
src/utmp.c
|
||||||
sudo.pp
|
sudo.pp
|
||||||
zlib/Makefile.in
|
|
||||||
zlib/adler32.c
|
|
||||||
zlib/compress.c
|
|
||||||
zlib/crc32.c
|
|
||||||
zlib/crc32.h
|
|
||||||
zlib/deflate.c
|
|
||||||
zlib/deflate.h
|
|
||||||
zlib/gzclose.c
|
|
||||||
zlib/gzguts.h
|
|
||||||
zlib/gzlib.c
|
|
||||||
zlib/gzread.c
|
|
||||||
zlib/gzwrite.c
|
|
||||||
zlib/infback.c
|
|
||||||
zlib/inffast.c
|
|
||||||
zlib/inffast.h
|
|
||||||
zlib/inffixed.h
|
|
||||||
zlib/inflate.c
|
|
||||||
zlib/inflate.h
|
|
||||||
zlib/inftrees.c
|
|
||||||
zlib/inftrees.h
|
|
||||||
zlib/trees.c
|
|
||||||
zlib/trees.h
|
|
||||||
zlib/uncompr.c
|
|
||||||
zlib/zconf.h.in
|
|
||||||
zlib/zlib.h
|
|
||||||
zlib/zutil.c
|
|
||||||
zlib/zutil.h
|
|
||||||
|
21
Makefile.in
21
Makefile.in
@@ -47,7 +47,7 @@ sudoers_gid = @SUDOERS_GID@
|
|||||||
sudoers_mode = @SUDOERS_MODE@
|
sudoers_mode = @SUDOERS_MODE@
|
||||||
shlib_mode = @SHLIB_MODE@
|
shlib_mode = @SHLIB_MODE@
|
||||||
|
|
||||||
SUBDIRS = compat common @ZLIB_SRC@ plugins/group_file plugins/sudoers \
|
SUBDIRS = lib/util @ZLIB_SRC@ plugins/group_file plugins/sudoers \
|
||||||
plugins/system_group src include doc
|
plugins/system_group src include doc
|
||||||
|
|
||||||
SAMPLES = plugins/sample
|
SAMPLES = plugins/sample
|
||||||
@@ -66,7 +66,7 @@ ECHO_C = @ECHO_C@
|
|||||||
|
|
||||||
# Message catalog support
|
# Message catalog support
|
||||||
NLS = @SUDO_NLS@
|
NLS = @SUDO_NLS@
|
||||||
POTFILES = src/po/sudo.pot plugins/sudoers/po/sudoers.pot
|
POTFILES = po/sudo.pot plugins/sudoers/po/sudoers.pot
|
||||||
LOCALEDIR_SUFFIX = @LOCALEDIR_SUFFIX@
|
LOCALEDIR_SUFFIX = @LOCALEDIR_SUFFIX@
|
||||||
MSGFMT = msgfmt
|
MSGFMT = msgfmt
|
||||||
MSGMERGE = msgmerge
|
MSGMERGE = msgmerge
|
||||||
@@ -133,26 +133,25 @@ uninstall-nls:
|
|||||||
done
|
done
|
||||||
|
|
||||||
siglist.c signame.c:
|
siglist.c signame.c:
|
||||||
(cd compat && exec $(MAKE) $@)
|
(cd lib/util && exec $(MAKE) $@)
|
||||||
|
|
||||||
depend: siglist.c signame.c
|
depend: siglist.c signame.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; \
|
||||||
fi; \
|
fi; \
|
||||||
$(srcdir)/mkdep.pl $(srcdir)/common/Makefile.in \
|
$(srcdir)/mkdep.pl $(srcdir)/lib/util/Makefile.in \
|
||||||
$(srcdir)/compat/Makefile.in $(srcdir)/plugins/sample/Makefile.in \
|
$(srcdir)/plugins/sample/Makefile.in \
|
||||||
$(srcdir)/plugins/group_file/Makefile.in \
|
$(srcdir)/plugins/group_file/Makefile.in \
|
||||||
$(srcdir)/plugins/sudoers/Makefile.in \
|
$(srcdir)/plugins/sudoers/Makefile.in \
|
||||||
$(srcdir)/plugins/system_group/Makefile.in \
|
$(srcdir)/plugins/system_group/Makefile.in \
|
||||||
$(srcdir)/src/Makefile.in $(srcdir)/zlib/Makefile.in; \
|
$(srcdir)/src/Makefile.in $(srcdir)/lib/zlib/Makefile.in; \
|
||||||
./config.status --file $(srcdir)/common/Makefile \
|
./config.status --file $(srcdir)/lib/util/Makefile \
|
||||||
--file $(srcdir)/compat/Makefile \
|
|
||||||
--file $(srcdir)/plugins/sample/Makefile \
|
--file $(srcdir)/plugins/sample/Makefile \
|
||||||
--file $(srcdir)/plugins/group_file/Makefile \
|
--file $(srcdir)/plugins/group_file/Makefile \
|
||||||
--file $(srcdir)/plugins/sudoers/Makefile \
|
--file $(srcdir)/plugins/sudoers/Makefile \
|
||||||
--file $(srcdir)/plugins/system_group/Makefile \
|
--file $(srcdir)/plugins/system_group/Makefile \
|
||||||
--file $(srcdir)/src/Makefile --file $(srcdir)/zlib/Makefile
|
--file $(srcdir)/src/Makefile --file $(srcdir)/lib/zlib/Makefile
|
||||||
|
|
||||||
ChangeLog:
|
ChangeLog:
|
||||||
if test -d $(srcdir)/.hg && cd $(srcdir); then \
|
if test -d $(srcdir)/.hg && cd $(srcdir); then \
|
||||||
@@ -178,7 +177,7 @@ Makefile: $(srcdir)/Makefile.in
|
|||||||
sync-po: rsync-po compile-po
|
sync-po: rsync-po compile-po
|
||||||
|
|
||||||
rsync-po:
|
rsync-po:
|
||||||
rsync -Lrtvz translationproject.org::tp/latest/sudo/ src/po/
|
rsync -Lrtvz translationproject.org::tp/latest/sudo/ po/
|
||||||
rsync -Lrtvz translationproject.org::tp/latest/sudoers/ plugins/sudoers/po/
|
rsync -Lrtvz translationproject.org::tp/latest/sudoers/ plugins/sudoers/po/
|
||||||
|
|
||||||
update-pot:
|
update-pot:
|
||||||
@@ -188,7 +187,7 @@ update-pot:
|
|||||||
echo "Updating $$pot"; \
|
echo "Updating $$pot"; \
|
||||||
domain=`basename $$pot .pot`; \
|
domain=`basename $$pot .pot`; \
|
||||||
case "$$domain" in \
|
case "$$domain" in \
|
||||||
sudo) tmpfiles=; cfiles="src/*c common/*c compat/*c";; \
|
sudo) tmpfiles=; cfiles="src/*c lib/*/*c";; \
|
||||||
sudoers) \
|
sudoers) \
|
||||||
echo "syntax error" > confstr.sh; \
|
echo "syntax error" > confstr.sh; \
|
||||||
sed -n -e 's/^badpass_message="/gettext "/p' \
|
sed -n -e 's/^badpass_message="/gettext "/p' \
|
||||||
|
@@ -1,312 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2011-2014 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
# @configure_input@
|
|
||||||
#
|
|
||||||
|
|
||||||
#### Start of system configuration section. ####
|
|
||||||
|
|
||||||
srcdir = @srcdir@
|
|
||||||
devdir = @devdir@
|
|
||||||
top_builddir = @top_builddir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
incdir = $(top_srcdir)/include
|
|
||||||
cross_compiling = @CROSS_COMPILING@
|
|
||||||
|
|
||||||
# Where to install things...
|
|
||||||
prefix = @prefix@
|
|
||||||
exec_prefix = @exec_prefix@
|
|
||||||
bindir = @bindir@
|
|
||||||
sbindir = @sbindir@
|
|
||||||
sysconfdir = @sysconfdir@
|
|
||||||
libexecdir = @libexecdir@
|
|
||||||
datarootdir = @datarootdir@
|
|
||||||
localstatedir = @localstatedir@
|
|
||||||
|
|
||||||
# Compiler & tools to use
|
|
||||||
CC = @CC@
|
|
||||||
LIBTOOL = @LIBTOOL@
|
|
||||||
|
|
||||||
# C preprocessor flags
|
|
||||||
CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
|
|
||||||
|
|
||||||
# Usually -O and/or -g
|
|
||||||
CFLAGS = @CFLAGS@
|
|
||||||
|
|
||||||
# PIE flags
|
|
||||||
PIE_CFLAGS = @PIE_CFLAGS@
|
|
||||||
PIE_LDFLAGS = @PIE_LDFLAGS@
|
|
||||||
|
|
||||||
# Stack smashing protection flags
|
|
||||||
SSP_CFLAGS = @SSP_CFLAGS@
|
|
||||||
SSP_LDFLAGS = @SSP_LDFLAGS@
|
|
||||||
|
|
||||||
# cppcheck options, usually set in the top-level Makefile
|
|
||||||
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX
|
|
||||||
|
|
||||||
# Regression tests
|
|
||||||
TEST_PROGS = atofoo_test conf_test hltq_test parseln_test
|
|
||||||
TEST_LIBS = @LIBS@ @LIBINTL@ ../compat/libreplace.la
|
|
||||||
TEST_LDFLAGS = @LDFLAGS@
|
|
||||||
|
|
||||||
# OS dependent defines
|
|
||||||
DEFS = @OSDEFS@ -D_PATH_SUDO_CONF=\"$(sysconfdir)/sudo.conf\"
|
|
||||||
|
|
||||||
#### End of system configuration section. ####
|
|
||||||
|
|
||||||
SHELL = @SHELL@
|
|
||||||
|
|
||||||
LTOBJS = alloc.lo atobool.lo atoid.lo atomode.lo event.lo fatal.lo fileops.lo \
|
|
||||||
fmt_string.lo gidlist.lo lbuf.lo progname.lo secure_path.lo \
|
|
||||||
setgroups.lo sudo_conf.lo sudo_debug.lo sudo_dso.lo sudo_printf.lo \
|
|
||||||
term.lo ttysize.lo @COMMON_OBJS@
|
|
||||||
|
|
||||||
ATOFOO_TEST_OBJS = atofoo_test.lo locale_stub.lo
|
|
||||||
|
|
||||||
PARSELN_TEST_OBJS = parseln_test.lo locale_stub.lo
|
|
||||||
|
|
||||||
CONF_TEST_OBJS = conf_test.lo locale_stub.lo
|
|
||||||
|
|
||||||
HLTQ_TEST_OBJS = hltq_test.lo locale_stub.lo
|
|
||||||
|
|
||||||
all: libsudo_util.la
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in
|
|
||||||
(cd $(top_builddir) && ./config.status --file common/Makefile)
|
|
||||||
|
|
||||||
.SUFFIXES: .c .h .lo
|
|
||||||
|
|
||||||
.c.lo:
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $<
|
|
||||||
|
|
||||||
libsudo_util.la: $(LTOBJS)
|
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(LTOBJS) -no-install
|
|
||||||
|
|
||||||
atofoo_test: $(ATOFOO_TEST_OBJS) libsudo_util.la
|
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(ATOFOO_TEST_OBJS) libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)
|
|
||||||
|
|
||||||
conf_test: $(CONF_TEST_OBJS) libsudo_util.la
|
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(CONF_TEST_OBJS) libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)
|
|
||||||
|
|
||||||
parseln_test: $(PARSELN_TEST_OBJS) libsudo_util.la
|
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(PARSELN_TEST_OBJS) libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)
|
|
||||||
|
|
||||||
hltq_test: $(HLTQ_TEST_OBJS) libsudo_util.la
|
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(HLTQ_TEST_OBJS) libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)
|
|
||||||
|
|
||||||
pre-install:
|
|
||||||
|
|
||||||
install:
|
|
||||||
|
|
||||||
install-dirs:
|
|
||||||
|
|
||||||
install-binaries:
|
|
||||||
|
|
||||||
install-includes:
|
|
||||||
|
|
||||||
install-doc:
|
|
||||||
|
|
||||||
install-plugin:
|
|
||||||
|
|
||||||
uninstall:
|
|
||||||
|
|
||||||
cppcheck:
|
|
||||||
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
|
||||||
|
|
||||||
# Note: some regress checks are run from srcdir for consistent error messages
|
|
||||||
check: $(TEST_PROGS)
|
|
||||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
|
||||||
rval=0; \
|
|
||||||
./atofoo_test || rval=`expr $$rval + $$?`; \
|
|
||||||
./hltq_test || rval=`expr $$rval + $$?`; \
|
|
||||||
build_dir=`pwd`; \
|
|
||||||
cd $(srcdir); \
|
|
||||||
for dir in sudo_conf sudo_parseln; do \
|
|
||||||
passed=0; failed=0; total=0; \
|
|
||||||
mkdir -p $$build_dir/regress/$$dir; \
|
|
||||||
for t in regress/$$dir/*.in; do \
|
|
||||||
base=`basename $$t .in`; \
|
|
||||||
out="$$build_dir/regress/$$dir/$${base}.out"; \
|
|
||||||
out_ok="regress/$$dir/$${base}.out.ok"; \
|
|
||||||
err="$$build_dir/regress/$$dir/$${base}.err"; \
|
|
||||||
err_ok="regress/$$dir/$${base}.err.ok"; \
|
|
||||||
if test "$$dir" = "sudo_conf"; then \
|
|
||||||
$$build_dir/conf_test $$t >$$out 2>$$err; \
|
|
||||||
else \
|
|
||||||
$$build_dir/parseln_test <$$t >$$out 2>$$err; \
|
|
||||||
fi; \
|
|
||||||
if cmp $$out $$out_ok >/dev/null; then \
|
|
||||||
passed=`expr $$passed + 1`; \
|
|
||||||
echo "$$dir/$$base: OK"; \
|
|
||||||
else \
|
|
||||||
failed=`expr $$failed + 1`; \
|
|
||||||
echo "$$dir/$$base: FAIL"; \
|
|
||||||
diff $$out $$out_ok || true; \
|
|
||||||
fi; \
|
|
||||||
total=`expr $$total + 1`; \
|
|
||||||
if test -s $$err_ok; then \
|
|
||||||
if cmp $$err $$err_ok >/dev/null; then \
|
|
||||||
passed=`expr $$passed + 1`; \
|
|
||||||
echo "$$dir/$$base (stderr): OK"; \
|
|
||||||
else \
|
|
||||||
failed=`expr $$failed + 1`; \
|
|
||||||
echo "$$dir/$$base (stderr): FAIL"; \
|
|
||||||
diff $$err $$err_ok || true; \
|
|
||||||
fi; \
|
|
||||||
total=`expr $$total + 1`; \
|
|
||||||
elif test -s $$err; then \
|
|
||||||
failed=`expr $$failed + 1`; \
|
|
||||||
echo "$$dir/$$base (stderr): FAIL"; \
|
|
||||||
cat $$err 1>&2; \
|
|
||||||
fi; \
|
|
||||||
done; \
|
|
||||||
if test $$failed -ne 0; then \
|
|
||||||
rval=`expr $$rval + $$failed`; \
|
|
||||||
fi; \
|
|
||||||
echo "$$dir: $$passed/$$total tests passed; $$failed/$$total tests failed"; \
|
|
||||||
done; \
|
|
||||||
exit $$rval; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-$(LIBTOOL) --mode=clean rm -f $(TEST_PROGS) *.lo *.o *.la *.a stamp-* core *.core core.* regress/*/*.out
|
|
||||||
|
|
||||||
mostlyclean: clean
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
-rm -rf Makefile .libs
|
|
||||||
|
|
||||||
clobber: distclean
|
|
||||||
|
|
||||||
realclean: distclean
|
|
||||||
rm -f TAGS tags
|
|
||||||
|
|
||||||
cleandir: realclean
|
|
||||||
|
|
||||||
# Autogenerated dependencies, do not modify
|
|
||||||
aix.lo: $(srcdir)/aix.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
|
||||||
$(incdir)/gettext.h $(incdir)/missing.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/aix.c
|
|
||||||
alloc.lo: $(srcdir)/alloc.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
|
||||||
$(incdir)/gettext.h $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/alloc.c
|
|
||||||
atobool.lo: $(srcdir)/atobool.c $(incdir)/missing.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/atobool.c
|
|
||||||
atofoo_test.lo: $(srcdir)/regress/atofoo/atofoo_test.c $(incdir)/fatal.h \
|
|
||||||
$(incdir)/missing.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/atofoo/atofoo_test.c
|
|
||||||
atoid.lo: $(srcdir)/atoid.c $(incdir)/gettext.h $(incdir)/missing.h \
|
|
||||||
$(incdir)/sudo_debug.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/atoid.c
|
|
||||||
atomode.lo: $(srcdir)/atomode.c $(incdir)/gettext.h $(incdir)/missing.h \
|
|
||||||
$(incdir)/sudo_debug.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/atomode.c
|
|
||||||
conf_test.lo: $(srcdir)/regress/sudo_conf/conf_test.c $(incdir)/missing.h \
|
|
||||||
$(incdir)/queue.h $(incdir)/sudo_conf.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/sudo_conf/conf_test.c
|
|
||||||
event.lo: $(srcdir)/event.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
|
||||||
$(incdir)/missing.h $(incdir)/queue.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_event.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/event.c
|
|
||||||
event_poll.lo: $(srcdir)/event_poll.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
|
||||||
$(incdir)/missing.h $(incdir)/queue.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_event.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/event_poll.c
|
|
||||||
event_select.lo: $(srcdir)/event_select.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
|
||||||
$(incdir)/missing.h $(incdir)/queue.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_event.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/event_select.c
|
|
||||||
fatal.lo: $(srcdir)/fatal.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
|
||||||
$(incdir)/gettext.h $(incdir)/missing.h $(incdir)/queue.h \
|
|
||||||
$(incdir)/sudo_plugin.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fatal.c
|
|
||||||
fileops.lo: $(srcdir)/fileops.c $(incdir)/fileops.h $(incdir)/missing.h \
|
|
||||||
$(incdir)/sudo_debug.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h $(top_srcdir)/compat/timespec.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fileops.c
|
|
||||||
fmt_string.lo: $(srcdir)/fmt_string.c $(incdir)/missing.h \
|
|
||||||
$(incdir)/sudo_debug.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fmt_string.c
|
|
||||||
gidlist.lo: $(srcdir)/gidlist.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
|
||||||
$(incdir)/gettext.h $(incdir)/missing.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/gidlist.c
|
|
||||||
hltq_test.lo: $(srcdir)/regress/tailq/hltq_test.c $(incdir)/fatal.h \
|
|
||||||
$(incdir)/missing.h $(incdir)/queue.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/tailq/hltq_test.c
|
|
||||||
lbuf.lo: $(srcdir)/lbuf.c $(incdir)/alloc.h $(incdir)/fatal.h $(incdir)/lbuf.h \
|
|
||||||
$(incdir)/missing.h $(incdir)/sudo_debug.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/lbuf.c
|
|
||||||
locale_stub.lo: $(top_srcdir)/src/locale_stub.c $(incdir)/fatal.h \
|
|
||||||
$(incdir)/gettext.h $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(top_srcdir)/src/locale_stub.c
|
|
||||||
parseln_test.lo: $(srcdir)/regress/sudo_parseln/parseln_test.c \
|
|
||||||
$(incdir)/fileops.h $(incdir)/missing.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/sudo_parseln/parseln_test.c
|
|
||||||
progname.lo: $(srcdir)/progname.c $(incdir)/missing.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/progname.c
|
|
||||||
secure_path.lo: $(srcdir)/secure_path.c $(incdir)/missing.h \
|
|
||||||
$(incdir)/secure_path.h $(incdir)/sudo_debug.h \
|
|
||||||
$(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/secure_path.c
|
|
||||||
setgroups.lo: $(srcdir)/setgroups.c $(incdir)/missing.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/setgroups.c
|
|
||||||
sudo_conf.lo: $(srcdir)/sudo_conf.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
|
||||||
$(incdir)/fileops.h $(incdir)/gettext.h $(incdir)/missing.h \
|
|
||||||
$(incdir)/queue.h $(incdir)/secure_path.h $(incdir)/sudo_conf.h \
|
|
||||||
$(incdir)/sudo_debug.h $(incdir)/sudo_plugin.h \
|
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h \
|
|
||||||
$(top_builddir)/pathnames.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_conf.c
|
|
||||||
sudo_debug.lo: $(srcdir)/sudo_debug.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
|
||||||
$(incdir)/gettext.h $(incdir)/missing.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_plugin.h $(incdir)/sudo_util.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_debug.c
|
|
||||||
sudo_dso.lo: $(srcdir)/sudo_dso.c $(incdir)/missing.h $(incdir)/sudo_dso.h \
|
|
||||||
$(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_dso.c
|
|
||||||
sudo_printf.lo: $(srcdir)/sudo_printf.c $(incdir)/missing.h \
|
|
||||||
$(incdir)/sudo_debug.h $(incdir)/sudo_plugin.h \
|
|
||||||
$(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_printf.c
|
|
||||||
term.lo: $(srcdir)/term.c $(incdir)/missing.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/term.c
|
|
||||||
ttysize.lo: $(srcdir)/ttysize.c $(incdir)/missing.h $(incdir)/sudo_debug.h \
|
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/ttysize.c
|
|
@@ -1,244 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2011-2014 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
#
|
|
||||||
# @configure_input@
|
|
||||||
#
|
|
||||||
|
|
||||||
#### Start of system configuration section. ####
|
|
||||||
|
|
||||||
srcdir = @srcdir@
|
|
||||||
devdir = @devdir@
|
|
||||||
top_builddir = @top_builddir@
|
|
||||||
top_srcdir = @top_srcdir@
|
|
||||||
incdir = $(top_srcdir)/include
|
|
||||||
cross_compiling = @CROSS_COMPILING@
|
|
||||||
|
|
||||||
# Where to install things...
|
|
||||||
prefix = @prefix@
|
|
||||||
exec_prefix = @exec_prefix@
|
|
||||||
bindir = @bindir@
|
|
||||||
sbindir = @sbindir@
|
|
||||||
sysconfdir = @sysconfdir@
|
|
||||||
libexecdir = @libexecdir@
|
|
||||||
datarootdir = @datarootdir@
|
|
||||||
localstatedir = @localstatedir@
|
|
||||||
|
|
||||||
# Compiler & tools to use
|
|
||||||
CC = @CC@
|
|
||||||
LIBTOOL = @LIBTOOL@
|
|
||||||
|
|
||||||
# C preprocessor flags
|
|
||||||
CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
|
|
||||||
|
|
||||||
# Usually -O and/or -g
|
|
||||||
CFLAGS = @CFLAGS@
|
|
||||||
|
|
||||||
# PIE flags
|
|
||||||
PIE_CFLAGS = @PIE_CFLAGS@
|
|
||||||
PIE_LDFLAGS = @PIE_LDFLAGS@
|
|
||||||
|
|
||||||
# Stack smashing protection flags
|
|
||||||
SSP_CFLAGS = @SSP_CFLAGS@
|
|
||||||
SSP_LDFLAGS = @SSP_LDFLAGS@
|
|
||||||
|
|
||||||
# cppcheck options, usually set in the top-level Makefile
|
|
||||||
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX
|
|
||||||
|
|
||||||
# OS dependent defines
|
|
||||||
DEFS = @OSDEFS@
|
|
||||||
|
|
||||||
# Set to non-empty for development mode
|
|
||||||
DEVEL = @DEVEL@
|
|
||||||
|
|
||||||
#### End of system configuration section. ####
|
|
||||||
|
|
||||||
SHELL = @SHELL@
|
|
||||||
|
|
||||||
TEST_PROGS = @COMPAT_TEST_PROGS@
|
|
||||||
|
|
||||||
LIBOBJDIR =
|
|
||||||
|
|
||||||
LTLIBOBJS = @LTLIBOBJS@
|
|
||||||
|
|
||||||
all: libreplace.la
|
|
||||||
|
|
||||||
Makefile: $(srcdir)/Makefile.in
|
|
||||||
(cd $(top_builddir) && ./config.status --file compat/Makefile)
|
|
||||||
|
|
||||||
.SUFFIXES: .o .c .h .lo
|
|
||||||
|
|
||||||
.c.o:
|
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $<
|
|
||||||
|
|
||||||
.c.lo:
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $<
|
|
||||||
|
|
||||||
libreplace.la: $(LTLIBOBJS)
|
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(LTLIBOBJS) -no-install
|
|
||||||
|
|
||||||
siglist.c: mksiglist
|
|
||||||
./mksiglist > $@
|
|
||||||
|
|
||||||
signame.c: mksigname
|
|
||||||
./mksigname > $@
|
|
||||||
|
|
||||||
mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
|
|
||||||
|
|
||||||
mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@
|
|
||||||
|
|
||||||
fnm_test: fnm_test.o libreplace.la
|
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ fnm_test.o libreplace.la $(PIE_LDFLAGS) $(SSP_LDFLAGS)
|
|
||||||
|
|
||||||
globtest: globtest.o libreplace.la
|
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ globtest.o libreplace.la $(PIE_LDFLAGS) $(SSP_LDFLAGS)
|
|
||||||
|
|
||||||
$(srcdir)/mksiglist.h: $(srcdir)/siglist.in
|
|
||||||
@if [ -n "$(DEVEL)" ]; then \
|
|
||||||
awk 'BEGIN {print "/* public domain */\n"} /^ [A-Z]/ {printf("#ifdef SIG%s\n if (sudo_sys_siglist[SIG%s] == NULL)\n\tsudo_sys_siglist[SIG%s] = \"%s\";\n#endif\n", $$1, $$1, $$1, substr($$0, 13))}' < $(srcdir)/siglist.in > $@; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
$(srcdir)/mksigname.h: $(srcdir)/siglist.in
|
|
||||||
@if [ -n "$(DEVEL)" ]; then \
|
|
||||||
awk 'BEGIN {print "/* public domain */\n"} /^ [A-Z]/ {printf("#ifdef SIG%s\n if (sudo_sys_signame[SIG%s] == NULL)\n\tsudo_sys_signame[SIG%s] = \"%s\";\n#endif\n", $$1, $$1, $$1, $$1)}' < $(srcdir)/siglist.in > $@; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
pre-install:
|
|
||||||
|
|
||||||
install:
|
|
||||||
|
|
||||||
install-dirs:
|
|
||||||
|
|
||||||
install-binaries:
|
|
||||||
|
|
||||||
install-includes:
|
|
||||||
|
|
||||||
install-doc:
|
|
||||||
|
|
||||||
install-plugin:
|
|
||||||
|
|
||||||
uninstall:
|
|
||||||
|
|
||||||
cppcheck:
|
|
||||||
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
|
||||||
|
|
||||||
check: $(TEST_PROGS)
|
|
||||||
@if test X"$(cross_compiling)" != X"yes"; then \
|
|
||||||
if test -f fnm_test; then \
|
|
||||||
./fnm_test $(srcdir)/regress/fnmatch/fnm_test.in; \
|
|
||||||
fi; \
|
|
||||||
if test -f globtest; then \
|
|
||||||
mkdir -p `sed 's@/[^/]*$$@@' $(srcdir)/regress/glob/files | sort -u`; \
|
|
||||||
touch `cat $(srcdir)/regress/glob/files`; \
|
|
||||||
chmod 0755 `grep '/r[^/]*$$' $(srcdir)/regress/glob/files`; \
|
|
||||||
chmod 0444 `grep '/s[^/]*$$' $(srcdir)/regress/glob/files`; \
|
|
||||||
chmod 0711 `grep '/t[^/]*$$' $(srcdir)/regress/glob/files`; \
|
|
||||||
./globtest $(srcdir)/regress/glob/globtest.in; \
|
|
||||||
rval=$$?; \
|
|
||||||
rm -rf fake; \
|
|
||||||
exit $$rval; \
|
|
||||||
fi; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
clean:
|
|
||||||
-$(LIBTOOL) --mode=clean rm -f $(TEST_PROGS) mksiglist mksigname siglist.c signame.c *.lo *.o *.la *.a stamp-* core *.core core.*
|
|
||||||
|
|
||||||
mostlyclean: clean
|
|
||||||
|
|
||||||
distclean: clean
|
|
||||||
-rm -rf Makefile .libs
|
|
||||||
|
|
||||||
clobber: distclean
|
|
||||||
|
|
||||||
realclean: distclean
|
|
||||||
rm -f TAGS tags
|
|
||||||
|
|
||||||
cleandir: realclean
|
|
||||||
|
|
||||||
# Autogenerated dependencies, do not modify
|
|
||||||
clock_gettime.lo: $(srcdir)/clock_gettime.c $(incdir)/missing.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/timespec.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/clock_gettime.c
|
|
||||||
closefrom.lo: $(srcdir)/closefrom.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/closefrom.c
|
|
||||||
fnm_test.o: $(srcdir)/regress/fnmatch/fnm_test.c $(incdir)/missing.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/fnmatch.h
|
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/fnmatch/fnm_test.c
|
|
||||||
fnmatch.lo: $(srcdir)/fnmatch.c $(incdir)/missing.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/charclass.h $(top_srcdir)/compat/fnmatch.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fnmatch.c
|
|
||||||
getaddrinfo.lo: $(srcdir)/getaddrinfo.c $(incdir)/missing.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/getaddrinfo.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getaddrinfo.c
|
|
||||||
getcwd.lo: $(srcdir)/getcwd.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getcwd.c
|
|
||||||
getgrouplist.lo: $(srcdir)/getgrouplist.c $(incdir)/missing.h \
|
|
||||||
$(incdir)/sudo_util.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/nss_dbdefs.h \
|
|
||||||
$(top_srcdir)/compat/stdbool.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getgrouplist.c
|
|
||||||
getline.lo: $(srcdir)/getline.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getline.c
|
|
||||||
getopt_long.lo: $(srcdir)/getopt_long.c $(incdir)/fatal.h $(incdir)/missing.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/getopt.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getopt_long.c
|
|
||||||
glob.lo: $(srcdir)/glob.c $(incdir)/missing.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/charclass.h $(top_srcdir)/compat/glob.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/glob.c
|
|
||||||
globtest.o: $(srcdir)/regress/glob/globtest.c $(incdir)/missing.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/glob.h
|
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/glob/globtest.c
|
|
||||||
isblank.lo: $(srcdir)/isblank.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_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) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/memrchr.c
|
|
||||||
memset_s.lo: $(srcdir)/memset_s.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/memset_s.c
|
|
||||||
mksiglist.lo: $(srcdir)/mksiglist.c $(incdir)/missing.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/mksiglist.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c
|
|
||||||
mksigname.lo: $(srcdir)/mksigname.c $(incdir)/missing.h \
|
|
||||||
$(top_builddir)/config.h $(top_srcdir)/compat/mksigname.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksigname.c
|
|
||||||
mktemp.lo: $(srcdir)/mktemp.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mktemp.c
|
|
||||||
pw_dup.lo: $(srcdir)/pw_dup.c $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/pw_dup.c
|
|
||||||
sha2.lo: $(srcdir)/sha2.c $(incdir)/missing.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/endian.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sha2.c
|
|
||||||
sig2str.lo: $(srcdir)/sig2str.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sig2str.c
|
|
||||||
siglist.lo: siglist.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) siglist.c
|
|
||||||
signame.lo: signame.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) signame.c
|
|
||||||
snprintf.lo: $(srcdir)/snprintf.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/snprintf.c
|
|
||||||
strlcat.lo: $(srcdir)/strlcat.c $(incdir)/missing.h $(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_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) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strlcpy.c
|
|
||||||
strsignal.lo: $(srcdir)/strsignal.c $(incdir)/gettext.h $(incdir)/missing.h \
|
|
||||||
$(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strsignal.c
|
|
||||||
strtonum.lo: $(srcdir)/strtonum.c $(incdir)/gettext.h $(incdir)/missing.h \
|
|
||||||
$(top_builddir)/config.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strtonum.c
|
|
||||||
utimes.lo: $(srcdir)/utimes.c $(incdir)/missing.h $(top_builddir)/config.h \
|
|
||||||
$(top_srcdir)/compat/utime.h
|
|
||||||
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/utimes.c
|
|
23
configure
vendored
23
configure
vendored
@@ -596,7 +596,7 @@ PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
|
|||||||
PACKAGE_URL=''
|
PACKAGE_URL=''
|
||||||
|
|
||||||
ac_unique_file="src/sudo.c"
|
ac_unique_file="src/sudo.c"
|
||||||
ac_config_libobj_dir=compat
|
ac_config_libobj_dir=lib/util
|
||||||
# Factoring default headers for most tests.
|
# Factoring default headers for most tests.
|
||||||
ac_includes_default="\
|
ac_includes_default="\
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -736,7 +736,6 @@ LIBINTL
|
|||||||
LT_STATIC
|
LT_STATIC
|
||||||
LIBDL
|
LIBDL
|
||||||
CONFIGURE_ARGS
|
CONFIGURE_ARGS
|
||||||
ac_config_libobj_dir
|
|
||||||
LIBTOOL_DEPS
|
LIBTOOL_DEPS
|
||||||
ZLIB_SRC
|
ZLIB_SRC
|
||||||
ZLIB
|
ZLIB
|
||||||
@@ -2975,7 +2974,6 @@ $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -19497,12 +19495,12 @@ esac
|
|||||||
if test X"$enable_zlib" = X"builtin"; then
|
if test X"$enable_zlib" = X"builtin"; then
|
||||||
$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
|
$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
|
||||||
|
|
||||||
CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
|
CPPFLAGS='-I$(top_builddir)/lib/zlib -I$(top_srcdir)/lib/zlib '"${CPPFLAGS}"
|
||||||
ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
|
ZLIB="${ZLIB}"' $(top_builddir)/lib/zlib/libz.la'
|
||||||
ZLIB_SRC=zlib
|
ZLIB_SRC=lib/zlib
|
||||||
ac_config_headers="$ac_config_headers zlib/zconf.h"
|
ac_config_headers="$ac_config_headers lib/zlib/zconf.h"
|
||||||
|
|
||||||
ac_config_files="$ac_config_files zlib/Makefile"
|
ac_config_files="$ac_config_files lib/zlib/Makefile"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -22715,7 +22713,7 @@ test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
|
|||||||
test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
|
test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
|
||||||
test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
|
test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
|
||||||
|
|
||||||
ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile init.d/aix.sh init.d/hpux.sh src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/group_file/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
|
ac_config_files="$ac_config_files Makefile doc/Makefile include/Makefile init.d/aix.sh init.d/hpux.sh lib/util/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/group_file/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
|
||||||
|
|
||||||
cat >confcache <<\_ACEOF
|
cat >confcache <<\_ACEOF
|
||||||
# This file is a shell script that caches the results of configure
|
# This file is a shell script that caches the results of configure
|
||||||
@@ -23700,15 +23698,14 @@ do
|
|||||||
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
||||||
"pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
|
"pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
|
||||||
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
|
||||||
"zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
|
"lib/zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/zlib/zconf.h" ;;
|
||||||
"zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
|
"lib/zlib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/zlib/Makefile" ;;
|
||||||
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
||||||
"common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
|
|
||||||
"compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
|
|
||||||
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
||||||
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
|
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
|
||||||
"init.d/aix.sh") CONFIG_FILES="$CONFIG_FILES init.d/aix.sh" ;;
|
"init.d/aix.sh") CONFIG_FILES="$CONFIG_FILES init.d/aix.sh" ;;
|
||||||
"init.d/hpux.sh") CONFIG_FILES="$CONFIG_FILES init.d/hpux.sh" ;;
|
"init.d/hpux.sh") CONFIG_FILES="$CONFIG_FILES init.d/hpux.sh" ;;
|
||||||
|
"lib/util/Makefile") CONFIG_FILES="$CONFIG_FILES lib/util/Makefile" ;;
|
||||||
"src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
|
"src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
|
||||||
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
|
||||||
"plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
|
"plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
|
||||||
|
17
configure.ac
17
configure.ac
@@ -72,7 +72,6 @@ AC_SUBST([LOGINCAP_USAGE])
|
|||||||
AC_SUBST([ZLIB])
|
AC_SUBST([ZLIB])
|
||||||
AC_SUBST([ZLIB_SRC])
|
AC_SUBST([ZLIB_SRC])
|
||||||
AC_SUBST([LIBTOOL_DEPS])
|
AC_SUBST([LIBTOOL_DEPS])
|
||||||
AC_SUBST([ac_config_libobj_dir])
|
|
||||||
AC_SUBST([CONFIGURE_ARGS])
|
AC_SUBST([CONFIGURE_ARGS])
|
||||||
AC_SUBST([LIBDL])
|
AC_SUBST([LIBDL])
|
||||||
AC_SUBST([LT_STATIC])
|
AC_SUBST([LT_STATIC])
|
||||||
@@ -237,9 +236,9 @@ RTLD_PRELOAD_DELIM=":"
|
|||||||
RTLD_PRELOAD_DEFAULT=
|
RTLD_PRELOAD_DEFAULT=
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl libc replacement functions live in compat
|
dnl libc replacement functions live in libsudo_util.a
|
||||||
dnl
|
dnl
|
||||||
AC_CONFIG_LIBOBJ_DIR(compat)
|
AC_CONFIG_LIBOBJ_DIR(lib/util)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Prior to sudo 1.8.7, sudo stored libexec files in $libexecdir.
|
# Prior to sudo 1.8.7, sudo stored libexec files in $libexecdir.
|
||||||
@@ -2754,11 +2753,11 @@ case "$enable_zlib" in
|
|||||||
esac
|
esac
|
||||||
if test X"$enable_zlib" = X"builtin"; then
|
if test X"$enable_zlib" = X"builtin"; then
|
||||||
AC_DEFINE(HAVE_ZLIB_H)
|
AC_DEFINE(HAVE_ZLIB_H)
|
||||||
CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
|
CPPFLAGS='-I$(top_builddir)/lib/zlib -I$(top_srcdir)/lib/zlib '"${CPPFLAGS}"
|
||||||
ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
|
ZLIB="${ZLIB}"' $(top_builddir)/lib/zlib/libz.la'
|
||||||
ZLIB_SRC=zlib
|
ZLIB_SRC=lib/zlib
|
||||||
AC_CONFIG_HEADER([zlib/zconf.h])
|
AC_CONFIG_HEADER([lib/zlib/zconf.h])
|
||||||
AC_CONFIG_FILES([zlib/Makefile])
|
AC_CONFIG_FILES([lib/zlib/Makefile])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
@@ -3833,7 +3832,7 @@ test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/
|
|||||||
dnl
|
dnl
|
||||||
dnl Substitute into the Makefile and man pages
|
dnl Substitute into the Makefile and man pages
|
||||||
dnl
|
dnl
|
||||||
AC_CONFIG_FILES([Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile init.d/aix.sh init.d/hpux.sh src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/group_file/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers])
|
AC_CONFIG_FILES([Makefile doc/Makefile include/Makefile init.d/aix.sh init.d/hpux.sh lib/util/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/group_file/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
433
lib/util/Makefile.in
Normal file
433
lib/util/Makefile.in
Normal file
@@ -0,0 +1,433 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2011-2014 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
# @configure_input@
|
||||||
|
#
|
||||||
|
|
||||||
|
#### Start of system configuration section. ####
|
||||||
|
|
||||||
|
srcdir = @srcdir@
|
||||||
|
devdir = @devdir@
|
||||||
|
top_builddir = @top_builddir@
|
||||||
|
top_srcdir = @top_srcdir@
|
||||||
|
incdir = $(top_srcdir)/include
|
||||||
|
cross_compiling = @CROSS_COMPILING@
|
||||||
|
|
||||||
|
# Where to install things...
|
||||||
|
prefix = @prefix@
|
||||||
|
exec_prefix = @exec_prefix@
|
||||||
|
bindir = @bindir@
|
||||||
|
sbindir = @sbindir@
|
||||||
|
sysconfdir = @sysconfdir@
|
||||||
|
libexecdir = @libexecdir@
|
||||||
|
datarootdir = @datarootdir@
|
||||||
|
localstatedir = @localstatedir@
|
||||||
|
|
||||||
|
# Compiler & tools to use
|
||||||
|
CC = @CC@
|
||||||
|
LIBTOOL = @LIBTOOL@
|
||||||
|
|
||||||
|
# C preprocessor flags
|
||||||
|
CPPFLAGS = -I$(incdir) -I$(top_builddir) -I$(top_srcdir) @CPPFLAGS@
|
||||||
|
|
||||||
|
# Usually -O and/or -g
|
||||||
|
CFLAGS = @CFLAGS@
|
||||||
|
|
||||||
|
# PIE flags
|
||||||
|
PIE_CFLAGS = @PIE_CFLAGS@
|
||||||
|
PIE_LDFLAGS = @PIE_LDFLAGS@
|
||||||
|
|
||||||
|
# Stack smashing protection flags
|
||||||
|
SSP_CFLAGS = @SSP_CFLAGS@
|
||||||
|
SSP_LDFLAGS = @SSP_LDFLAGS@
|
||||||
|
|
||||||
|
# cppcheck options, usually set in the top-level Makefile
|
||||||
|
CPPCHECK_OPTS = -q --force --enable=warning,performance,portability --suppress=constStatement --error-exitcode=1 --inline-suppr -U__cplusplus -UQUAD_MAX -UQUAD_MIN -UUQUAD_MAX -U_POSIX_HOST_NAME_MAX -U_POSIX_PATH_MAX
|
||||||
|
|
||||||
|
# Regression tests
|
||||||
|
TEST_PROGS = atofoo_test conf_test hltq_test parseln_test @COMPAT_TEST_PROGS@
|
||||||
|
TEST_LIBS = @LIBS@ @LIBINTL@
|
||||||
|
TEST_LDFLAGS = @LDFLAGS@
|
||||||
|
|
||||||
|
# OS dependent defines
|
||||||
|
DEFS = @OSDEFS@ -D_PATH_SUDO_CONF=\"$(sysconfdir)/sudo.conf\"
|
||||||
|
|
||||||
|
# Set to non-empty for development mode
|
||||||
|
DEVEL = @DEVEL@
|
||||||
|
|
||||||
|
#### End of system configuration section. ####
|
||||||
|
|
||||||
|
SHELL = @SHELL@
|
||||||
|
|
||||||
|
LTOBJS = alloc.lo atobool.lo atoid.lo atomode.lo event.lo fatal.lo fileops.lo \
|
||||||
|
fmt_string.lo gidlist.lo lbuf.lo progname.lo secure_path.lo \
|
||||||
|
setgroups.lo sudo_conf.lo sudo_debug.lo sudo_dso.lo sudo_printf.lo \
|
||||||
|
term.lo ttysize.lo @COMMON_OBJS@ @LTLIBOBJS@
|
||||||
|
|
||||||
|
ATOFOO_TEST_OBJS = atofoo_test.lo locale_stub.lo
|
||||||
|
|
||||||
|
PARSELN_TEST_OBJS = parseln_test.lo locale_stub.lo
|
||||||
|
|
||||||
|
CONF_TEST_OBJS = conf_test.lo locale_stub.lo
|
||||||
|
|
||||||
|
HLTQ_TEST_OBJS = hltq_test.lo locale_stub.lo
|
||||||
|
|
||||||
|
all: libsudo_util.la
|
||||||
|
|
||||||
|
Makefile: $(srcdir)/Makefile.in
|
||||||
|
(cd $(top_builddir) && ./config.status --file lib/util/Makefile)
|
||||||
|
|
||||||
|
.SUFFIXES: .o .c .h .lo
|
||||||
|
|
||||||
|
.c.o:
|
||||||
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $<
|
||||||
|
|
||||||
|
.c.lo:
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $<
|
||||||
|
|
||||||
|
libsudo_util.la: $(LTOBJS)
|
||||||
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(LTOBJS) -no-install
|
||||||
|
|
||||||
|
siglist.c: mksiglist
|
||||||
|
./mksiglist > $@
|
||||||
|
|
||||||
|
signame.c: mksigname
|
||||||
|
./mksigname > $@
|
||||||
|
|
||||||
|
mksiglist: $(srcdir)/mksiglist.c $(srcdir)/mksiglist.h $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c -o $@
|
||||||
|
|
||||||
|
mksigname: $(srcdir)/mksigname.c $(srcdir)/mksigname.h $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksigname.c -o $@
|
||||||
|
|
||||||
|
fnm_test: fnm_test.o libsudo_util.la
|
||||||
|
$(LIBTOOL) --mode=link $(CC) -o $@ fnm_test.o libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS)
|
||||||
|
|
||||||
|
globtest: globtest.o libsudo_util.la
|
||||||
|
$(LIBTOOL) --mode=link $(CC) -o $@ globtest.o libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS)
|
||||||
|
|
||||||
|
$(srcdir)/mksiglist.h: $(srcdir)/siglist.in
|
||||||
|
@if [ -n "$(DEVEL)" ]; then \
|
||||||
|
awk 'BEGIN {print "/* public domain */\n"} /^ [A-Z]/ {printf("#ifdef SIG%s\n if (sudo_sys_siglist[SIG%s] == NULL)\n\tsudo_sys_siglist[SIG%s] = \"%s\";\n#endif\n", $$1, $$1, $$1, substr($$0, 13))}' < $(srcdir)/siglist.in > $@; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
$(srcdir)/mksigname.h: $(srcdir)/siglist.in
|
||||||
|
@if [ -n "$(DEVEL)" ]; then \
|
||||||
|
awk 'BEGIN {print "/* public domain */\n"} /^ [A-Z]/ {printf("#ifdef SIG%s\n if (sudo_sys_signame[SIG%s] == NULL)\n\tsudo_sys_signame[SIG%s] = \"%s\";\n#endif\n", $$1, $$1, $$1, $$1)}' < $(srcdir)/siglist.in > $@; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
atofoo_test: $(ATOFOO_TEST_OBJS) libsudo_util.la
|
||||||
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(ATOFOO_TEST_OBJS) libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)
|
||||||
|
|
||||||
|
conf_test: $(CONF_TEST_OBJS) libsudo_util.la
|
||||||
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(CONF_TEST_OBJS) libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)
|
||||||
|
|
||||||
|
parseln_test: $(PARSELN_TEST_OBJS) libsudo_util.la
|
||||||
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(PARSELN_TEST_OBJS) libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)
|
||||||
|
|
||||||
|
hltq_test: $(HLTQ_TEST_OBJS) libsudo_util.la
|
||||||
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(HLTQ_TEST_OBJS) libsudo_util.la $(PIE_LDFLAGS) $(SSP_LDFLAGS) $(TEST_LDFLAGS) $(TEST_LIBS)
|
||||||
|
|
||||||
|
pre-install:
|
||||||
|
|
||||||
|
install:
|
||||||
|
|
||||||
|
install-dirs:
|
||||||
|
|
||||||
|
install-binaries:
|
||||||
|
|
||||||
|
install-includes:
|
||||||
|
|
||||||
|
install-doc:
|
||||||
|
|
||||||
|
install-plugin:
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
|
||||||
|
cppcheck:
|
||||||
|
cppcheck $(CPPCHECK_OPTS) -I$(incdir) -I$(top_builddir) -I$(top_srcdir) $(srcdir)/*.c
|
||||||
|
|
||||||
|
# Note: some regress checks are run from srcdir for consistent error messages
|
||||||
|
check: $(TEST_PROGS)
|
||||||
|
@if test X"$(cross_compiling)" != X"yes"; then \
|
||||||
|
rval=0; \
|
||||||
|
if test -f fnm_test; then \
|
||||||
|
./fnm_test $(srcdir)/regress/fnmatch/fnm_test.in || rval=`expr $$rval + $$?`; \
|
||||||
|
fi; \
|
||||||
|
if test -f globtest; then \
|
||||||
|
mkdir -p `sed 's@/[^/]*$$@@' $(srcdir)/regress/glob/files | sort -u`; \
|
||||||
|
touch `cat $(srcdir)/regress/glob/files`; \
|
||||||
|
chmod 0755 `grep '/r[^/]*$$' $(srcdir)/regress/glob/files`; \
|
||||||
|
chmod 0444 `grep '/s[^/]*$$' $(srcdir)/regress/glob/files`; \
|
||||||
|
chmod 0711 `grep '/t[^/]*$$' $(srcdir)/regress/glob/files`; \
|
||||||
|
./globtest $(srcdir)/regress/glob/globtest.in || rval=`expr $$rval + $$?`; \
|
||||||
|
rm -rf fake; \
|
||||||
|
fi; \
|
||||||
|
./atofoo_test || rval=`expr $$rval + $$?`; \
|
||||||
|
./hltq_test || rval=`expr $$rval + $$?`; \
|
||||||
|
build_dir=`pwd`; \
|
||||||
|
cd $(srcdir); \
|
||||||
|
for dir in sudo_conf sudo_parseln; do \
|
||||||
|
passed=0; failed=0; total=0; \
|
||||||
|
mkdir -p $$build_dir/regress/$$dir; \
|
||||||
|
for t in regress/$$dir/*.in; do \
|
||||||
|
base=`basename $$t .in`; \
|
||||||
|
out="$$build_dir/regress/$$dir/$${base}.out"; \
|
||||||
|
out_ok="regress/$$dir/$${base}.out.ok"; \
|
||||||
|
err="$$build_dir/regress/$$dir/$${base}.err"; \
|
||||||
|
err_ok="regress/$$dir/$${base}.err.ok"; \
|
||||||
|
if test "$$dir" = "sudo_conf"; then \
|
||||||
|
$$build_dir/conf_test $$t >$$out 2>$$err; \
|
||||||
|
else \
|
||||||
|
$$build_dir/parseln_test <$$t >$$out 2>$$err; \
|
||||||
|
fi; \
|
||||||
|
if cmp $$out $$out_ok >/dev/null; then \
|
||||||
|
passed=`expr $$passed + 1`; \
|
||||||
|
echo "$$dir/$$base: OK"; \
|
||||||
|
else \
|
||||||
|
failed=`expr $$failed + 1`; \
|
||||||
|
echo "$$dir/$$base: FAIL"; \
|
||||||
|
diff $$out $$out_ok || true; \
|
||||||
|
fi; \
|
||||||
|
total=`expr $$total + 1`; \
|
||||||
|
if test -s $$err_ok; then \
|
||||||
|
if cmp $$err $$err_ok >/dev/null; then \
|
||||||
|
passed=`expr $$passed + 1`; \
|
||||||
|
echo "$$dir/$$base (stderr): OK"; \
|
||||||
|
else \
|
||||||
|
failed=`expr $$failed + 1`; \
|
||||||
|
echo "$$dir/$$base (stderr): FAIL"; \
|
||||||
|
diff $$err $$err_ok || true; \
|
||||||
|
fi; \
|
||||||
|
total=`expr $$total + 1`; \
|
||||||
|
elif test -s $$err; then \
|
||||||
|
failed=`expr $$failed + 1`; \
|
||||||
|
echo "$$dir/$$base (stderr): FAIL"; \
|
||||||
|
cat $$err 1>&2; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
|
if test $$failed -ne 0; then \
|
||||||
|
rval=`expr $$rval + $$failed`; \
|
||||||
|
fi; \
|
||||||
|
echo "$$dir: $$passed/$$total tests passed; $$failed/$$total tests failed"; \
|
||||||
|
done; \
|
||||||
|
exit $$rval; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-$(LIBTOOL) --mode=clean rm -f $(TEST_PROGS) *.lo *.o *.la *.a stamp-* core *.core core.* regress/*/*.out
|
||||||
|
|
||||||
|
mostlyclean: clean
|
||||||
|
|
||||||
|
distclean: clean
|
||||||
|
-rm -rf Makefile .libs
|
||||||
|
|
||||||
|
clobber: distclean
|
||||||
|
|
||||||
|
realclean: distclean
|
||||||
|
rm -f TAGS tags
|
||||||
|
|
||||||
|
cleandir: realclean
|
||||||
|
|
||||||
|
# Autogenerated dependencies, do not modify
|
||||||
|
aix.lo: $(srcdir)/aix.c $(incdir)/alloc.h $(incdir)/compat/stdbool.h \
|
||||||
|
$(incdir)/fatal.h $(incdir)/gettext.h $(incdir)/missing.h \
|
||||||
|
$(incdir)/sudo_debug.h $(incdir)/sudo_util.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/aix.c
|
||||||
|
alloc.lo: $(srcdir)/alloc.c $(incdir)/alloc.h $(incdir)/fatal.h \
|
||||||
|
$(incdir)/gettext.h $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/alloc.c
|
||||||
|
atobool.lo: $(srcdir)/atobool.c $(incdir)/compat/stdbool.h $(incdir)/missing.h \
|
||||||
|
$(incdir)/sudo_debug.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/atobool.c
|
||||||
|
atofoo_test.lo: $(srcdir)/regress/atofoo/atofoo_test.c \
|
||||||
|
$(incdir)/compat/stdbool.h $(incdir)/fatal.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/atofoo/atofoo_test.c
|
||||||
|
atoid.lo: $(srcdir)/atoid.c $(incdir)/compat/stdbool.h $(incdir)/gettext.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/sudo_debug.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/atoid.c
|
||||||
|
atomode.lo: $(srcdir)/atomode.c $(incdir)/compat/stdbool.h $(incdir)/gettext.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/sudo_debug.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/atomode.c
|
||||||
|
clock_gettime.lo: $(srcdir)/clock_gettime.c $(incdir)/compat/timespec.h \
|
||||||
|
$(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/clock_gettime.c
|
||||||
|
closefrom.lo: $(srcdir)/closefrom.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/closefrom.c
|
||||||
|
conf_test.lo: $(srcdir)/regress/sudo_conf/conf_test.c \
|
||||||
|
$(incdir)/compat/stdbool.h $(incdir)/missing.h $(incdir)/queue.h \
|
||||||
|
$(incdir)/sudo_conf.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/sudo_conf/conf_test.c
|
||||||
|
event.lo: $(srcdir)/event.c $(incdir)/alloc.h $(incdir)/compat/stdbool.h \
|
||||||
|
$(incdir)/fatal.h $(incdir)/missing.h $(incdir)/queue.h \
|
||||||
|
$(incdir)/sudo_debug.h $(incdir)/sudo_event.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/event.c
|
||||||
|
event_poll.lo: $(srcdir)/event_poll.c $(incdir)/alloc.h \
|
||||||
|
$(incdir)/compat/stdbool.h $(incdir)/fatal.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/queue.h $(incdir)/sudo_debug.h \
|
||||||
|
$(incdir)/sudo_event.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/event_poll.c
|
||||||
|
event_select.lo: $(srcdir)/event_select.c $(incdir)/alloc.h \
|
||||||
|
$(incdir)/compat/stdbool.h $(incdir)/fatal.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/queue.h $(incdir)/sudo_debug.h \
|
||||||
|
$(incdir)/sudo_event.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/event_select.c
|
||||||
|
fatal.lo: $(srcdir)/fatal.c $(incdir)/alloc.h $(incdir)/compat/stdbool.h \
|
||||||
|
$(incdir)/fatal.h $(incdir)/gettext.h $(incdir)/missing.h \
|
||||||
|
$(incdir)/queue.h $(incdir)/sudo_plugin.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fatal.c
|
||||||
|
fileops.lo: $(srcdir)/fileops.c $(incdir)/compat/stdbool.h \
|
||||||
|
$(incdir)/compat/timespec.h $(incdir)/fileops.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/sudo_debug.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fileops.c
|
||||||
|
fmt_string.lo: $(srcdir)/fmt_string.c $(incdir)/compat/stdbool.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/sudo_debug.h \
|
||||||
|
$(incdir)/sudo_util.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fmt_string.c
|
||||||
|
fnm_test.o: $(srcdir)/regress/fnmatch/fnm_test.c $(incdir)/compat/fnmatch.h \
|
||||||
|
$(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/fnmatch/fnm_test.c
|
||||||
|
fnmatch.lo: $(srcdir)/fnmatch.c $(incdir)/compat/charclass.h \
|
||||||
|
$(incdir)/compat/fnmatch.h $(incdir)/missing.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/fnmatch.c
|
||||||
|
getaddrinfo.lo: $(srcdir)/getaddrinfo.c $(incdir)/compat/getaddrinfo.h \
|
||||||
|
$(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getaddrinfo.c
|
||||||
|
getcwd.lo: $(srcdir)/getcwd.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getcwd.c
|
||||||
|
getgrouplist.lo: $(srcdir)/getgrouplist.c $(incdir)/compat/nss_dbdefs.h \
|
||||||
|
$(incdir)/compat/stdbool.h $(incdir)/missing.h \
|
||||||
|
$(incdir)/sudo_util.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getgrouplist.c
|
||||||
|
getline.lo: $(srcdir)/getline.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getline.c
|
||||||
|
getopt_long.lo: $(srcdir)/getopt_long.c $(incdir)/compat/getopt.h \
|
||||||
|
$(incdir)/fatal.h $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/getopt_long.c
|
||||||
|
gidlist.lo: $(srcdir)/gidlist.c $(incdir)/alloc.h $(incdir)/compat/stdbool.h \
|
||||||
|
$(incdir)/fatal.h $(incdir)/gettext.h $(incdir)/missing.h \
|
||||||
|
$(incdir)/sudo_debug.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/gidlist.c
|
||||||
|
glob.lo: $(srcdir)/glob.c $(incdir)/compat/charclass.h $(incdir)/compat/glob.h \
|
||||||
|
$(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/glob.c
|
||||||
|
globtest.o: $(srcdir)/regress/glob/globtest.c $(incdir)/compat/glob.h \
|
||||||
|
$(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/glob/globtest.c
|
||||||
|
hltq_test.lo: $(srcdir)/regress/tailq/hltq_test.c $(incdir)/compat/stdbool.h \
|
||||||
|
$(incdir)/fatal.h $(incdir)/missing.h $(incdir)/queue.h \
|
||||||
|
$(incdir)/sudo_util.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/tailq/hltq_test.c
|
||||||
|
isblank.lo: $(srcdir)/isblank.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/isblank.c
|
||||||
|
lbuf.lo: $(srcdir)/lbuf.c $(incdir)/alloc.h $(incdir)/fatal.h $(incdir)/lbuf.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/sudo_debug.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/lbuf.c
|
||||||
|
locale_stub.lo: $(top_srcdir)/src/locale_stub.c $(incdir)/fatal.h \
|
||||||
|
$(incdir)/gettext.h $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(top_srcdir)/src/locale_stub.c
|
||||||
|
memrchr.lo: $(srcdir)/memrchr.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/memrchr.c
|
||||||
|
memset_s.lo: $(srcdir)/memset_s.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/memset_s.c
|
||||||
|
mksiglist.lo: $(srcdir)/mksiglist.c $(incdir)/compat/mksiglist.h \
|
||||||
|
$(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksiglist.c
|
||||||
|
mksigname.lo: $(srcdir)/mksigname.c $(incdir)/compat/mksigname.h \
|
||||||
|
$(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mksigname.c
|
||||||
|
mktemp.lo: $(srcdir)/mktemp.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/mktemp.c
|
||||||
|
parseln_test.lo: $(srcdir)/regress/sudo_parseln/parseln_test.c \
|
||||||
|
$(incdir)/compat/stdbool.h $(incdir)/fileops.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/regress/sudo_parseln/parseln_test.c
|
||||||
|
progname.lo: $(srcdir)/progname.c $(incdir)/compat/stdbool.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/sudo_util.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/progname.c
|
||||||
|
pw_dup.lo: $(srcdir)/pw_dup.c $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/pw_dup.c
|
||||||
|
secure_path.lo: $(srcdir)/secure_path.c $(incdir)/missing.h \
|
||||||
|
$(incdir)/secure_path.h $(incdir)/sudo_debug.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/secure_path.c
|
||||||
|
setgroups.lo: $(srcdir)/setgroups.c $(incdir)/compat/stdbool.h \
|
||||||
|
$(incdir)/missing.h $(incdir)/sudo_debug.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/setgroups.c
|
||||||
|
sha2.lo: $(srcdir)/sha2.c $(incdir)/compat/endian.h $(incdir)/compat/sha2.h \
|
||||||
|
$(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sha2.c
|
||||||
|
sig2str.lo: $(srcdir)/sig2str.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sig2str.c
|
||||||
|
siglist.lo: siglist.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) siglist.c
|
||||||
|
signame.lo: signame.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) signame.c
|
||||||
|
snprintf.lo: $(srcdir)/snprintf.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/snprintf.c
|
||||||
|
strlcat.lo: $(srcdir)/strlcat.c $(incdir)/missing.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_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) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strlcpy.c
|
||||||
|
strsignal.lo: $(srcdir)/strsignal.c $(incdir)/gettext.h $(incdir)/missing.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strsignal.c
|
||||||
|
strtonum.lo: $(srcdir)/strtonum.c $(incdir)/gettext.h $(incdir)/missing.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/strtonum.c
|
||||||
|
sudo_conf.lo: $(srcdir)/sudo_conf.c $(incdir)/alloc.h \
|
||||||
|
$(incdir)/compat/stdbool.h $(incdir)/fatal.h $(incdir)/fileops.h \
|
||||||
|
$(incdir)/gettext.h $(incdir)/missing.h $(incdir)/queue.h \
|
||||||
|
$(incdir)/secure_path.h $(incdir)/sudo_conf.h \
|
||||||
|
$(incdir)/sudo_debug.h $(incdir)/sudo_plugin.h \
|
||||||
|
$(incdir)/sudo_util.h $(top_builddir)/config.h \
|
||||||
|
$(top_builddir)/pathnames.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_conf.c
|
||||||
|
sudo_debug.lo: $(srcdir)/sudo_debug.c $(incdir)/alloc.h \
|
||||||
|
$(incdir)/compat/stdbool.h $(incdir)/fatal.h \
|
||||||
|
$(incdir)/gettext.h $(incdir)/missing.h $(incdir)/sudo_debug.h \
|
||||||
|
$(incdir)/sudo_plugin.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_debug.c
|
||||||
|
sudo_dso.lo: $(srcdir)/sudo_dso.c $(incdir)/missing.h $(incdir)/sudo_dso.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_dso.c
|
||||||
|
sudo_printf.lo: $(srcdir)/sudo_printf.c $(incdir)/missing.h \
|
||||||
|
$(incdir)/sudo_debug.h $(incdir)/sudo_plugin.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/sudo_printf.c
|
||||||
|
term.lo: $(srcdir)/term.c $(incdir)/compat/stdbool.h $(incdir)/missing.h \
|
||||||
|
$(incdir)/sudo_debug.h $(incdir)/sudo_util.h $(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/term.c
|
||||||
|
ttysize.lo: $(srcdir)/ttysize.c $(incdir)/compat/stdbool.h $(incdir)/missing.h \
|
||||||
|
$(incdir)/sudo_debug.h $(incdir)/sudo_util.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/ttysize.c
|
||||||
|
utimes.lo: $(srcdir)/utimes.c $(incdir)/compat/utime.h $(incdir)/missing.h \
|
||||||
|
$(top_builddir)/config.h
|
||||||
|
$(LIBTOOL) --mode=compile $(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(DEFS) $(srcdir)/utimes.c
|
@@ -59,7 +59,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "missing.h"
|
#include "missing.h"
|
||||||
#include "sha2.h"
|
#include "compat/sha2.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SHA-2 operates on 32-bit and 64-bit words in big endian byte order.
|
* SHA-2 operates on 32-bit and 64-bit words in big endian byte order.
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user