~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to ntpdc/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-01-05 21:10:03 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090105211003-mh6zc3um4k1uhsj7
Tags: 1:4.2.4p4+dfsg-8
It did not properly check the return value of EVP_VerifyFinal
which results in an malformed DSA signature being treated as
a good signature rather than as an error.  (CVE-2009-0021)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
2
 
AUTOMAKE_OPTIONS = ../util/ansi2knr
 
1
AUTOMAKE_OPTIONS=       ../util/ansi2knr
 
2
 
 
3
bindir=         ${exec_prefix}/${BINSUBDIR}
3
4
bin_PROGRAMS=   ntpdc
4
5
EXTRA_PROGRAMS= ntpdc-layout
5
6
EXTRA_DATA=     check-layout
6
 
BUILT_SOURCES=  maybe-layout
7
 
INCLUDES=       -I$(top_srcdir)/include
 
7
BUILT_SOURCES=  @MAKE_CHECK_LAYOUT@
 
8
AM_CPPFLAGS=    -I$(top_srcdir)/include $(LIBOPTS_CFLAGS)
8
9
# LDADD might need RESLIB and ADJLIB
9
 
ntpdc_LDADD=    version.o ../libntp/libntp.a @READLINE_LIBS@
 
10
ntpdc_LDADD=    version.o @READLINE_LIBS@ $(LIBOPTS_LDADD) ../libntp/libntp.a
10
11
# ntpdc-layout doesn't need any additional libraries at all
11
12
ntpdc_layout_LDADD=
12
13
DISTCLEANFILES= .version version.c
13
14
CLEANFILES=     check-layout layout.here nl.c ntpdc-layout
14
15
noinst_HEADERS= ntpdc.h
15
 
EXTRA_DIST=     nl_in.c nl.pl layout.std
16
16
ETAGS_ARGS=     Makefile.am
17
 
 
18
 
ntpdc_SOURCES = ntpdc.c ntpdc_ops.c
19
 
 
20
 
maybe-layout:
21
 
        @case "${PATH_PERL}" in \
22
 
            /*) ${MAKE} check-layout ;; \
23
 
        esac
 
17
EXTRA_DIST=     nl_in.c nl.pl layout.std        \
 
18
                ntpdc-opts.def ntpdc.1 ntpdc-opts.texi ntpdc-opts.menu
 
19
BUILT_SOURCES+= ntpdc-opts.c ntpdc-opts.h ntpdc.1 ntpdc-opts.texi       \
 
20
                ntpdc-opts.menu
 
21
man_MANS=       ntpdc.1
 
22
run_ag=         cd $(srcdir) && autogen -L ../include
 
23
std_def_list=   $(top_srcdir)/include/debug-opt.def             \
 
24
                $(top_srcdir)/include/autogen-version.def       \
 
25
                $(top_srcdir)/include/copyright.def             \
 
26
                $(top_srcdir)/include/homerc.def                \
 
27
                $(top_srcdir)/include/version.def
 
28
 
 
29
$(srcdir)/ntpdc-opts.h: $(srcdir)/ntpdc-opts.c
 
30
$(srcdir)/ntpdc-opts.c: $(srcdir)/ntpdc-opts.def $(std_def_list)
 
31
        $(run_ag) ntpdc-opts.def
 
32
 
 
33
$(srcdir)/ntpdc.1: $(srcdir)/ntpdc-opts.def $(std_def_list)
 
34
        $(run_ag) -Tagman1.tpl -bntpdc ntpdc-opts.def
 
35
 
 
36
$(srcdir)/ntpdc-opts.texi $(srcdir)/ntpdc-opts.menu: $(srcdir)/ntpdc-opts.def $(std_def_list)
 
37
        $(run_ag) -Taginfo.tpl -DLEVEL=section ntpdc-opts.def
 
38
 
 
39
ntpdc_SOURCES = ntpdc.c ntpdc_ops.c ntpdc-opts.c ntpdc-opts.h
24
40
 
25
41
ntpdc-layout.o: nl.c
26
42
 
35
51
../libntp/libntp.a:
36
52
        cd ../libntp && $(MAKE)
37
53
 
 
54
$(top_srcdir)/version :
 
55
        cd $(top_srcdir) && $(MAKE) version
 
56
 
38
57
version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version
39
58
        env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpdc
40
59
        $(COMPILE) -c version.c
41
60
 
42
61
# I ran nl_in.c (attached, to be installed into ntpdc) through
43
62
# $(CC) -E nl_in.c | nl.pl > nl.c
44
 
nl.c: nl_in.c nl.pl
45
 
        $(CC) -E $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(srcdir)/nl_in.c | ./nl.pl > nl.c
 
63
nl.c: nl_in.c nl.pl Makefile.am
 
64
        $(CC) -E $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(srcdir)/nl_in.c | ./nl.pl > nl.c
 
65
 
 
66
include ../bincheck.mf