Makefile.am 1.5 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_HEADERS = 	stun.h stun_common.h stun_tag.h
Pekka Pessi's avatar
Pekka Pessi committed
33

Pekka Pessi's avatar
Pekka Pessi committed
34
libstun_la_SOURCES = 	$(stun_lib_sources) \
35 36 37
			stun_tag.c stun_tag_ref.c 

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

Pekka Pessi's avatar
Pekka Pessi committed
39
COVERAGE_INPUT = 	$(libstun_la_SOURCES) $(include_HEADERS)
40

Pekka Pessi's avatar
Pekka Pessi committed
41
# common LDFLAGS to all utils
Pekka Pessi's avatar
Pekka Pessi committed
42 43
LDADD =			libstun.la \
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
44

Pekka Pessi's avatar
Pekka Pessi committed
45
stunc_DEPENDENCIES = 	$(LIBDEP) libstun.la
Pekka Pessi's avatar
Pekka Pessi committed
46 47
stunc_SOURCES = 	stunc.c

Pekka Pessi's avatar
Pekka Pessi committed
48
torture_stun_DEPENDENCIES = $(LIBDEP) libstun.la
Pekka Pessi's avatar
Pekka Pessi committed
49 50 51 52 53 54 55 56 57 58 59 60
torture_stun_SOURCES = 	torture_stun.c

# ----------------------------------------------------------------------
# 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

61
TAG_DLL_FLAGS =		LIST=stun_tag_list
Pekka Pessi's avatar
Pekka Pessi committed
62

63
built_sources: $(BUILT_SOURCES)