Makefile.am 1.58 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
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
include_sofia_HEADERS = stun.h stun_common.h stun_tag.h
Pekka Pessi's avatar
Pekka Pessi committed
34
libstun_la_SOURCES = 	$(stun_lib_sources) \
Pekka Pessi's avatar
Pekka Pessi committed
35
			stun_tag.c stun_tag_ref.c stun_internal.h
36 37

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

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

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

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

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

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

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

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

include ../sofia.am
63 64

TAG_DLL_FLAGS =		LIST=stun_tag_list