Makefile.in 2.38 KB
Newer Older
Mark Andrews's avatar
Mark Andrews committed
1
# Copyright (C) 2004, 2007, 2009, 2012, 2014  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2 3 4 5 6 7 8 9 10 11 12 13 14
# Copyright (C) 2001  Internet Software Consortium.
#
# 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.
15

16
# $Id: Makefile.in,v 1.14 2009/12/05 23:31:40 each Exp $
17 18 19 20 21 22 23 24 25 26 27 28 29 30

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

@BIND9_VERSION@

@LIBBIND9_API@

@BIND9_MAKE_INCLUDES@

CINCLUDES =	-I. ${BIND9_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES} \
		${ISCCFG_INCLUDES}

31
CDEFINES =
32 33
CWARNINGS =

34
ISCLIBS =	../../lib/isc/libisc.@A@
Mark Andrews's avatar
Mark Andrews committed
35
ISCCFGLIBS =    ../../lib/isccfg/libisccfg.@A@
Mark Andrews's avatar
Mark Andrews committed
36
DNSLIBS =    ../../lib/dns/libdns.@A@
37 38

ISCDEPLIBS =	../../lib/isc/libisc.@A@
39
ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
Mark Andrews's avatar
Mark Andrews committed
40
DNSDEPLIBS =    ../../lib/dns/libdns.@A@
41

42 43 44 45 46
LIBS =		@LIBS@

SUBDIRS =	include

# Alphabetically
47
OBJS =		check.@O@ getaddresses.@O@ version.@O@
48 49

# Alphabetically
50
SRCS =		check.c getaddresses.c version.c
51 52 53 54 55 56

TARGETS = 	timestamp

@BIND9_MAKE_RULES@

version.@O@: version.c
57
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
58 59 60 61 62 63 64 65 66 67
		-DVERSION=\"${VERSION}\" \
		-DLIBINTERFACE=${LIBINTERFACE} \
		-DLIBREVISION=${LIBREVISION} \
		-DLIBAGE=${LIBAGE} \
		-c ${srcdir}/version.c

libbind9.@SA@: ${OBJS}
	${AR} ${ARFLAGS} $@ ${OBJS}
	${RANLIB} $@

Mark Andrews's avatar
Mark Andrews committed
68
libbind9.la: ${OBJS} ${ISCCFGDEPLIBS} ${ISCDEPLIBS} ${DNSDEPLIBS}
69
	${LIBTOOL_MODE_LINK} \
70
		${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libbind9.la -rpath ${libdir} \
71
		-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
Mark Andrews's avatar
Mark Andrews committed
72 73
		${OBJS} ${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ \
		${LIBS}
74 75 76 77 78 79 80 81

timestamp: libbind9.@A@
	touch timestamp

installdirs:
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}

install:: timestamp installdirs
82
	${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libbind9.@A@ ${DESTDIR}${libdir}
83 84 85

clean distclean::
	rm -f libbind9.@A@ timestamp