Makefile.am 2.25 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3
#
# Makefile.am @template@ for tport 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
INCLUDES = 		-I$(srcdir)/../bnf -I../bnf \
			-I$(srcdir)/../stun -I../stun \
			-I$(srcdir)/../ipt -I../ipt \
			-I$(srcdir)/../msg -I../msg \
15
			-I$(srcdir)/../http -I../http \
Pekka Pessi's avatar
Pekka Pessi committed
16 17
			-I$(srcdir)/../url -I../url \
			-I$(srcdir)/../su -I../su
Pekka Pessi's avatar
Pekka Pessi committed
18 19 20 21

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

22
noinst_LTLIBRARIES = 	libtport.la
Pekka Pessi's avatar
Pekka Pessi committed
23

24
bin_PROGRAMS =
Pekka Pessi's avatar
Pekka Pessi committed
25

26
check_PROGRAMS =	test_tport
Pekka Pessi's avatar
Pekka Pessi committed
27

28
TESTS =			test_tport
Pekka Pessi's avatar
Pekka Pessi committed
29 30 31 32

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

33
nobase_include_sofia_HEADERS = \
34 35
			sofia-sip/tport.h sofia-sip/tport_tag.h \
			sofia-sip/tport_plugins.h
Pekka Pessi's avatar
Pekka Pessi committed
36

37
TLS_SRC =		tport_type_tls.c tport_tls.c tport_tls.h
38 39
if HAVE_TLS
USE_TLS_SRC = 		$(TLS_SRC)
Pekka Pessi's avatar
Pekka Pessi committed
40 41
endif

42 43 44 45 46 47 48 49 50 51
STUN_SRC =		tport_stub_stun.c tport_type_stun.c
if HAVE_STUN
USE_STUN_SRC = 		$(STUN_SRC)
endif

HTTP_SRC =		tport_type_connect.c
if HAVE_NTH
USE_HTTP_SRC = 		$(HTTP_SRC)
endif

52
libtport_la_SOURCES = 	tport.c tport_logging.c \
53
			tport_stub_sigcomp.c \
Pekka Pessi's avatar
Pekka Pessi committed
54
			tport_type_udp.c tport_type_tcp.c tport_type_sctp.c \
55
			tport_internal.h \
56
			tport_tag.c tport_tag_ref.c $(USE_HTTP_SRC) $(USE_TLS_SRC) $(USE_STUN_SRC)
Pekka Pessi's avatar
Pekka Pessi committed
57 58

# to make sure all files end up in the dist package
59
EXTRA_libtport_la_SOURCES = $(TLS_SRC) $(STUN_SRC) $(HTTP_SRC)
60 61 62

# Disable for now
EXTRA_libtport_la_SOURCES += tport_sigcomp.c tport_threadpool.c
Pekka Pessi's avatar
Pekka Pessi committed
63 64 65

BUILT_SOURCES =		tport_tag_ref.c

66
COVERAGE_INPUT = 	$(libtport_la_SOURCES) $(include_sofia_HEADERS)
67

68 69
LDADD = 		libtport.la \
			../stun/libstun.la \
70
			../sresolv/libsresolv.la \
71
			../ipt/libipt.la \
72
			../http/libhttp.la \
73
			../msg/libtest_msg.a ../msg/libmsg.la \
74 75 76
			../url/liburl.la \
			../bnf/libbnf.la \
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
77

78
test_tport_LDFLAGS = 	-static
Pekka Pessi's avatar
Pekka Pessi committed
79 80 81 82

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

83
EXTRA_DIST =		tport.docs \
Pekka Pessi's avatar
Pekka Pessi committed
84 85 86 87 88
			certificates.html agent.pem cafile.pem

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

89 90
include $(top_srcdir)/rules/sofia.am