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

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

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

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

bin_PROGRAMS = 		addrinfo localinfo 

19 20
check_PROGRAMS = 	torture_su torture_su_port \
			torture_su_alloc torture_su_time torture_su_tag \
21
			test_htable torture_rbtree torture_heap \
22
			test_memmem torture_su_bm \
23 24
			torture_su_root torture_su_timer \
			test_su su_proxy test_poll $(OSXPROGS)
Pekka Pessi's avatar
Pekka Pessi committed
25 26 27 28

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

29 30
TESTS = 		torture_su torture_su_port \
			torture_su_alloc torture_su_time torture_su_tag \
31
			test_htable torture_rbtree torture_heap \
32
			test_memmem torture_su_bm \
33
			torture_su_root torture_su_timer \
34 35
			run_addrinfo run_localinfo run_test_su \
			$(OSXTESTS)
Pekka Pessi's avatar
Pekka Pessi committed
36 37 38 39 40 41

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

BUILT_SOURCES = su_tag_ref.c

42 43 44 45 46 47 48 49 50 51
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 \
52 53
			sofia-sip/rbtree.h sofia-sip/heap.h \
			sofia-sip/su_debug.h sofia-sip/su_log.h \
54 55
			sofia-sip/su_config.h sofia-sip/su_md5.h \
			sofia-sip/su_uniqueid.h sofia-sip/su_bm.h \
56
			sofia-sip/tstdef.h sofia-sip/su_os_nw.h \
57
			sofia-sip/string0.h \
58
			$(OSXHEADERS)
59 60

nobase_nodist_include_sofia_HEADERS = sofia-sip/su_configure.h
61

Pekka Pessi's avatar
Pekka Pessi committed
62
libsu_la_SOURCES = \
63
	su.c su_errno.c su_addrinfo.c \
Pekka Pessi's avatar
Pekka Pessi committed
64 65 66
	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 \
67 68
	su_wait.c su_root.c su_timer.c \
	su_port.c  su_port.h \
69
	su_base_port.c su_pthread_port.c su_socket_port.c \
70
	su_poll_port.c su_epoll_port.c su_select_port.c su_kqueue_port.c \
71
	su_devpoll_port.c \
Pekka Pessi's avatar
Pekka Pessi committed
72
	su_localinfo.c \
73
	su_os_nw.c \
Pekka Pessi's avatar
Pekka Pessi committed
74
	su_taglist.c su_tag.c su_tag_io.c \
75
	su_log.c su_global_log.c su_default_log.c su_module_debug.h \
Pekka Pessi's avatar
Pekka Pessi committed
76
	su_md5.c su_uniqueid.c su_bm.c smoothsort.c string0.c $(OSXSOURCES)
77

Pekka Pessi's avatar
Pekka Pessi committed
78

79 80 81
EXTRA_libsu_la_SOURCES = \
			memmem.c strtoull.c strcasestr.c \
			memspn.c memcspn.c memccpy.c \
Martti Mela's avatar
Martti Mela committed
82
			inet_ntop.c inet_pton.c poll.c getopt.c \
Pekka Pessi's avatar
Pekka Pessi committed
83 84
			su_tag_ref.c su_win32_port.c \
			su_open_c_localinfo.cpp
85 86 87 88

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

89
COVERAGE_INPUT = 	$(libsu_la_SOURCES) $(include_sofia_HEADERS)
90

91
LDADD = 		libsu.la
Pekka Pessi's avatar
Pekka Pessi committed
92 93 94 95

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

96
EXTRA_DIST = 		su.docs \
97
			run_addrinfo run_localinfo run_test_su
Pekka Pessi's avatar
Pekka Pessi committed
98

99
dist_pkgdata_SCRIPTS = 	tag_dll.awk
Pekka Pessi's avatar
Pekka Pessi committed
100

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

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

AUTOMAKE_OPTIONS = 	foreign

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

111
include $(top_srcdir)/rules/sofia.am
112 113 114 115 116 117 118 119 120 121 122 123

# ----------------------------------------------------------------------
# OS X stuff

if COREFOUNDATION
OSXSOURCES =  su_osx_runloop.c
OSXHEADERS =  sofia-sip/su_osx_runloop.h
OSXPROGS =    torture_su_root_osx test_su_osx
OSXTESTS =    torture_su_root_osx run_test_su_osx
endif

EXTRA_DIST += su_osx_runloop.c sofia-sip/su_osx_runloop.h