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 13 14 15 16 17
#
# Makefile.am @template@ for stun module
#

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

AUTOMAKE_OPTIONS = 	foreign

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

INCLUDES = 		-I$(srcdir)/../su

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

18
if HAVE_TLS
Pekka Pessi's avatar
Pekka Pessi committed
19
stun_lib_sources = 	stun.c stun_common.c
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
noinst_PROGRAMS = 	${stun_prog_targets}
Pekka Pessi's avatar
Pekka Pessi committed
28 29 30 31

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

32
include_sofia_HEADERS = stun.h stun_common.h stun_tag.h
Pekka Pessi's avatar
Pekka Pessi committed
33
libstun_la_SOURCES = 	$(stun_lib_sources) \
34
			stun_tag.c stun_tag_ref.c stun_internal.h
35 36

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

38
COVERAGE_INPUT = 	$(libstun_la_SOURCES) $(include_sofia_HEADERS)
39

40 41
LDADD =			libstun.la \
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
42

43
torture_stun_LDFLAGS = 	-static
Pekka Pessi's avatar
Pekka Pessi committed
44

45 46 47 48 49
# ----------------------------------------------------------------------
# tests
# XXX: torture_stun cannot be used as a automake test as is
#TESTS = 		torture_stun

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

Pekka Pessi's avatar
Pekka Pessi committed
55 56 57 58 59
# ----------------------------------------------------------------------
# Install and distribution rules

# ----------------------------------------------------------------------
# Sofia specific rules
60 61
# XXX: torture_stun cannot be used as a automake test as is
#TESTS = 		torture_stun
Pekka Pessi's avatar
Pekka Pessi committed
62 63

include ../sofia.am
64 65

TAG_DLL_FLAGS =		LIST=stun_tag_list
66 67

TAG_DLL_FLAGS =		LIST=stun_tag_list