Makefile.in 2.53 KB
Newer Older
Mark Andrews's avatar
Mark Andrews committed
1
# Copyright (C) 2004, 2005  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
2
# Copyright (C) 2000-2002  Internet Software Consortium.
3
#
4
5
6
# Permission to use, copy, modify, and 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.
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.

Mark Andrews's avatar
Mark Andrews committed
16
# $Id: Makefile.in,v 1.30 2005/05/02 00:26:28 marka 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 =	-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
Mark Andrews's avatar
Mark Andrews committed
42
TARGETS =	dnssec-keygen@EXEEXT@ dnssec-signzone@EXEEXT@
43

Brian Wellington's avatar
Brian Wellington committed
44
45
OBJS =		dnssectool.@O@

46
SRCS =		dnssec-keygen.c dnssec-signzone.c dnssectool.c
47

48
MANPAGES =	dnssec-keygen.8 dnssec-signzone.8
49

50
HTMLPAGES =	dnssec-keygen.html dnssec-signzone.html
51
52
53

MANOBJS =	${MANPAGES} ${HTMLPAGES}

54
55
@BIND9_MAKE_RULES@

Mark Andrews's avatar
Mark Andrews committed
56
dnssec-keygen@EXEEXT@: dnssec-keygen.@O@ ${OBJS} ${DEPLIBS}
57
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
58
	dnssec-keygen.@O@ ${OBJS} ${LIBS}
59

60
61
62
63
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
64
dnssec-signzone@EXEEXT@: dnssec-signzone.@O@ ${OBJS} ${DEPLIBS}
65
	${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
66
	dnssec-signzone.@O@ ${OBJS} ${LIBS}
67

68
69
70
71
doc man:: ${MANOBJS}

docclean manclean maintainer-clean::
	rm -f ${MANOBJS}
72
73

installdirs:
74
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
75
	$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man8
76

77
install:: ${TARGETS} installdirs
78
	for t in ${TARGETS}; do ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} $$t ${DESTDIR}${sbindir}; done
79
	for m in ${MANPAGES}; do ${INSTALL_DATA} ${srcdir}/$$m ${DESTDIR}${mandir}/man8; done
80
81
82
83

clean distclean::
	rm -f ${TARGETS}