Makefile.am 2.08 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3
#
# Makefile.am for nta 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
INCLUDES = 		-I$(srcdir)/../ipt -I../ipt \
			-I$(srcdir)/../msg -I../msg \
			-I$(srcdir)/../sip -I../sip \
14
			-I$(srcdir)/../bnf -I../bnf \
Pekka Pessi's avatar
Pekka Pessi committed
15 16 17 18 19
			-I$(srcdir)/../sresolv -I../sresolv \
			-I$(srcdir)/../tport -I../tport \
			-I$(srcdir)/../url -I../url \
			-I$(srcdir)/../features -I../features \
			-I$(srcdir)/../su -I../su
Pekka Pessi's avatar
Pekka Pessi committed
20 21 22 23

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

24
noinst_LTLIBRARIES = 	libnta.la
Pekka Pessi's avatar
Pekka Pessi committed
25

26
check_PROGRAMS = 	test_nta_api test_nta portbind
27
dist_noinst_SCRIPTS =	run_test_nta_api run_test_nta
Pekka Pessi's avatar
Pekka Pessi committed
28

29
TESTS =			run_test_nta_api run_test_nta
Pekka Pessi's avatar
Pekka Pessi committed
30 31 32 33 34 35 36
TESTS_ENVIRONMENT =	$(SHELL) 

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

BUILT_SOURCES =		nta_tag_ref.c

37 38 39 40
nobase_include_sofia_HEADERS = \
			sofia-sip/nta.h sofia-sip/nta_stateless.h \
			sofia-sip/nta_tport.h sofia-sip/nta_tag.h \
			sofia-sip/sl_utils.h 
Pekka Pessi's avatar
Pekka Pessi committed
41

42
libnta_la_SOURCES = 	nta.c nta_check.c nta_tag.c nta_tag_ref.c \
Pekka Pessi's avatar
Pekka Pessi committed
43
			nta_internal.h \
Pekka Pessi's avatar
Pekka Pessi committed
44
			sl_utils_print.c sl_utils_log.c \
Pekka Pessi's avatar
Pekka Pessi committed
45 46
			sl_read_payload.c

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

49 50 51
LDADD = 		libnta.la \
			../ipt/libipt.la \
			../sip/libsip.la \
52
			../features/libfeatures.la \
53 54
			../sresolv/libsresolv.la \
			../tport/libtport.la \
55
			../http/libhttp.la \
56 57 58 59 60
			../stun/libstun.la \
			../url/liburl.la \
			../msg/libmsg.la \
			../bnf/libbnf.la \
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
61

62
test_nta_LDFLAGS = 	-static
Pekka Pessi's avatar
Pekka Pessi committed
63 64 65 66 67 68

MOSTLYCLEANFILES +=	.test[0-9]*

# ----------------------------------------------------------------------
# Install and distribution rules

69
EXTRA_DIST =		nta.docs sl_utils.docs \
70 71
			agent.pem cafile.pem \
			invite.msc $(BUILT_SOURCES) 
Pekka Pessi's avatar
Pekka Pessi committed
72 73 74 75

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

76
include $(top_srcdir)/rules/sofia.am
77 78 79

# Generate list of nta tags
TAG_DLL_FLAGS = 	LIST=nta_tag_list