Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/Makefile.am @ 2041:e8f2db654e67
Fix building from separate directory
This patch allows the following build sequence:
$ mkdir build; cd build; ../configure args; make; make install
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Thu, 22 Nov 2012 00:59:19 +0200 |
parents | 2256d0626730 |
children | 8da280d34b48 |
comparison
equal
deleted
inserted
replaced
2040:e87ced7d1059 | 2041:e8f2db654e67 |
---|---|
14 endif | 14 endif |
15 | 15 |
16 LDADD = $(GLIB_LIBS) $(LOUDMOUTH_LIBS) $(GPGME_LIBS) $(LIBOTR_LIBS) \ | 16 LDADD = $(GLIB_LIBS) $(LOUDMOUTH_LIBS) $(GPGME_LIBS) $(LIBOTR_LIBS) \ |
17 $(ENCHANT_LIBS) $(LIBIDN_LIBS) | 17 $(ENCHANT_LIBS) $(LIBIDN_LIBS) |
18 | 18 |
19 AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) $(LOUDMOUTH_CFLAGS) \ | 19 AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \ |
20 $(GLIB_CFLAGS) $(LOUDMOUTH_CFLAGS) \ | |
20 $(GPGME_CFLAGS) $(LIBOTR_CFLAGS) \ | 21 $(GPGME_CFLAGS) $(LIBOTR_CFLAGS) \ |
21 $(ENCHANT_CFLAGS) $(LIBIDN_CFLAGS) | 22 $(ENCHANT_CFLAGS) $(LIBIDN_CFLAGS) |
22 | 23 |
23 CLEANFILES = hgcset.h | 24 CLEANFILES = hgcset.h |
24 | 25 |
25 if HGCSET | 26 if HGCSET |
26 BUILT_SOURCES = hgcset.h | 27 BUILT_SOURCES = hgcset.h |
27 | 28 |
28 hgcset.h: | 29 hgcset.h: |
29 ../hgcset.sh | 30 $(top_srcdir)/hgcset.sh "$(top_srcdir)/mcabber" "$(top_builddir)/mcabber" |
30 | 31 |
31 .PHONY: hgcset.h | 32 .PHONY: hgcset.h |
32 endif | 33 endif |
33 | 34 |
34 if INSTALL_HEADERS | 35 if INSTALL_HEADERS |
40 histolog.h utils.h pgp.h \ | 41 histolog.h utils.h pgp.h \ |
41 xmpp.h xmpp_helper.h xmpp_defines.h \ | 42 xmpp.h xmpp_helper.h xmpp_defines.h \ |
42 xmpp_iq.h xmpp_iqrequest.h \ | 43 xmpp_iq.h xmpp_iqrequest.h \ |
43 xmpp_muc.h xmpp_s10n.h \ | 44 xmpp_muc.h xmpp_s10n.h \ |
44 caps.h fifo.h help.h modules.h api.h \ | 45 caps.h fifo.h help.h modules.h api.h \ |
45 $(top_srcdir)/include/config.h | 46 $(top_builddir)/include/config.h |
46 | 47 |
47 if OTR | 48 if OTR |
48 mcabberinclude_HEADERS += otr.h nohtml.h | 49 mcabberinclude_HEADERS += otr.h nohtml.h |
49 endif | 50 endif |
50 | 51 |