+* [Bug 1382] p245 configure --disable-dependency-tracking won't build.
(4.2.5p245-RC) 2009/11/14 Released by Harlan Stenn <stenn@ntp.org>
* Cleanup from Dave Mills.
* [Bug 1343] sntp illegal C does not compile on Solaris 7.
\
$(NULL)
+CLEANFILES =
DISTCLEANFILES = .gcc-warning
ETAGS_ARGS = Makefile.am configure.ac
bindir= ${exec_prefix}/${BINSUBDIR}
bin_PROGRAMS= @MAKE_ADJTIMED@
BUILT_SOURCES=
+CLEANFILES=
EXTRA_PROGRAMS= adjtimed
AM_CPPFLAGS= -I$(top_srcdir)/include
LDADD= ../libntp/libntp.a
ETAGS_ARGS = Makefile.am
#EXTRA_DIST = TAGS
BUILT_SOURCES =
+CLEANFILES =
# clktest-opts.def wants ../include/copyright.def ../include/homerc.def
chmod ug+w $@
@cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
$(MAKE) clean && \
- echo -n "Prior $(abs_builddir)/$(DEPDIR) version " && \
+ echo -n "Prior $(subdir)/$(DEPDIR) version " && \
cat $@ && \
rm -rf $(DEPDIR) && \
- mkdir $(DEPDIR) && ( \
- cd $(top_builddir) && \
- ./config.status \
- ) && \
- echo -n "Cleaned $(abs_builddir)/$(DEPDIR) version " && \
+ mkdir $(DEPDIR) && \
+ case "$(top_builddir)" in \
+ .) \
+ ./config.status Makefile depfiles \
+ ;; \
+ ..) \
+ cd .. && \
+ ./config.status $(subdir)/Makefile depfiles && \
+ cd $(subdir) \
+ ;; \
+ *) \
+ echo 'Fatal: depsver.mf Automake fragment limited' \
+ 'to immediate subdirectories.' && \
+ echo "top_builddir: $(top_builddir)" && \
+ echo "subdir: $(subdir)" && \
+ exit 1 \
+ ;; \
+ esac && \
+ echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
cat $(top_srcdir)/deps-ver \
)
cp $(top_srcdir)/deps-ver $@
-BUILT_SOURCES += $(DEPDIR)/deps-ver
+.deps-ver: $(top_srcdir)/deps-ver
+ @[ ! -d $(DEPDIR) ] || $(MAKE) $(DEPDIR)/deps-ver
+ @touch $@
+
+BUILT_SOURCES += .deps-ver
+CLEANFILES += .deps-ver
#
# depsver.mf included in Makefile.am for directories with .deps
# their updated .deps files, then remove $(DEPDIR) and recreate it as
# empty stubs.
#
+# It is normal when configured with --disable-dependency-tracking for
+# the DEPDIR to not have been created. For this reason, we use the
+# intermediate target .deps-ver, which invokes make recursively if
+# DEPDIR exists.
+#
# If you modify depsver.mf, please make the changes to the master
# copy, the one in sntp is copied by the bootstrap script from it.
#
extern int droproot; /* flag: try to drop root privileges after startup */
extern char *user; /* user to switch to */
extern char *group; /* group to switch to */
-extern char *chrootdir; /* directory to chroot to */
+extern const char *chrootdir; /* directory to chroot to */
#endif
/* refclock_conf.c */
#AUTOMAKE_OPTIONS = ../ansi2knr no-dependencies
AUTOMAKE_OPTIONS =
BUILT_SOURCES =
+CLEANFILES =
noinst_LIBRARIES = libntp.a @MAKE_LIBNTPSIM@
EXTRA_LIBRARIES = libntpsim.a
libntp_a_SRCS = \
if (HAVE_OPT( USER )) {
#ifdef HAVE_DROPROOT
- char *ntp_optarg = OPT_ARG( USER );
-
droproot = 1;
- user = emalloc(strlen(ntp_optarg) + 1);
- (void)strncpy(user, ntp_optarg, strlen(ntp_optarg) + 1);
+ user = estrdup(OPT_ARG( USER ));
group = rindex(user, ':');
if (group)
*group++ = '\0'; /* get rid of the ':' */
int droproot = 0;
char *user = NULL; /* User to switch to */
char *group = NULL; /* group to switch to */
-char *chrootdir = NULL; /* directory to chroot to */
+const char *chrootdir = NULL; /* directory to chroot to */
int sw_uid;
int sw_gid;
char *endp;
AUTOMAKE_OPTIONS=
BUILT_SOURCES=
+CLEANFILES=
bindir= ${exec_prefix}/${BINSUBDIR}
#bin_PROGRAMS= ntpdate ntptimeset
bin_PROGRAMS= ntpdate
# HMS: I don't think we need libntpq_a_LIBADD...
#libntpq_a_LIBADD= version.o @EDITLINE_LIBS@ $(LIBOPTS_LDADD) ../libntp/libntp.a
libntpq_a_CFLAGS= -DNO_MAIN_ALLOWED -DBUILD_AS_LIB
+CLEANFILES=
DISTCLEANFILES= .version version.c
ETAGS_ARGS= Makefile.am
EXTRA_DIST= ntpq-opts.def ntpq.1 ntpq-opts.texi ntpq-opts.menu
ntpsnmpd-opts.menu ntpv4-mib.mib
BUILT_SOURCES= ntpsnmpd-opts.c ntpsnmpd-opts.h ntpsnmpd.1 ntpsnmpd-opts.texi \
ntpsnmpd-opts.menu
+CLEANFILES=
man_MANS= ntpsnmpd.1
run_ag= cd $(srcdir) && autogen -L ../include --writable
std_def_list= $(top_srcdir)/include/autogen-version.def \
#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
AUTOMAKE_OPTIONS =
BUILT_SOURCES =
+CLEANFILES =
noinst_PROGRAMS = @TESTDCF@ @DCFD@
EXTRA_PROGRAMS = testdcf dcfd
bindir= ${exec_prefix}/${BINSUBDIR}
bin_PROGRAMS= sntp
+CLEANFILES=
SUBDIRS=
if NEED_LIBOPTS
EXTRA_DIST= ntp-keygen-opts.def ntp-keygen.1 ntp-keygen-opts.texi ntp-keygen-opts.menu
BUILT_SOURCES= ntp-keygen-opts.c ntp-keygen-opts.h ntp-keygen.1 \
ntp-keygen-opts.texi ntp-keygen-opts.menu
+CLEANFILES=
man_MANS= ntp-keygen.1
run_ag= cd $(srcdir) && autogen -L ../include --writable
std_def_list= $(top_srcdir)/include/debug-opt.def \