summaryrefslogtreecommitdiffstats
path: root/plugins/rssm/Makefile.am
blob: 08e44294df532d3d06f3614562f4fc68d6eda95a (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
31
32
33
34
35
36
37
38
39
40
41
42
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
CLEANFILES = $(srcdir)/hashtbl.c \
    hashtbl.c *.gcda *.gcno *.gcov

AM_CFLAGS = -I$(srcdir) \
    -I$(top_srcdir)/src \
    -I$(top_srcdir)/isc \
    $(SECCOMPFLAGS) \
    $(libldns_CFLAGS)

pkglib_LTLIBRARIES = rssm.la
rssm_la_SOURCES = rssm.c
nodist_rssm_la_SOURCES = hashtbl.c
BUILT_SOURCES = hashtbl.c
rssm_la_LDFLAGS = -module -avoid-version $(libldns_LIBS)
TESTS = test1.sh test2.sh test3.sh test4.sh test5.sh
EXTRA_DIST = $(TESTS) test1.gold test2.gold dnscap-rssm-rssac002.1.in \
  test3.gold test5.gold
dist_bin_SCRIPTS = dnscap-rssm-rssac002
man1_MANS = dnscap-rssm-rssac002.1
CLEANFILES += test1.20161020.152301.075993 test2.out $(man1_MANS) \
  test3.20181127.155200.414188 test4.*20161020.152301.075993 \
  test5.20180110.112241.543825

if ENABLE_GCOV
gcov-local:
	for src in $(rssm_la_SOURCES) $(nodist_rssm_la_SOURCES); do \
	  gcov -o .libs -l -r -s "$(srcdir)" "$$src"; \
	done
endif

hashtbl.c: $(top_srcdir)/src/hashtbl.c
	cp $(top_srcdir)/src/hashtbl.c ./

$(srcdir)/hashtbl.c: $(top_srcdir)/src/hashtbl.c
	cp $(top_srcdir)/src/hashtbl.c $(srcdir)/

dnscap-rssm-rssac002.1: dnscap-rssm-rssac002.1.in Makefile
	sed -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
        -e 's,[@]PACKAGE_URL[@],$(PACKAGE_URL),g' \
        -e 's,[@]PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g' \
        < $(srcdir)/dnscap-rssm-rssac002.1.in > dnscap-rssm-rssac002.1