Makefile.am 1.9 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3
#
# Makefile.am for sresolv module
#
4 5 6
# Copyright (C) 2005,2006 Nokia Corporation
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
# Licensed under LGPL. See file COPYING.
Pekka Pessi's avatar
Pekka Pessi committed
7 8 9 10

# ----------------------------------------------------------------------
# Header paths

11 12 13
INCLUDES = 		-I$(srcdir)/../url -I../url \
			-I$(srcdir)/../bnf -I../bnf \
			-I$(srcdir)/../su -I../su
Pekka Pessi's avatar
Pekka Pessi committed
14 15 16 17

# ----------------------------------------------------------------------
# Build targets

18
noinst_LTLIBRARIES = 	libsresolv.la
Pekka Pessi's avatar
Pekka Pessi committed
19

20
check_PROGRAMS = 	torture_sresolv test_sresolv
Pekka Pessi's avatar
Pekka Pessi committed
21

22
TESTS =
Pekka Pessi's avatar
Pekka Pessi committed
23

24
if HAVE_CHECK
25 26
check_PROGRAMS +=	check_sres_sip
TESTS +=		check_sres_sip
27

28
check_sres_sip_LDADD = 	$(LDADD) ${top_builddir}/s2check/libs2.a @CHECK_LIBS@
29
INCLUDES +=		-I${top_srcdir}/s2check
30
endif
31

32 33
TESTS += 		torture_sresolv run_test_sresolv

Pekka Pessi's avatar
Pekka Pessi committed
34 35 36 37
CLEANFILES =		resolv.conf error.conf named.conf.tmp \
			.test_sresolv.api.conf.?????? \
			named.run

38 39
LDADD =			libsresolv.la \
	 		../url/liburl.la ../bnf/libbnf.la \
40 41
			../su/libsu.la

42
test_sresolv_LDFLAGS =	-static
43

Pekka Pessi's avatar
Pekka Pessi committed
44 45 46
# ----------------------------------------------------------------------
# Rules for building the targets

47 48
nobase_include_sofia_HEADERS = \
			sofia-sip/sresolv.h \
49
			sofia-sip/sres_sip.h \
50
			sofia-resolv/sres.h \
51
			sofia-resolv/sres_config.h \
52 53 54
			sofia-resolv/sres_async.h \
			sofia-resolv/sres_cache.h \
			sofia-resolv/sres_record.h
Pekka Pessi's avatar
Pekka Pessi committed
55

56 57
libsresolv_la_SOURCES =	sres.c sres_cache.c sres_blocking.c \
			sresolv.c sres_sip.c
Pekka Pessi's avatar
Pekka Pessi committed
58

59
COVERAGE_INPUT = 	$(libsresolv_la_SOURCES) $(include_sofia_HEADERS)
60

Pekka Pessi's avatar
Pekka Pessi committed
61 62 63
# ----------------------------------------------------------------------
# Distribution

64
EXTRA_DIST =		sresolv.docs check_sres_sip.c
Pekka Pessi's avatar
Pekka Pessi committed
65

66
dist_noinst_DATA = run_test_sresolv \
67
	root.zone rndc.conf \
68 69
	127.zone 194.2.188 3.f.f.e.1.2.0.0.3.0.1.2.c.0.0.0 example.com \
	3.f.f.e.1.2.0.0.3.0.1.2.c.0.0.0.arpa
Pekka Pessi's avatar
Pekka Pessi committed
70 71 72 73

# ----------------------------------------------------------------------
# Sofia specific rules

74 75
include $(top_srcdir)/rules/sofia.am