Makefile.am 1.36 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
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 35 36
			stun_tag.c stun_tag_ref.c 

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

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

Pekka Pessi's avatar
Pekka Pessi committed
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 50 51 52 53 54

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

# ----------------------------------------------------------------------
# Sofia specific rules
# XXX: torture_stun cannot be used as a automake test as is
#TESTS = 		torture_stun

include ../sofia.am

55
TAG_DLL_FLAGS =		LIST=stun_tag_list
Pekka Pessi's avatar
Pekka Pessi committed
56

57
built_sources: $(BUILT_SOURCES)