summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/ntpdc/Makefile.am
blob: 19e9cfa792436b38aac4501049d9911a4fa96f21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#AUTOMAKE_OPTIONS = ../util/ansi2knr no-dependencies
AUTOMAKE_OPTIONS = ../util/ansi2knr
bin_PROGRAMS = ntpdc
INCLUDES = -I$(top_srcdir)/include
# LDADD might need RESLIB and ADJLIB
LDADD =	version.o ../libntp/libntp.a @LIBRSAREF@ 
DISTCLEANFILES = .version version.c
noinst_HEADERS = ntpdc.h
#EXTRA_DIST = ntpdc.mak
ETAGS_ARGS = Makefile.am

ntpdc_SOURCES = ntpdc.c ntpdc_ops.c

$(PROGRAMS): $(LDADD)

../libntp/libntp.a:
	cd ../libntp && $(MAKE)

version.o: $(ntpdc_OBJECTS) ../libntp/libntp.a @LIBRSAREF@ Makefile
	$(top_builddir)/scripts/mkver ntpdc
	$(COMPILE) -c version.c
OpenPOWER on IntegriCloud