Makefile.am 1.67 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3
#
# Makefile.am @template@ for stun module
#
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

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

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

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

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

50 51
# ----------------------------------------------------------------------
# tests
52

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

56
EXTRA_DIST =		Doxyfile stun.docs cert.pem key.pem
57

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

61
include $(top_srcdir)/rules/sofia.am
62 63

TAG_DLL_FLAGS =		LIST=stun_tag_list