loudmouth/Makefile.am
author Mikael Hallendal <micke@imendio.com>
Fri, 10 Oct 2008 23:13:03 +0200
changeset 521 50294ce6587e
parent 505 ba6f96b3e4a8
child 522 0cc51238d83e
permissions -rw-r--r--
Updated the build system to use a build directory and a common marshal Makefile. Inspired by Richards commit to Devhelp in order to clean up the build system a bit. Makefile setup for generating signal marshal are now defined in build/Makefile.am.marshal which is included in the loudmough/Makefile.am file.

include $(top_srcdir)/Makefile.decl
include $(top_srcdir)/build/Makefile.am.common
include $(top_srcdir)/build/Makefile.am.marshal

NULL=

TEST_DIR=$(top_srcdir)/

AM_CPPFLAGS = 				    \
	-I.				    \
	-I$(top_srcdir)			    \
	$(LOUDMOUTH_CFLAGS)		    \
	$(LIBIDN_CFLAGS)		    \
	-DLM_COMPILATION	  	    \
	-DRUNTIME_ENDIAN                    \
	$(NULL)

noinst_PROGRAMS = test-dns

test_dns_SOURCES = test-dns.c

test_dns_LDADD = $(LOUDMOUTH_LIBS) $(top_builddir)/loudmouth/libloudmouth-1.la

lib_LTLIBRARIES = libloudmouth-1.la

if USE_GNUTLS
ssl_sources =                           \
	lm-ssl-gnutls.c
endif

if USE_OPENSSL
ssl_sources =                           \
	lm-ssl-openssl.c
endif

libloudmouth_1_la_SOURCES =		\
	lm-connection.c	 		\
	lm-debug.c                      \
	lm-debug.h                      \
	lm-dummy.c                      \
	lm-dummy.h                      \
	lm-error.c			\
	lm-marshal.c               \
	lm-marshal.h                    \
	lm-message.c	 		\
	lm-message-handler.c		\
	lm-message-node.c		\
	lm-message-queue.c		\
	lm-message-queue.h		\
	lm-misc.c                       \
	lm-misc.h                       \
	lm-parser.c			\
	lm-parser.h			\
	                                \
	asyncns.c                       \
	asyncns.h                       \
	lm-resolver.c                   \
	lm-resolver.h                   \
	lm-asyncns-resolver.c           \
	lm-asyncns-resolver.h           \
	lm-blocking-resolver.c          \
	lm-blocking-resolver.h          \
	                                \
	lm-internals.h			\
	lm-sha.c			\
	lm-sha.h			\
	lm-ssl-generic.c                \
	lm-ssl-base.c                   \
	lm-ssl-base.h                   \
	lm-ssl-internals.h              \
	$(ssl_sources)                  \
	lm-utils.c			\
	lm-proxy.c                      \
	lm-sock.h			\
	lm-sock.c			\
	lm-old-socket.c                 \
	lm-old-socket.h                 \
	                                \
	lm-socket.c                     \
	lm-socket.h                     \
	lm-tcp-socket.c                 \
	lm-tcp-socket.h                 \
	                                \
	lm-feature-ping.c               \
	lm-feature-ping.h               \
	                                \
	lm-sasl.c                       \
	lm-sasl.h                       \
	lm-simple-io.c                  \
	lm-simple-io.h                  \
	lm-xmpp-writer.c                \
	lm-xmpp-writer.h                \
	md5.c                           \
	md5.h                           \
	$(NULL)

libloudmouthinclude_HEADERS =		\
	lm-connection.h			\
	lm-error.h			\
	lm-message.h		 	\
	lm-message-handler.h		\
	lm-message-node.h		\
	lm-utils.h			\
	lm-proxy.h                      \
	lm-ssl.h                        \
	loudmouth.h			\
	$(NULL)

libloudmouth_1_la_LIBADD = 		\
	$(LOUDMOUTH_LIBS)		\
	$(LIBIDN_LIBS) \
	-lresolv

libloudmouth_1_la_LDFLAGS = \
	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
	-export-symbols $(srcdir)/loudmouth.sym
libloudmouthincludedir = $(includedir)/loudmouth-1.0/loudmouth

MARSHAL=lm

BUILT_SOURCES =				\
	lm-marshal.h			\
	lm-marshal.c

# an explicit dependency here so all generated files get built
$(OBJECTS): $(BUILT_SOURCES)

CLEANFILES = $(BUILT_SOURCES)

EXTRA_DIST += \
	lm-ssl-gnutls.c \
	lm-ssl-openssl.c \
	loudmouth.sym \
	lm-marshal.list