1196434Sdougb# Copyright Internet Systems Consortium, Inc. ("ISC") 2196434Sdougb# 3196434Sdougb# This Source Code Form is subject to the terms of the Mozilla Public 4196434Sdougb# License, v. 2.0. If a copy of the MPL was not distributed with this 5196434Sdougb# file, you can obtain one at https://mozilla.org/MPL/2.0/. 6196434Sdougb 7196434Sdougb# Copyright (C) Stichting NLnet, Netherlands, stichting@nlnet.nl. 8196434Sdougb# 9196434Sdougb# The development of Dynamically Loadable Zones (DLZ) for Bind 9 was 10196434Sdougb# conceived and contributed by Rob Butler. 11196434Sdougb# 12196434Sdougb# SPDX-License-Identifier: ISC and MPL-2.0 13196434Sdougb# 14196434Sdougb# Permission to use, copy, modify, and distribute this software for any purpose 15196434Sdougb# with or without fee is hereby granted, provided that the above copyright 16196434Sdougb# notice and this permission notice appear in all copies. 17196434Sdougb# 18196434Sdougb# THE SOFTWARE IS PROVIDED "AS IS" AND STICHTING NLNET DISCLAIMS ALL WARRANTIES 19196434Sdougb# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 20196434Sdougb# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL STICHTING NLNET BE LIABLE FOR 21196434Sdougb# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 22196434Sdougb# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 23196434Sdougb# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 24196434Sdougb# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 25196434Sdougb 26196434Sdougbprefix = /usr 27196434Sdougblibdir = $(prefix)/lib/bind9 28196434Sdougb 29196434SdougbCFLAGS += -fPIC -g -I../include 30196434SdougbBDB_LIBS=-ldb 31196434Sdougb 32196434Sdougball: dlz_bdbhpt_dynamic.so 33196434Sdougb 34196434Sdougbdlz_bdbhpt_dynamic.so: dlz_bdbhpt_dynamic.c 35196434Sdougb $(CC) $(CFLAGS) -shared -o dlz_bdbhpt_dynamic.so \ 36196434Sdougb dlz_bdbhpt_dynamic.c $(BDB_LIBS) 37196434Sdougb 38196434Sdougbclean: 39196434Sdougb rm -f dlz_bdbhpt_dynamic.so 40196434Sdougb 41196434Sdougbinstall: dlz_bdbhpt_dynamic.so 42196434Sdougb mkdir -p $(DESTDIR)$(libdir) 43196434Sdougb install dlz_bdbhpt_dynamic.so $(DESTDIR)$(libdir) 44196434Sdougb