aboutsummaryrefslogtreecommitdiff
path: root/ares/Makefile.in
blob: 2c4bfbb84e51c9d43766f49c02027a134534e361 (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
# $Id$

SHELL=/bin/sh
INSTALL=@INSTALL@
RANLIB=@RANLIB@
VPATH=@srcdir@
srcdir=@srcdir@
top_srcdir=@top_srcdir@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
mandir=@mandir@

CC=@CC@
CPPFLAGS=@CPPFLAGS@
CFLAGS=@CFLAGS@ ${WARN_CFLAGS} ${ERROR_CFLAGS}
DEFS=@DEFS@
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
ALL_CFLAGS=${CPPFLAGS} ${CFLAGS} ${DEFS}
OBJS=	ares__close_sockets.o ares__get_hostent.o ares__read_line.o \
	ares_destroy.o ares_expand_name.o ares_fds.o ares_free_errmem.o \
	ares_free_hostent.o ares_free_string.o ares_gethostbyaddr.o \
	ares_gethostbyname.o ares_init.o ares_mkquery.o ares_parse_a_reply.o \
	ares_parse_ptr_reply.o ares_process.o ares_query.o ares_search.o \
	ares_send.o ares_strerror.o ares_timeout.o ares_version.o

all: libares.a adig ahost

libares.a: ${OBJS}
	ar cru $@ ${OBJS}
	${RANLIB} $@

adig: adig.o libares.a
	${CC} ${LDFLAGS} -o $@ adig.o libares.a ${LIBS}

ahost: ahost.o libares.a
	${CC} ${LDFLAGS} -o $@ ahost.o libares.a ${LIBS}

${OBJS}: ares.h ares_dns.h ares_private.h

.c.o:
	${CC} -c ${ALL_CFLAGS} $<

check:

install:
	${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${includedir}
	${top_srcdir}/mkinstalldirs ${DESTDIR}${mandir}/man3
	${INSTALL} -m 644 libares.a ${DESTDIR}${libdir}
	${RANLIB} ${DESTDIR}${libdir}/libares.a
	chmod u-w ${DESTDIR}${libdir}/libares.a
	${INSTALL} -m 444 ${srcdir}/ares.h ${DESTDIR}${includedir}
	${INSTALL} -m 444 ${srcdir}/ares_destroy.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_expand_name.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_fds.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_free_errmem.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_free_hostent.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_free_string.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_gethostbyaddr.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_gethostbyname.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_init.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_init_options.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_mkquery.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_parse_a_reply.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_parse_ptr_reply.3 \
		${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_process.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_query.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_search.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_send.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_strerror.3 ${DESTDIR}${mandir}/man3
	${INSTALL} -m 444 ${srcdir}/ares_timeout.3 ${DESTDIR}${mandir}/man3

clean:
	rm -f ${OBJS} libares.a adig.o adig ahost.o ahost

distclean: clean
	rm -f config.cache config.log config.status Makefile