connwrap - initialize gnutls session in cw_connect
[centerim.git] / src / Makefile.am
blob3a0feafbaf4e3edfdcca319589a1ff2ba01491cf
1 AM_CXXFLAGS = -Wno-write-strings
3 centerim_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/hooks -I$(top_srcdir)/connwrap -I$(top_srcdir)/firetalk -I$(top_srcdir)/firetalk/../connwrap -I$(top_srcdir)/firetalk/../connwrap-0.1 -I$(top_srcdir)/kkconsui -I$(top_srcdir)/kkconsui/include -I$(top_srcdir)/kkconsui/../kkstrtext -I$(top_srcdir)/kkconsui/../kkstrtext-0.1 -I$(top_srcdir)/kkstrtext -I$(top_srcdir)/kksystr -I$(top_srcdir)/kksystr/include -I$(top_srcdir)/kksystr/../kkstrtext -I$(top_srcdir)/kksystr/../kkstrtext-0.1 -I$(top_srcdir)/libgadu -I$(top_srcdir)/libicq2000 -I$(top_srcdir)/libicq2000/libicq2000 -I$(top_srcdir)/libjabber -I$(top_srcdir)/libjabber/../connwrap -I$(top_srcdir)/libjabber/../connwrap-0.1 -I$(top_srcdir)/libmsn -I$(top_srcdir)/libmsn/../connwrap -I$(top_srcdir)/libmsn/../connwrap-0.1 -I$(top_srcdir)/libyahoo2 -I$(top_srcdir)/libyahoo2/../connwrap -I$(top_srcdir)/libyahoo2/../connwrap-0.1 -I$(top_srcdir)/intl
4 bin_PROGRAMS = centerim
5 centerim_SOURCES = centerim.cc icqcontact.cc icqgroups.cc eventmanager.cc icqdialogs.cc icqhist.cc imexternal.cc imcontact.cc imlogger.cc accountmanager.cc icqcontacts.cc icqmlist.cc icqcommon.cc imcontroller.cc icqconf.cc imevents.cc impgp.cc icqface.cc centermain.cc icqgroup.cc captcha.cc git-version.cc
6 centerim_LDFLAGS = -L$(top_builddir)/connwrap -L$(top_builddir)/kkconsui -L$(top_builddir)/kkstrtext -L$(top_builddir)/kksystr -L$(top_builddir)/libicq2000
7 centerim_LDADD = $(top_builddir)/src/hooks/libhooks.a  -lkkconsui -lkkstrtext -lkksystr -llibicq2000
8 if HAVE_LIBOTR
9 centerim_SOURCES += imotr.cc
10 endif
11 if HAVE_FRIBIDI
12 centerim_LDADD +=$(FRIBIDI_LIBS)
13 #centerim_CFLAGS += $(FRIBIDI_LIBS)
14 endif
15 if BUILD_FIRETALK
16 centerim_LDFLAGS += -L$(top_builddir)/firetalk
17 centerim_LDADD += -lfiretalk
18 endif
19 if BUILD_GADU
20 centerim_LDFLAGS += -L$(top_builddir)/libgadu
21 centerim_LDADD += -llibgadu
22 endif
23 if BUILD_JABBER
24 centerim_LDFLAGS += -L$(top_builddir)/libjabber
25 centerim_LDADD += -llibjabber
26 endif
27 if BUILD_MSN
28 centerim_LDFLAGS += -L$(top_builddir)/libmsn
29 centerim_LDADD += -llibmsn
30 endif
31 if BUILD_YAHOO
32 centerim_LDFLAGS += -L$(top_builddir)/libyahoo2
33 centerim_LDADD += -llibyahoo2
34 endif
35 centerim_LDADD += -lconnwrap @LTLIBINTL@
36 SUBDIRS = hooks
37 EXTRA_DIST = centerim.cc icqcontact.cc icqgroups.cc eventmanager.cc icqdialogs.cc icqhist.cc imexternal.cc imcontact.cc imlogger.cc accountmanager.cc icqcontacts.cc icqmlist.cc imcontroller.cc icqconf.cc imevents.cc impgp.cc imotr.cc icqface.cc centermain.cc icqgroup.cc icqmlist.h imcontroller.h icqcommon.h icqcontacts.h centerim.h icqgroup.h imcontact.h accountmanager.h eventmanager.h imevents.h icqcontact.h imlogger.h icqconf.h impgp.h imotr.h icqface.h icqgroups.h icqhist.h imexternal.h captcha.h git-version.h.in
38 AUTOMAKE_OPTIONS = foreign
39 centerim_CPPFLAGS += -DSHARE_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(datadir)/locale\"
41 # regenerate git-version.h if its content differs from the output of
42 # git-version-gen
43 g_get_cur = sed -ne "s/^\#[ \x09]*define[ \x09]\+GIT_VERSION[ \x09]\+\"\([0-9]\+.*\)\"/\1/p" \
44              2>/dev/null < git-version.h | tr -d '\012'
45 g_subst_f = sed -e "s/@GIT_VERSION@/$$VER_GIT/" < git-version.h.in > git-version.h
48 # If the make we are using supports order-only targets we make git_version is
49 # made an order-only prerequisite.  Order-only prerequisites are build before
50 # the target(s) but do not lead to a rebuild of the target(s).
51 ORDER_ONLY = @ORDER_ONLY@
52 $(centerim_OBJECTS) git-version.h : $(ORDER_ONLY) git_version
53 .PHONY: git_version
55 git_version: git-version.h.in
56         VER_FILE=`$(g_get_cur)` || true; \
57         VER_GIT=`cd $(top_srcdir); ./misc/git-version-gen .version`; \
58         if [ -z "$$VER_FILE" ] || [ "$$VER_FILE" != "$$VER_GIT" ]; then \
59                 $(g_subst_f); \
60         fi