Makefile.am 1.52 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

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

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

Pekka Pessi's avatar
Pekka Pessi committed
18
stun_lib_sources = 	stun.c stun_common.c stun_dns.c stun_mini.c
Kai Vehmanen's avatar
Kai Vehmanen committed
19
stun_prog_targets =     stunc lookup_stun_server
20

Pekka Pessi's avatar
Pekka Pessi committed
21
noinst_LTLIBRARIES = 	libstun.la
22

23
noinst_PROGRAMS = 	${stun_prog_targets}
Pekka Pessi's avatar
Pekka Pessi committed
24 25 26 27

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

28 29 30
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
31
libstun_la_SOURCES = 	$(stun_lib_sources) \
32
			stun_tag.c stun_tag_ref.c stun_internal.h
33 34

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

36
COVERAGE_INPUT = 	$(libstun_la_SOURCES) $(include_sofia_HEADERS)
37

38
LDADD =			libstun.la \
39
			../sresolv/libsresolv.la \
40
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
41

42 43
lookup_stun_server_LDADD = libstun.la ../sresolv/libsresolv.la ../su/libsu.la

44 45
# ----------------------------------------------------------------------
# tests
46

Pekka Pessi's avatar
Pekka Pessi committed
47 48 49
# ----------------------------------------------------------------------
# Install and distribution rules

50 51
EXTRA_DIST =		Doxyfile stun.docs cert.pem key.pem rfc3489.txt

Pekka Pessi's avatar
Pekka Pessi committed
52 53 54 55
# ----------------------------------------------------------------------
# Sofia specific rules

include ../sofia.am
56 57

TAG_DLL_FLAGS =		LIST=stun_tag_list