~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): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
2
2
AUTOMAKE_OPTIONS = ../util/ansi2knr
3
 
bin_PROGRAMS = ntpdc
4
 
INCLUDES = -I$(top_srcdir)/include
 
3
bin_PROGRAMS=   ntpdc
 
4
EXTRA_PROGRAMS= ntpdc-layout
 
5
EXTRA_DATA=     check-layout
 
6
BUILT_SOURCES=  maybe-layout
 
7
INCLUDES=       -I$(top_srcdir)/include
5
8
# LDADD might need RESLIB and ADJLIB
6
 
LDADD = version.o ../libntp/libntp.a @LIBRSAREF@ 
7
 
DISTCLEANFILES = .version version.c
8
 
noinst_HEADERS = ntpdc.h
9
 
#EXTRA_DIST = ntpdc.mak
10
 
ETAGS_ARGS = Makefile.am
 
9
ntpdc_LDADD=    version.o ../libntp/libntp.a @READLINE_LIBS@
 
10
# ntpdc-layout doesn't need any additional libraries at all
 
11
ntpdc_layout_LDADD=
 
12
DISTCLEANFILES= .version version.c
 
13
CLEANFILES=     check-layout layout.here nl.c ntpdc-layout
 
14
noinst_HEADERS= ntpdc.h
 
15
EXTRA_DIST=     nl_in.c nl.pl layout.std
 
16
ETAGS_ARGS=     Makefile.am
11
17
 
12
18
ntpdc_SOURCES = ntpdc.c ntpdc_ops.c
13
19
 
 
20
maybe-layout:
 
21
        @case "${PATH_PERL}" in \
 
22
            /*) ${MAKE} check-layout ;; \
 
23
        esac
 
24
 
 
25
ntpdc-layout.o: nl.c
 
26
 
 
27
layout.here: ntpdc-layout
 
28
        ./ntpdc-layout > $@
 
29
 
 
30
check-layout: ntpdc-layout layout.std layout.here
 
31
        cmp $(srcdir)/layout.std layout.here && echo stamp > $@
 
32
 
14
33
$(PROGRAMS): $(LDADD)
15
34
 
16
35
../libntp/libntp.a:
17
36
        cd ../libntp && $(MAKE)
18
37
 
19
 
version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a @LIBRSAREF@ Makefile
20
 
        $(top_builddir)/scripts/mkver ntpdc
 
38
version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a Makefile $(top_srcdir)/version
 
39
        env CSET=`cat $(top_srcdir)/version` $(top_builddir)/scripts/mkver ntpdc
21
40
        $(COMPILE) -c version.c
 
41
 
 
42
# I ran nl_in.c (attached, to be installed into ntpdc) through
 
43
# $(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