Makefile.am 2.1 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
noinst_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 38
			sofia-sip/auth_module.h sofia-sip/auth_plugin.h \
			$(NTLM_HEADER)
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 \
Pekka Pessi's avatar
Pekka Pessi committed
42 43
			auth_module.c auth_tag.c auth_tag_ref.c \
			auth_plugin.c auth_plugin_delayed.c \
44 45
			auth_module_http.c auth_module_sip.c \
			$(NTLM_SOURCE) \
Pekka Pessi's avatar
Pekka Pessi committed
46 47
			iptsec_debug.c

48
NTLM_HEADER = 		sofia-sip/auth_ntlm.h
49
if HAVE_NTLM
50
NTLM_SOURCE = 		auth_ntlm.c auth_client_ntlm.c auth_plugin_ntlm.c
51 52
endif

53
EXTRA_libiptsec_la_SOURCES = \
54
			auth_ntlm.c auth_client_ntlm.c auth_plugin_ntlm.c
Pekka Pessi's avatar
Pekka Pessi committed
55

56
COVERAGE_INPUT = 	$(libiptsec_la_SOURCES) $(include_sofia_HEADERS)
57

58 59 60 61
LDADD = 		libiptsec.la \
			../http/libhttp.la \
			../nta/libnta.la \
			../sip/libsip.la \
62
			../msg/libmsg.la \
63 64
			../url/liburl.la \
			../bnf/libbnf.la \
65
			../ipt/libipt.la \
66
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
67

68
test_auth_digest_LDFLAGS = -static
69

Pekka Pessi's avatar
Pekka Pessi committed
70 71 72 73 74 75 76 77 78 79
# ----------------------------------------------------------------------
# Install and distribution rules

EXTRA_DIST = 		Doxyfile iptsec.docs testpasswd \
			auth_module_sip.c auth_module_http.c $(BUILT_SOURCES)

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

include ../sofia.am