Update repub branch u/fanf2/patch to rebasing branch u/fanf2/rebasing revision v9_13_...
[ipreg/bind9.git] / bin / dnssec / Makefile.in
CommitLineData
843d3896 1# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
bf8267aa 2#
0c27b3fe
MA
3# This Source Code Form is subject to the terms of the Mozilla Public
4# License, v. 2.0. If a copy of the MPL was not distributed with this
5# file, You can obtain one at http://mozilla.org/MPL/2.0/.
843d3896
OS
6#
7# See the COPYRIGHT file distributed with this work for additional
8# information regarding copyright ownership.
dafcb997 9
95be83b4
AG
10srcdir = @srcdir@
11VPATH = @srcdir@
12top_srcdir = @top_srcdir@
13
e13d04fd 14VERSION=@BIND9_VERSION@
31874cf8 15
c2bc56dc 16@BIND9_MAKE_INCLUDES@
95be83b4 17
c3b8130f 18CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} @OPENSSL_INCLUDES@
95be83b4 19
c3b8130f 20CDEFINES = -DVERSION=\"${VERSION}\"
95be83b4
AG
21CWARNINGS =
22
0e40083f 23DNSLIBS = ../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
71877806
OS
24ISCLIBS = ../../lib/isc/libisc.@A@ @OPENSSL_LIBS@
25ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@ @OPENSSL_LIBS@
95be83b4
AG
26
27DNSDEPLIBS = ../../lib/dns/libdns.@A@
28ISCDEPLIBS = ../../lib/isc/libisc.@A@
29
dbb01276 30DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
95be83b4 31
dbb01276 32LIBS = ${DNSLIBS} ${ISCLIBS} @LIBS@
5ec27bc7 33
dbb01276 34NOSYMLIBS = ${DNSLIBS} ${ISCNOSYMLIBS} @LIBS@
a27fe4c9 35
95be83b4 36# Alphabetically
ba37674d
EH
37TARGETS = dnssec-cds@EXEEXT@ dnssec-dsfromkey@EXEEXT@ \
38 dnssec-importkey@EXEEXT@ dnssec-keyfromlabel@EXEEXT@ \
39 dnssec-keygen@EXEEXT@ dnssec-revoke@EXEEXT@ \
40 dnssec-settime@EXEEXT@ dnssec-signzone@EXEEXT@ \
41 dnssec-verify@EXEEXT@
95be83b4 42
5ec27bc7
BW
43OBJS = dnssectool.@O@
44
ba37674d
EH
45SRCS = dnssec-cds.c dnssec-dsfromkey.c dnssec-importkey.c \
46 dnssec-keyfromlabel.c dnssec-keygen.c dnssec-revoke.c \
47 dnssec-settime.c dnssec-signzone.c dnssec-verify.c \
48 dnssectool.c
95be83b4 49
ba37674d
EH
50MANPAGES = dnssec-cds.8 dnssec-dsfromkey.8 dnssec-importkey.8 \
51 dnssec-keyfromlabel.8 dnssec-keygen.8 dnssec-revoke.8 \
52 dnssec-settime.8 dnssec-signzone.8 dnssec-verify.8
01b8865b 53
ba37674d
EH
54HTMLPAGES = dnssec-cds.html dnssec-dsfromkey.html \
55 dnssec-importkey.html dnssec-keyfromlabel.html \
553ead32 56 dnssec-keygen.html dnssec-revoke.html \
ad127d83 57 dnssec-settime.html dnssec-signzone.html \
ba37674d 58 dnssec-verify.html
0b062f49
BW
59
60MANOBJS = ${MANPAGES} ${HTMLPAGES}
61
95be83b4
AG
62@BIND9_MAKE_RULES@
63
ba37674d
EH
64dnssec-cds@EXEEXT@: dnssec-cds.@O@ ${OBJS} ${DEPLIBS}
65 export BASEOBJS="dnssec-cds.@O@ ${OBJS}"; \
66 ${FINALBUILDCMD}
67
582f8b9a 68dnssec-dsfromkey@EXEEXT@: dnssec-dsfromkey.@O@ ${OBJS} ${DEPLIBS}
a27fe4c9
TJ
69 export BASEOBJS="dnssec-dsfromkey.@O@ ${OBJS}"; \
70 ${FINALBUILDCMD}
582f8b9a 71
2a31bd53 72dnssec-keyfromlabel@EXEEXT@: dnssec-keyfromlabel.@O@ ${OBJS} ${DEPLIBS}
a27fe4c9
TJ
73 export BASEOBJS="dnssec-keyfromlabel.@O@ ${OBJS}"; \
74 ${FINALBUILDCMD}
2a31bd53 75
f4cbe536 76dnssec-keygen@EXEEXT@: dnssec-keygen.@O@ ${OBJS} ${DEPLIBS}
a27fe4c9
TJ
77 export BASEOBJS="dnssec-keygen.@O@ ${OBJS}"; \
78 ${FINALBUILDCMD}
95be83b4 79
52e6d50b
MA
80dnssec-signzone.@O@: dnssec-signzone.c
81 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" \
82 -c ${srcdir}/dnssec-signzone.c
83
f4cbe536 84dnssec-signzone@EXEEXT@: dnssec-signzone.@O@ ${OBJS} ${DEPLIBS}
a27fe4c9
TJ
85 export BASEOBJS="dnssec-signzone.@O@ ${OBJS}"; \
86 ${FINALBUILDCMD}
95be83b4 87
ad127d83
MA
88dnssec-verify.@O@: dnssec-verify.c
89 ${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" \
90 -c ${srcdir}/dnssec-verify.c
91
92dnssec-verify@EXEEXT@: dnssec-verify.@O@ ${OBJS} ${DEPLIBS}
93 export BASEOBJS="dnssec-verify.@O@ ${OBJS}"; \
94 ${FINALBUILDCMD}
95
cfb1587e
EH
96dnssec-revoke@EXEEXT@: dnssec-revoke.@O@ ${OBJS} ${DEPLIBS}
97 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
98 dnssec-revoke.@O@ ${OBJS} ${LIBS}
99
553ead32
EH
100dnssec-settime@EXEEXT@: dnssec-settime.@O@ ${OBJS} ${DEPLIBS}
101 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
102 dnssec-settime.@O@ ${OBJS} ${LIBS}
103
0c91911b
MA
104dnssec-importkey@EXEEXT@: dnssec-importkey.@O@ ${OBJS} ${DEPLIBS}
105 ${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
106 dnssec-importkey.@O@ ${OBJS} ${LIBS}
107
0b062f49
BW
108doc man:: ${MANOBJS}
109
110docclean manclean maintainer-clean::
111 rm -f ${MANOBJS}
95be83b4
AG
112
113installdirs:
922e6a3c 114 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
01b8865b 115 $(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
95be83b4 116
69380eb0 117install:: ${TARGETS} installdirs
25248eb0
OS
118 for t in ${TARGETS}; do ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} $$t ${DESTDIR}${sbindir} || exit 1; done
119 for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8 || exit 1; done
0b062f49 120
6087f87a 121uninstall::
25248eb0
OS
122 for m in ${MANPAGES}; do rm -f ${DESTDIR}${mandir}/man8/$$m || exit 1; done
123 for t in ${TARGETS}; do ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/$$t || exit 1; done
6087f87a 124
0b062f49
BW
125clean distclean::
126 rm -f ${TARGETS}