Makefile.am 2.35 KB
Newer Older
1 2 3 4 5 6 7 8
#
# Makefile.am for nua-glib module
#
# Copyright (C) 2006 Nokia Corporation
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
# Licensed under LGPL. See file COPYING.
#

9 10
AUTOMAKE_OPTIONS = foreign 1.7

11 12 13 14 15 16
GLIB_BUILT = 	nua_glib_marshal.c \
		nua_glib_marshal.h

# ----------------------------------------------------------------------
# Header paths

17 18 19 20 21 22 23 24 25 26 27 28 29 30
S_BASE = $(top_srcdir)/libsofia-sip-ua
B_BASE = $(top_builddir)/libsofia-sip-ua

INCLUDES = 		-I$(S_BASE)/bnf -I$(B_BASE)/bnf \
	 		-I$(S_BASE)/ipt -I$(B_BASE)/ipt \
	 		-I$(S_BASE)/iptsec -I$(B_BASE)/iptsec \
	 		-I$(S_BASE)/http -I$(B_BASE)/http \
			-I$(S_BASE)/msg -I$(B_BASE)/msg \
			-I$(S_BASE)/nea -I$(B_BASE)/nea \
			-I$(S_BASE)/nta -I$(B_BASE)/nta \
			-I$(S_BASE)/nth -I$(B_BASE)/nth \
			-I$(S_BASE)/nua -I$(B_BASE)/nua \
			-I$(S_BASE)/sdp -I$(B_BASE)/sdp \
			-I$(S_BASE)/sip -I$(B_BASE)/sip \
31
			-I$(S_BASE)/stun -I$(B_BASE)/stun \
32 33 34 35 36
			-I$(S_BASE)/soa -I$(B_BASE)/soa \
			-I$(S_BASE)/tport -I$(B_BASE)/tport \
			-I$(S_BASE)/url -I$(B_BASE)/url \
			-I$(S_BASE)/su -I$(B_BASE)/su \
			-I$(srcdir)/../su-glib/ \
37 38 39 40 41
			$(GLIB_CFLAGS)

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

42 43 44 45 46
noinst_LTLIBRARIES = 	

if HAVE_GOBJECT
noinst_LTLIBRARIES += 	libnua-glib.la
endif
47 48 49 50 51 52

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

BUILT_SOURCES =		$(GLIB_BUILT)

53 54 55
nobase_include_sofia_HEADERS =
if HAVE_GOBJECT
nobase_include_sofia_HEADERS += \
56
			sofia-sip/nua_glib.h
57
endif
58 59

noinst_HEADERS =	nua_glib_priv.h
60

61
check_PROGRAMS =	test_nua_glib
62

63 64 65
libnua_glib_la_SOURCES = nua_glib.c

libnua_glib_la_LIBADD =  nua_glib_marshal.lo
66

67 68
LDADD =  		$(GLIB_LIBS) -lgobject-2.0 \
			libnua-glib.la ../su-glib/libsu-glib.la \
69 70 71 72
			../../libsofia-sip-ua/libsofia-sip-ua.la

test_nua_glib_LDFLAGS = -static

73
%_marshal.h: ${srcdir}/%_marshal.list ${srcdir}/Makefile.am
74 75
	glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*_marshal.h

76
%_marshal.c: ${srcdir}/%_marshal.list ${srcdir}/Makefile.am
77 78 79 80 81 82 83 84 85 86
	glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*_marshal.c

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

EXTRA_DIST =		Doxyfile nua_glib.docs $(BUILT_SOURCES)

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

87
include ../../libsofia-sip-ua/sofia.am