Makefile.am 1.62 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
Kai Vehmanen's avatar
Kai Vehmanen committed
22
stun_prog_targets =     stunc lookup_stun_server
23

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

26
noinst_PROGRAMS = 	${stun_prog_targets}
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) \
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
LDADD =			libstun.la \
42
			../sresolv/libsresolv.la \
Pekka Pessi's avatar
Pekka Pessi committed
43
			../su/libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
44

45 46
lookup_stun_server_LDADD = libstun.la ../sresolv/libsresolv.la ../su/libsu.la

47 48
# ----------------------------------------------------------------------
# tests
49

Pekka Pessi's avatar
Pekka Pessi committed
50 51 52
# ----------------------------------------------------------------------
# Install and distribution rules

53 54
EXTRA_DIST =		Doxyfile stun.docs cert.pem key.pem rfc3489.txt

Pekka Pessi's avatar
Pekka Pessi committed
55 56 57 58
# ----------------------------------------------------------------------
# Sofia specific rules

include ../sofia.am
59 60

TAG_DLL_FLAGS =		LIST=stun_tag_list