Makefile.in 3.57 KB
Newer Older
Automatic Updater's avatar
Automatic Updater committed
1
# Copyright (C) 2004, 2005, 2007-2009  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2
# Copyright (C) 2000-2002  Internet Software Consortium.
3
#
Automatic Updater's avatar
Automatic Updater committed
4
# Permission to use, copy, modify, and/or distribute this software for any
5 6
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
7
#
Mark Andrews's avatar
Mark Andrews committed
8 9 10 11 12 13 14 15
# 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.

16
# $Id: Makefile.in,v 1.39 2009/09/01 00:22:24 jinmei Exp $
David Lawrence's avatar
David Lawrence committed
17

18 19 20 21
srcdir =	@srcdir@
VPATH =		@srcdir@
top_srcdir =	@top_srcdir@

22 23
@BIND9_VERSION@

24
@BIND9_MAKE_INCLUDES@
25

26
CINCLUDES =	${DNS_INCLUDES} ${ISC_INCLUDES}
27

28
CDEFINES =	-DBIND9 -DVERSION=\"${VERSION}\" 
29 30
CWARNINGS =

31
DNSLIBS =	../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
32 33 34 35 36
ISCLIBS =	../../lib/isc/libisc.@A@

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

Brian Wellington's avatar
Brian Wellington committed
37
DEPLIBS =	${DNSDEPLIBS} ${ISCDEPLIBS}
38

Brian Wellington's avatar
Brian Wellington committed
39 40
LIBS =		${DNSLIBS} ${ISCLIBS} @LIBS@

41
# Alphabetically
Francis Dupont's avatar
Francis Dupont committed
42
TARGETS =	dnssec-keygen@EXEEXT@ dnssec-signzone@EXEEXT@ \
43
		dnssec-keyfromlabel@EXEEXT@ dnssec-dsfromkey@EXEEXT@ \
44
		dnssec-revoke@EXEEXT@ dnssec-settime@EXEEXT@
45

Brian Wellington's avatar
Brian Wellington committed
46 47
OBJS =		dnssectool.@O@

48
SRCS =		dnssec-dsfromkey.c dnssec-keyfromlabel.c dnssec-keygen.c \
49
		dnssec-revoke.c dnssec-settime.c dnssec-signzone.c dnssectool.c
50

51
MANPAGES =	dnssec-dsfromkey.8 dnssec-keyfromlabel.8 dnssec-keygen.8 \
52
		dnssec-revoke.8 dnssec-settime.8 dnssec-signzone.8
53

54
HTMLPAGES =	dnssec-dsfromkey.html dnssec-keyfromlabel.html \
55 56
		dnssec-keygen.html dnssec-revoke.html \
		dnssec-settime.html dnssec-signzone.html 
57 58 59

MANOBJS =	${MANPAGES} ${HTMLPAGES}

60 61
@BIND9_MAKE_RULES@

62 63 64 65
dnssec-dsfromkey@EXEEXT@: dnssec-dsfromkey.@O@ ${OBJS} ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	dnssec-dsfromkey.@O@ ${OBJS} ${LIBS}

Francis Dupont's avatar
Francis Dupont committed
66 67 68 69
dnssec-keyfromlabel@EXEEXT@: dnssec-keyfromlabel.@O@ ${OBJS} ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	dnssec-keyfromlabel.@O@ ${OBJS} ${LIBS}

Mark Andrews's avatar
Mark Andrews committed
70
dnssec-keygen@EXEEXT@: dnssec-keygen.@O@ ${OBJS} ${DEPLIBS}
71
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
72
	dnssec-keygen.@O@ ${OBJS} ${LIBS}
73

74 75 76 77
dnssec-signzone.@O@: dnssec-signzone.c
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" \
		-c ${srcdir}/dnssec-signzone.c

Mark Andrews's avatar
Mark Andrews committed
78
dnssec-signzone@EXEEXT@: dnssec-signzone.@O@ ${OBJS} ${DEPLIBS}
79
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
80
	dnssec-signzone.@O@ ${OBJS} ${LIBS}
81

82 83 84 85
dnssec-revoke@EXEEXT@: dnssec-revoke.@O@ ${OBJS} ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	dnssec-revoke.@O@ ${OBJS} ${LIBS}

86 87 88 89
dnssec-settime@EXEEXT@: dnssec-settime.@O@ ${OBJS} ${DEPLIBS}
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
	dnssec-settime.@O@ ${OBJS} ${LIBS}

90 91 92 93
doc man:: ${MANOBJS}

docclean manclean maintainer-clean::
	rm -f ${MANOBJS}
94 95

installdirs:
96
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
97
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
98

99
install:: ${TARGETS} installdirs
100
	for t in ${TARGETS}; do ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} $$t ${DESTDIR}${sbindir}; done
101
	for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8; done
102 103 104 105

clean distclean::
	rm -f ${TARGETS}