Makefile.am 1.7 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3 4 5 6 7 8 9 10 11 12
#
# Makefile.am @template@ for stun module
#

# ----------------------------------------------------------------------
# General options

AUTOMAKE_OPTIONS = 	foreign

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

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

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

18
if HAVE_TLS
Pekka Pessi's avatar
Pekka Pessi committed
19
stun_lib_sources = 	stun.c stun_common.c
Pekka Pessi's avatar
Pekka Pessi committed
20
stun_prog_targets =     stunc torture_stun
21 22 23 24 25
else
stun_lib_targets = 
stun_prog_targets =
endif

Pekka Pessi's avatar
Pekka Pessi committed
26
noinst_LTLIBRARIES = 	libstun.la
27

28
noinst_PROGRAMS = 	${stun_prog_targets}
Pekka Pessi's avatar
Pekka Pessi committed
29 30 31 32

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

33 34 35
nobase_include_sofia_HEADERS = \
			sofia-sip/stun.h sofia-sip/stun_common.h \
			sofia-sip/stun_tag.h
Pekka Pessi's avatar
Pekka Pessi committed
36
libstun_la_SOURCES = 	$(stun_lib_sources) \
Pekka Pessi's avatar
Pekka Pessi committed
37
			stun_tag.c stun_tag_ref.c stun_internal.h
38 39

BUILT_SOURCES =		stun_tag_ref.c
Pekka Pessi's avatar
Pekka Pessi committed
40

41
COVERAGE_INPUT = 	$(libstun_la_SOURCES) $(include_sofia_HEADERS)
42

Pekka Pessi's avatar
Pekka Pessi committed
43 44
LDADD =			libstun.la \
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
45

46
torture_stun_LDFLAGS = 	-static
Pekka Pessi's avatar
Pekka Pessi committed
47

48 49 50 51 52
# ----------------------------------------------------------------------
# tests
# XXX: torture_stun cannot be used as a automake test as is
#TESTS = 		torture_stun

53 54 55 56 57
# ----------------------------------------------------------------------
# tests
# XXX: torture_stun cannot be used as a automake test as is
#TESTS = 		torture_stun

Pekka Pessi's avatar
Pekka Pessi committed
58 59 60
# ----------------------------------------------------------------------
# Install and distribution rules

61 62
EXTRA_DIST =		Doxyfile stun.docs cert.pem key.pem rfc3489.txt

Pekka Pessi's avatar
Pekka Pessi committed
63 64 65 66
# ----------------------------------------------------------------------
# Sofia specific rules

include ../sofia.am
67 68

TAG_DLL_FLAGS =		LIST=stun_tag_list