Makefile.am 1.69 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3
#
# Makefile.am @template@ for stun module
#
Pekka Pessi's avatar
Pekka Pessi committed
4 5 6
# Copyright (C) 2005,2006 Nokia Corporation
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
# Licensed under LGPL. See file COPYING.
Pekka Pessi's avatar
Pekka Pessi committed
7 8 9 10 11 12 13 14 15

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

AUTOMAKE_OPTIONS = 	foreign

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

Pekka Pessi's avatar
Pekka Pessi committed
16
INCLUDES = 		$(INTERNAL_INCLUDES)
Pekka Pessi's avatar
Pekka Pessi committed
17 18 19 20

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

Pekka Pessi's avatar
Pekka Pessi committed
21
stun_lib_sources = 	stun.c stun_common.c stun_dns.c stun_mini.c
22

Pekka Pessi's avatar
Pekka Pessi committed
23
noinst_LTLIBRARIES = 	libstun.la
24

25
bin_PROGRAMS    =       stunc
26
check_PROGRAMS = 	lookup_stun_server
Pekka Pessi's avatar
Pekka Pessi committed
27 28 29 30

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

31 32 33
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
34
libstun_la_SOURCES = 	$(stun_lib_sources) \
35 36
			stun_tag.c stun_internal.h
nodist_libstun_la_SOURCES = stun_tag_ref.c
37 38

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

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

42 43
LDADD =			\
			libstun.la
44
			../sresolv/libsresolv.la \
Pekka Pessi's avatar
Pekka Pessi committed
45
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
46

47 48
stunc_LDADD = libstun.la ../sresolv/libsresolv.la ../su/libsu.la

49 50
lookup_stun_server_LDADD = libstun.la ../sresolv/libsresolv.la ../su/libsu.la

51 52
# ----------------------------------------------------------------------
# tests
53

Pekka Pessi's avatar
Pekka Pessi committed
54 55 56
# ----------------------------------------------------------------------
# Install and distribution rules

57 58
EXTRA_DIST =		Doxyfile stun.docs cert.pem key.pem rfc3489.txt

Pekka Pessi's avatar
Pekka Pessi committed
59 60 61 62
# ----------------------------------------------------------------------
# Sofia specific rules

include ../sofia.am
63 64

TAG_DLL_FLAGS =		LIST=stun_tag_list