Makefile.am 3 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 su module
#

# ----------------------------------------------------------------------
# Headers

INCLUDES =		$(GLIB_CFLAGS)

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

Pekka Pessi's avatar
Pekka Pessi committed
13
noinst_LTLIBRARIES = 	libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
14 15 16 17 18 19

bin_PROGRAMS = 		addrinfo localinfo 

noinst_PROGRAMS = 	su_torture torture_su_port \
			su_alloc_test su_time_test su_tag_test \
			htable_test torture_rbtree \
20
			test_memmem torture_su_bm \
Pekka Pessi's avatar
Pekka Pessi committed
21
			su_root_test su_timer_test \
Pekka Pessi's avatar
Pekka Pessi committed
22
			su_test su_proxy poll_test
Pekka Pessi's avatar
Pekka Pessi committed
23 24 25 26 27 28 29

# ----------------------------------------------------------------------
# Tests

TESTS = 		su_torture torture_su_port \
			su_alloc_test su_time_test su_tag_test \
			htable_test torture_rbtree \
30
			test_memmem torture_su_bm \
Pekka Pessi's avatar
Pekka Pessi committed
31 32 33 34 35 36
			su_root_test su_timer_test \
			run_addrinfo run_localinfo run_su_test

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

37
if HAVE_GLIB
38
GHEADERS = sofia-sip/su_source.h
Pekka Pessi's avatar
Pekka Pessi committed
39
GSOURCES = su_source.c
40
endif
Pekka Pessi's avatar
Pekka Pessi committed
41 42 43

BUILT_SOURCES = su_tag_ref.c

44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
nobase_include_sofia_HEADERS = \
			sofia-sip/su_types.h sofia-sip/su.h \
			sofia-sip/su_errno.h sofia-sip/su_addrinfo.h \
			sofia-sip/su_localinfo.h sofia-sip/su_wait.h \
			sofia-sip/su_alloc.h sofia-sip/su_alloc_stat.h \
			sofia-sip/su_strlst.h sofia-sip/su_vector.h \
			sofia-sip/su_time.h sofia-sip/su_tag.h \
			sofia-sip/su_tag_class.h sofia-sip/su_tagarg.h \
			sofia-sip/su_tag_io.h sofia-sip/su_tag_inline.h \
			sofia-sip/htable.h sofia-sip/htable2.h \
			sofia-sip/rbtree.h sofia-sip/su_debug.h \
			sofia-sip/su_log.h \
			sofia-sip/su_config.h sofia-sip/su_md5.h \
			sofia-sip/su_uniqueid.h sofia-sip/su_bm.h \
			sofia-sip/tstdef.h $(GHEADERS)

nobase_nodist_include_sofia_HEADERS = sofia-sip/su_configure.h
61

Pekka Pessi's avatar
Pekka Pessi committed
62
libsu_la_SOURCES = \
Pekka Pessi's avatar
Pekka Pessi committed
63
	su.c su_errno.c su_addrinfo.c $(GSOURCES) \
Pekka Pessi's avatar
Pekka Pessi committed
64 65 66 67 68 69
	su_alloc.c su_alloc_lock.c su_strdup.c su_sprintf.c \
	su_strlst.c su_vector.c \
	su_time.c su_time0.c \
	su_wait.c su_root.c su_timer.c su_port.c su_port.h \
	su_localinfo.c \
	su_taglist.c su_tag.c su_tag_io.c \
70 71
	su_log.c su_global_log.c su_default_log.c su_module_debug.h \
	su_md5.c su_uniqueid.c su_bm.c
Pekka Pessi's avatar
Pekka Pessi committed
72

73 74 75 76 77 78 79 80 81
EXTRA_libsu_la_SOURCES = \
			memmem.c strtoull.c strcasestr.c \
			memspn.c memcspn.c memccpy.c \
			inet_ntop.c inet_pton.c \
			su_tag_ref.c

libsu_la_LIBADD = 	$(REPLACE_LIBADD)
libsu_la_DEPENDENCIES = $(REPLACE_LIBADD)

82
COVERAGE_INPUT = 	$(libsu_la_SOURCES) $(include_sofia_HEADERS)
83

Pekka Pessi's avatar
Pekka Pessi committed
84
LDADD = 		libsu.la $(GLIB_LIBS)
Pekka Pessi's avatar
Pekka Pessi committed
85 86 87 88 89 90 91 92 93

if NDEBUG
AM_CFLAGS = -DNDEBUG
endif

# ----------------------------------------------------------------------
# Install and distribution rules

EXTRA_DIST = 		Doxyfile su.docs \
94
			run_addrinfo run_localinfo run_su_test
Pekka Pessi's avatar
Pekka Pessi committed
95 96 97 98 99

dist_sofialibexec_SCRIPTS = tag_dll.awk

sofialibexecdir = $(libexecdir)/sofia

100
sofia-sip/su_configure.h: sofia-sip/su_configure.h.in
Pekka Pessi's avatar
Pekka Pessi committed
101 102 103 104 105 106 107 108 109 110

# ----------------------------------------------------------------------
# Automake options

AUTOMAKE_OPTIONS = 	foreign

# ----------------------------------------------------------------------
# Sofia specific rules

include ../sofia.am