Makefile.am 2.23 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3
#
# Makefile.am for iptsec 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

Pekka Pessi's avatar
Pekka Pessi committed
11 12 13 14 15 16 17 18
INCLUDES = 		-I$(srcdir)/../bnf -I../bnf \
	 		-I$(srcdir)/../ipt -I../ipt \
	 		-I$(srcdir)/../http -I../http \
			-I$(srcdir)/../msg -I../msg \
			-I$(srcdir)/../nta -I../nta \
			-I$(srcdir)/../sip -I../sip \
			-I$(srcdir)/../url -I../url \
			-I$(srcdir)/../su -I../su
Pekka Pessi's avatar
Pekka Pessi committed
19 20 21 22

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

23
noinst_LTLIBRARIES = 	libiptsec.la
Pekka Pessi's avatar
Pekka Pessi committed
24

25
check_PROGRAMS = 	test_auth_digest
Pekka Pessi's avatar
Pekka Pessi committed
26

27
TESTS = 		test_auth_digest
Pekka Pessi's avatar
Pekka Pessi committed
28 29 30 31 32 33

# ----------------------------------------------------------------------
# Rules for building the targets

BUILT_SOURCES = 	auth_tag_ref.c

34
nobase_include_sofia_HEADERS = \
35
			sofia-sip/auth_common.h \
36
			sofia-sip/auth_client.h sofia-sip/auth_digest.h \
37
			sofia-sip/auth_module.h sofia-sip/auth_plugin.h \
38
			sofia-sip/auth_client_plugin.h
Pekka Pessi's avatar
Pekka Pessi committed
39

40
libiptsec_la_SOURCES = 	iptsec_debug.h \
41
			auth_client.c auth_common.c auth_digest.c \
42
			auth_module.c auth_tag.c auth_tag_ref.c \
Pekka Pessi's avatar
Pekka Pessi committed
43
			auth_plugin.c auth_plugin_delayed.c \
44
			auth_module_sip.c \
Pekka Pessi's avatar
Pekka Pessi committed
45 46
			iptsec_debug.c

47
COVERAGE_INPUT = 	$(libiptsec_la_SOURCES) $(include_sofia_HEADERS)
48

49 50 51
LDADD = 		libiptsec.la \
			../nta/libnta.la \
			../sip/libsip.la \
52
			../msg/libmsg.la \
53 54
			../url/liburl.la \
			../bnf/libbnf.la \
55
			../ipt/libipt.la \
56
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
57

58
test_auth_digest_LDFLAGS = -static
59

60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
if HAVE_NTLM
nobase_include_sofia_HEADERS += $(NTLM_HEADER)
libiptsec_la_SOURCES += $(NTLM_SOURCE)
endif

if HAVE_NTH
libiptsec_la_SOURCES += $(HTTP_SOURCE)
LDADD +=		../http/libhttp.la
endif

HTTP_SOURCE =		auth_module_http.c

NTLM_HEADER = 		sofia-sip/auth_ntlm.h
NTLM_SOURCE = 		auth_ntlm.c auth_client_ntlm.c auth_plugin_ntlm.c

EXTRA_libiptsec_la_SOURCES = \
			$(NTLM_HEADER) $(NTLM_SOURCE) $(HTTP_SOURCE)

Pekka Pessi's avatar
Pekka Pessi committed
78 79 80
# ----------------------------------------------------------------------
# Install and distribution rules

81
EXTRA_DIST = 		Doxyfile iptsec.docs testpasswd $(BUILT_SOURCES)
Pekka Pessi's avatar
Pekka Pessi committed
82 83 84 85

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

86 87
include $(top_srcdir)/rules/sofia.am