Migrate certificates, icons, logs to XDG dirs
[pidgin-git.git] / libpurple / protocols / facebook / Makefile.am
blob2552c83b374882b7531b85a33cc7544f41022ab6
1 EXTRA_DIST = \
2         Makefile.mingw \
3         marshaller.list
5 pkgdir = @PURPLE_PLUGINDIR@
7 FACEBOOKSOURCES = \
8         marshal.c \
9         marshal.h \
10         api.c \
11         api.h \
12         data.c \
13         data.h \
14         facebook.h \
15         facebook.c \
16         http.c \
17         http.h \
18         id.h \
19         json.c \
20         json.h \
21         mqtt.c \
22         mqtt.h \
23         thrift.c \
24         thrift.h \
25         util.c \
26         util.h
28 CLEANFILES = \
29         marshal.c \
30         marshal.h
32 marshal.c: $(srcdir)/marshaller.list marshal.h
33         $(AM_V_GEN)echo "#include \"marshal.h\"" > $@
34         $(AM_V_at)$(GLIB_GENMARSHAL) --prefix=fb_marshal --body $(srcdir)/marshaller.list >> $@
36 marshal.h: $(srcdir)/marshaller.list
37         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=fb_marshal --header $(srcdir)/marshaller.list > $@
39 AM_CFLAGS = $(st)
41 libfacebook_la_LDFLAGS = -module @PLUGIN_LDFLAGS@
43 if STATIC_FACEBOOK
45 st = -DPURPLE_STATIC_PRPL
46 noinst_LTLIBRARIES     = libfacebook.la
47 libfacebook_la_SOURCES = $(FACEBOOKSOURCES)
48 libfacebook_la_CFLAGS  = $(AM_CFLAGS)
50 else
52 st =
53 pkg_LTLIBRARIES        = libfacebook.la
54 libfacebook_la_SOURCES = $(FACEBOOKSOURCES)
55 libfacebook_la_LIBADD  = @PURPLE_LIBS@
57 endif
59 AM_CPPFLAGS = \
60         -I$(top_srcdir)/libpurple \
61         -I$(top_builddir)/libpurple \
62         -I$(top_srcdir) \
63         $(GLIB_CFLAGS) \
64         $(JSON_CFLAGS) \
65         $(ZLIB_CFLAGS) \
66         $(GPLUGIN_CFLAGS) \
67         $(DEBUG_CFLAGS)