Makefile.am 2.39 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 20 21

bin_PROGRAMS = 		addrinfo localinfo 

noinst_PROGRAMS = 	su_torture torture_su_port \
			su_alloc_test su_time_test su_tag_test \
			htable_test torture_rbtree \
			test_memmem torture_su_memmem \
			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 30 31 32 33 34 35 36

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

TESTS = 		su_torture torture_su_port \
			su_alloc_test su_time_test su_tag_test \
			htable_test torture_rbtree \
			test_memmem torture_su_memmem \
			su_root_test su_timer_test \
			run_addrinfo run_localinfo run_su_test

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

37
if HAVE_GLIB
Pekka Pessi's avatar
Pekka Pessi committed
38 39
GHEADERS = su_source.h
GSOURCES = su_source.c
40
endif
Pekka Pessi's avatar
Pekka Pessi committed
41 42 43 44 45 46 47 48 49 50 51 52 53 54

BUILT_SOURCES = su_tag_ref.c

include_HEADERS = su_types.h su.h su_localinfo.h \
	su_wait.h $(GHEADERS) \
	su_alloc.h su_alloc_stat.h su_strlst.h su_vector.h \
	su_time.h \
	su_tag.h su_tag_class.h su_tagarg.h \
	su_tag_io.h su_tag_inline.h \
	htable.h htable2.h \
	su_debug.h su_module_debug.h su_log.h \
	su_config.h su_configure.h su_md5.h su_uniqueid.h \
	tstdef.h rbtree.h su_memmem.h

Pekka Pessi's avatar
Pekka Pessi committed
55
libsu_la_SOURCES = \
Pekka Pessi's avatar
Pekka Pessi committed
56 57 58 59 60 61 62 63 64 65
	su.c $(GSOURCES) \
	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 \
	su_log.c su_global_log.c su_default_log.c \
	su_md5.c su_uniqueid.c su_memmem.c

Pekka Pessi's avatar
Pekka Pessi committed
66
COVERAGE_INPUT = 	$(libsu_la_SOURCES) $(include_HEADERS)
67

Pekka Pessi's avatar
Pekka Pessi committed
68
LDADD = 		libsu.la $(GLIB_LIBS)
Pekka Pessi's avatar
Pekka Pessi committed
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96

if NDEBUG
AM_CFLAGS = -DNDEBUG
endif

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

EXTRA_DIST = 		Doxyfile su.docs \
			run_addrinfo run_localinfo run_su_test \
			memmem.c \
			su_tag_ref.c

dist_sofialibexec_SCRIPTS = tag_dll.awk

sofialibexecdir = $(libexecdir)/sofia

su_configure.h: su_configure.h.in

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

AUTOMAKE_OPTIONS = 	foreign

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

include ../sofia.am