xref: /netbsd-src/external/mpl/bind/dist/bin/plugins/Makefile.in (revision a45db23f655e22f0c2354600d3b3c2cb98abf2dc)
1# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2#
3# SPDX-License-Identifier: MPL-2.0
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0.  If a copy of the MPL was not distributed with this
7# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8#
9# See the COPYRIGHT file distributed with this work for additional
10# information regarding copyright ownership.
11
12srcdir =	@srcdir@
13VPATH =		@srcdir@
14top_srcdir =	@top_srcdir@
15
16@BIND9_MAKE_INCLUDES@
17
18CINCLUDES =	-I${srcdir}/include -I${srcdir}/unix/include -I. \
19		${NS_INCLUDES} ${DNS_INCLUDES} \
20		${ISCCFG_INCLUDES} ${ISC_INCLUDES}
21
22DNSLIBS =	../../lib/dns/libdns.@A@ @NO_LIBTOOL_DNSLIBS@
23ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
24ISCLIBS =	../../lib/isc/libisc.@A@ @NO_LIBTOOL_ISCLIBS@
25NSLIBS =	../../lib/ns/libns.@A@
26
27LIBS =
28
29SO_TARGETS =	lib/filter-aaaa.@SO@
30SO_INSTALL =	filter-aaaa.@SO@
31TARGETS =	@SO_TARGETS@
32
33SO_OBJS =	filter-aaaa.@O@
34SO_SRCS =	filter-aaaa.c
35
36CFLAGS =	@CFLAGS@ @SO_CFLAGS@
37SO_LDFLAGS =	@LDFLAGS@ @SO_LDFLAGS@
38
39@BIND9_MAKE_RULES@
40
41lib/filter-aaaa.@SO@: filter-aaaa.@SO@
42	$(SHELL) ${top_srcdir}/mkinstalldirs `pwd`/lib
43	${LIBTOOL_MODE_INSTALL} ${INSTALL} filter-aaaa.@SO@ `pwd`/lib
44
45filter-aaaa.@SO@: filter-aaaa.@O@
46	${LIBTOOL_MODE_LINK} @SO_LD@ ${SO_LDFLAGS} -o $@ \
47		filter-aaaa.@O@ ${LIBS}
48
49clean distclean::
50	rm -f filter-aaaa.so
51	rm -f ${TARGETS} ${OBJS}
52
53installdirs:
54	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${plugindir}
55
56install:: @SO_TARGETS@ installdirs
57	for i in ${SO_INSTALL} ; \
58	do \
59		if test -f $$i ; \
60		then \
61			${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} $$i \
62				 ${DESTDIR}${plugindir}; \
63		fi \
64	done
65
66uninstall::
67	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${plugindir}/filter-aaaa.@SO@
68