Makefile.in 1.76 KB
Newer Older
Evan Hunt's avatar
Evan Hunt committed
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
# Copyright (C) 2015  Internet Systems Consortium, Inc. ("ISC")
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.

srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

@BIND9_MAKE_INCLUDES@

CINCLUDES =	${DNS_INCLUDES} ${ISC_INCLUDES}

CDEFINES =
CWARNINGS =

DNSLIBS =	../../../../../lib/dns/libdns.@A@
ISCLIBS =	../../../../../lib/isc/libisc.@A@

DNSDEPLIBS =	../../../../../lib/dns/libdns.@A@
ISCDEPLIBS =	../../../../../lib/isc/libisc.@A@

DEPLIBS =	${DNSDEPLIBS} ${ISCDEPLIBS}

LIBS =		${DNSLIBS} ${ISCLIBS} @LIBS@


SRCS =		db.c driver.c instance.c \
		lock.c log.c syncptr.c zone.c

OBJS =		db.@O@ driver.@O@ instance.@O@ \
		lock.@O@ log.@O@ syncptr.@O@ zone.@O@

Mark Andrews's avatar
Mark Andrews committed
43
TARGETS =	lib/sample.@SO@
Evan Hunt's avatar
Evan Hunt committed
44 45 46 47 48 49

@BIND9_MAKE_RULES@

CFLAGS =	@CFLAGS@ @SO_CFLAGS@
SO_LDFLAGS =	@LDFLAGS@ @SO_LDFLAGS@

Mark Andrews's avatar
Mark Andrews committed
50 51 52 53
lib/sample.@SO@: sample.@SO@
	$(SHELL) ${top_srcdir}/mkinstalldirs `pwd`/lib
	${LIBTOOL_MODE_INSTALL} ${INSTALL} sample.@SO@ `pwd`/lib

Mark Andrews's avatar
Mark Andrews committed
54
sample.@SO@: ${OBJS} ${DNSDEPLIBS} ${ISCDEPLIBS}
Evan Hunt's avatar
Evan Hunt committed
55
	${LIBTOOL_MODE_LINK} @SO_LD@ ${SO_LDFLAGS} -o $@ ${OBJS} \
Mark Andrews's avatar
Mark Andrews committed
56
		${DNSLIBS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
Evan Hunt's avatar
Evan Hunt committed
57 58

clean distclean::
Mark Andrews's avatar
Mark Andrews committed
59
	rm -f ${OBJS} sample.so lib/sample.so