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 16VERSION=@BIND9_VERSION@ 17 18@BIND9_MAKE_INCLUDES@ 19 20CINCLUDES = -I. ${BIND9_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES} \ 21 ${ISCCFG_INCLUDES} ${NS_INCLUDES} \ 22 ${FSTRM_CFLAGS} ${OPENSSL_CFLAGS} 23 24CDEFINES = 25CWARNINGS = 26 27ISCLIBS = ../../lib/isc/libisc.@A@ @NO_LIBTOOL_ISCLIBS@ 28ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@ 29DNSLIBS = ../../lib/dns/libdns.@A@ @NO_LIBTOOL_DNSLIBS@ 30NSLIBS = ../../lib/ns/libns.@A@ 31 32ISCDEPLIBS = ../../lib/isc/libisc.@A@ 33ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@ 34DNSDEPLIBS = ../../lib/dns/libdns.@A@ 35 36LIBS = @LIBS@ 37 38SUBDIRS = include 39 40# Alphabetically 41OBJS = check.@O@ getaddresses.@O@ version.@O@ 42 43# Alphabetically 44SRCS = check.c getaddresses.c version.c 45 46TARGETS = timestamp 47 48@BIND9_MAKE_RULES@ 49 50version.@O@: version.c 51 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \ 52 -DVERSION=\"${VERSION}\" \ 53 -c ${srcdir}/version.c 54 55libbind9.@SA@: ${OBJS} 56 ${AR} ${ARFLAGS} $@ ${OBJS} 57 ${RANLIB} $@ 58 59libbind9.la: ${OBJS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS} ${DNSDEPLIBS} 60 ${LIBTOOL_MODE_LINK} \ 61 ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libbind9.la -rpath ${libdir} \ 62 -release "${VERSION}" \ 63 ${OBJS} ${NSLIBS} ${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} \ 64 @DNS_CRYPTO_LIBS@ ${LIBS} 65 66timestamp: libbind9.@A@ 67 touch timestamp 68 69installdirs: 70 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir} 71 72install:: timestamp installdirs 73 ${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libbind9.@A@ ${DESTDIR}${libdir} 74 75uninstall:: 76 ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${libdir}/libbind9.@A@ 77 78clean distclean:: 79 rm -f libbind9.@A@ timestamp 80