summaryrefslogtreecommitdiffstats
path: root/bin/confgen/Makefile.am
blob: c1dca43194385cacb237b7d64b57c4f60a48d24a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
include $(top_srcdir)/Makefile.top

AM_CPPFLAGS +=			\
	$(LIBISC_CFLAGS)	\
	$(LIBDNS_CFLAGS)	\
	-DRNDC_KEYFILE=\"${sysconfdir}/rndc.key\"

LDADD +=			\
	libconfgen.la		\
	$(LIBISC_LIBS)		\
	$(LIBDNS_LIBS)

noinst_LTLIBRARIES = libconfgen.la

libconfgen_la_SOURCES =		\
	include/confgen/os.h	\
	keygen.c		\
	keygen.h		\
	os.c			\
	util.c			\
	util.h

sbin_PROGRAMS = tsig-keygen rndc-confgen

install-exec-hook:
	ln -f $(DESTDIR)$(sbindir)/tsig-keygen \
	      $(DESTDIR)$(sbindir)/ddns-confgen

uninstall-hook:
	-rm -f $(DESTDIR)$(sbindir)/ddns-confgen