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

GLIB_BUILT = 	nua_glib_marshal.c \
		nua_glib_marshal.h

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

15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
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 \
			-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/ \
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
			$(GLIB_CFLAGS)

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

noinst_LTLIBRARIES = 	libnua-glib.la

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

BUILT_SOURCES =		$(GLIB_BUILT)

nobase_include_sofia_HEADERS = \
			sofia-sip/nua_glib.h

noinst_HEADERS =	nua_glib_priv.h
50

51 52
noinst_PROGRAMS =	test_nua_glib

53 54 55
libnua_glib_la_SOURCES = nua_glib.c

libnua_glib_la_LIBADD =  nua_glib_marshal.lo
56

57 58
LDADD =  		$(GLIB_LIBS) -lgobject-2.0 \
			libnua-glib.la ../su-glib/libsu-glib.la \
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
			../../libsofia-sip-ua/libsofia-sip-ua.la

test_nua_glib_LDFLAGS = -static

if HAVE_GLIB
%_marshal.h: %_marshal.list Makefile
	glib-genmarshal --header --prefix=$(subst -,_,$*)_marshal $< > $*_marshal.h

%_marshal.c: %_marshal.list Makefile
	glib-genmarshal --body --prefix=$(subst -,_,$*)_marshal $< > $*_marshal.c
endif

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

EXTRA_DIST =		Doxyfile nua_glib.docs $(BUILT_SOURCES)

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

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