summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/lib/isc/Makefile.in
blob: 1f624aa6cd402e42003612a2fd2bb70fe0c8da2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# 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.

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

VERSION=@BIND9_VERSION@

@LIBISC_API@

@BIND9_MAKE_INCLUDES@

CINCLUDES =	-I${srcdir}/unix/include \
		-I${srcdir}/nothreads/include \
		-I./include \
		-I${srcdir}/include ${DNS_INCLUDES} @ISC_OPENSSL_INC@
CDEFINES =	@CRYPTO@
CWARNINGS =

# Alphabetically
UNIXOBJS =	@ISC_ISCIPV6_O@ @ISC_ISCPK11_API_O@ \
		unix/app.@O@ unix/dir.@O@ unix/errno.@O@ \
		unix/errno2result.@O@ unix/file.@O@ unix/fsaccess.@O@ \
		unix/net.@O@ \
		unix/socket.@O@ unix/stdio.@O@ \
		unix/stdtime.@O@ unix/strerror.@O@ unix/syslog.@O@ unix/time.@O@

THREADOPTOBJS = nothreads/condition.@O@

THREADOBJS =	nothreads/thread.@O@

# Alphabetically
OBJS =		@ISC_EXTRA_OBJS@ @ISC_PK11_O@ @ISC_PK11_RESULT_O@ \
		aes.@O@ assertions.@O@ base32.@O@ base64.@O@ \
		buffer.@O@ bufferlist.@O@ \
		commandline.@O@ error.@O@ event.@O@ \
		hash.@O@ heap.@O@ hex.@O@ hmacmd5.@O@ hmacsha.@O@ \
		inet_aton.@O@ iterated_hash.@O@ \
		lex.@O@ log.@O@ \
		md5.@O@ \
		netaddr.@O@ netscope.@O@ \
		parseint.@O@ \
		refcount.@O@ region.@O@ regex.@O@ result.@O@ \
		rwlock.@O@ \
		safe.@O@ serial.@O@ sha1.@O@ sha2.@O@ sockaddr.@O@ \
		symtab.@O@ task.@O@ \
		timer.@O@ version.@O@ \
		${UNIXOBJS} ${THREADOBJS}

# Alphabetically
SRCS =		@ISC_EXTRA_SRCS@ @ISC_PK11_C@ @ISC_PK11_RESULT_C@ \
		aes.c assertions.c base32.c base64.c \
		buffer.c bufferlist.c commandline.c \
		error.c event.c heap.c hex.c hmacmd5.c hmacsha.c \
		inet_aton.c iterated_hash.c \
		md5.c \
		lex.c log.c \
		netaddr.c netscope.c \
		parseint.c \
		refcount.c region.c regex.c result.c rwlock.c \
		safe.c serial.c sha1.c sha2.c sockaddr.c \
		symtab.c task.c timer.c \
		version.c

LIBS =		@ISC_OPENSSL_LIBS@ @LIBS@

# Note: the order of SUBDIRS is important.
# Attempt to disable parallel processing.
.NOTPARALLEL:
.NO_PARALLEL:
SUBDIRS =	include unix nothreads
TARGETS =	timestamp
TESTDIRS =	@UNITTESTS@

@BIND9_MAKE_RULES@

safe.@O@: safe.c
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} @CCNOOPT@ \
		-c ${srcdir}/safe.c

version.@O@: version.c
	${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
		-DVERSION=\"${VERSION}\" \
		-DLIBINTERFACE=${LIBINTERFACE} \
		-DLIBREVISION=${LIBREVISION} \
		-DLIBAGE=${LIBAGE} \
		-c ${srcdir}/version.c

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

libisc.la: ${OBJS}
	${LIBTOOL_MODE_LINK} \
		${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libisc.la -rpath ${libdir} \
		-version-info ${LIBINTERFACE}:${LIBREVISION}:${LIBAGE} \
		${OBJS} ${LIBS}

timestamp: libisc.@A@
	touch timestamp

testdirs: libisc.@A@

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

install:: timestamp installdirs
	${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libisc.@A@ ${DESTDIR}${libdir}

uninstall::
	${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${libdir}/libisc.@A@

clean distclean::
	rm -f libisc.@A@ libisc.la \
	timestamp