xref: /netbsd-src/external/mpl/dhcp/bind/dist/lib/irs/Makefile.in (revision 4439cfd0acf9c7dc90625e5cd83b2317a9ab8967)
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. -I./include -I${srcdir}/include \
21		${DNS_INCLUDES} ${ISC_INCLUDES} \
22		${ISCCFG_INCLUDES} \
23		${OPENSSL_CFLAGS}
24
25CDEFINES =
26CWARNINGS =
27
28ISCLIBS =	../../lib/isc/libisc.@A@ @NO_LIBTOOL_ISCLIBS@
29
30ISCDEPLIBS =	../../lib/isc/libisc.@A@
31
32DNSLIBS =	../../lib/dns/libdns.@A@ @NO_LIBTOOL_DNSLIBS@
33
34DNSDEPLIBS =	../../lib/dns/libdns.@A@
35
36ISCCFGLIBS =	../../lib/isccfg/libisccfg.@A@
37
38ISCCFGDEPLIBS =	../../lib/isccfg/libisccfg.@A@
39
40LIBS =		@LIBS@
41
42# Alphabetically
43OBJS =		context.@O@ \
44		dnsconf.@O@ \
45		gai_strerror.@O@ getaddrinfo.@O@ getnameinfo.@O@ \
46		resconf.@O@
47
48# Alphabetically
49SRCS =		context.c \
50		dnsconf.c \
51		gai_strerror.c getaddrinfo.c getnameinfo.c \
52		resconf.c
53
54SUBDIRS =	include
55TESTDIRS =	@UNITTESTS@
56TARGETS =	timestamp
57
58@BIND9_MAKE_RULES@
59
60version.@O@: version.c
61	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
62		-DVERSION=\"${VERSION}\" \
63		-c ${srcdir}/version.c
64
65libirs.@SA@: ${OBJS} version.@O@
66	${AR} ${ARFLAGS} $@ ${OBJS} version.@O@
67	${RANLIB} $@
68
69libirs.la: ${OBJS} version.@O@
70	${LIBTOOL_MODE_LINK} \
71		${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libirs.la -rpath ${libdir} \
72		-release "${VERSION}" \
73		${OBJS} version.@O@ ${ISCLIBS} ${DNSLIBS} ${ISCCFGLIBS} ${LIBS}
74
75timestamp: libirs.@A@
76	touch timestamp
77
78testdirs: libirs.@A@
79
80installdirs:
81	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
82
83install:: timestamp installdirs
84	${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libirs.@A@ ${DESTDIR}${libdir}
85
86uninstall::
87	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${libdir}/libirs.@A@
88
89clean distclean::
90	rm -f libirs.@A@ libirs.la timestamp
91