Bump version to 2012.07.27.2 and update changelog
[libfso-glib.git] / src / Makefile.am
blob1134a91eee51b1df5a8e0c134c699e0b986bb5de
1 include $(top_srcdir)/Makefile.decl
2 AUTOMAKE_OPTIONS =
3 NULL =
5 AM_CFLAGS = \
6         -include $(CONFIG_HEADER) \
7         $(NULL)
8 AM_VALAFLAGS =
10 DBUSBINDINGTOOLFLAGS = \
11         --api-path=$(FSO_SPECS_DIR) \
12         --directory=$(top_builddir)/src --strip-namespace=org \
13         --rename-namespace=freedesktop:FreeDesktop \
14         --rename-namespace=freesmartphone:FreeSmartphone \
15         $(NULL)
17 if WANT_GDBUS
18 DBUSBINDINGTOOLFLAGS += --gdbus
19 else
20 AM_VALAFLAGS += --pkg dbus-glib-1
21 endif
23 if WANT_DEBUG
24 AM_VALAFLAGS += -g -D DEBUG
25 AM_CFLAGS += -ggdb -O0
26 endif
28 lib_LTLIBRARIES = libfso-glib.la
29 libfso_glib_la_SOURCES = \
30         freesmartphone.vala \
31         freesmartphone-context.vala \
32         freesmartphone-data.vala \
33         freesmartphone-device.vala \
34         freesmartphone-gsm.vala \
35         freesmartphone-time.vala \
36         freesmartphone-pim.vala \
37         freesmartphone-audio.vala \
38         $(NULL)
39 libfso_glib_la_VALAFLAGS = \
40         --basedir $(top_srcdir) \
41         --pkg gio-2.0 \
42         --header freesmartphone.h \
43         --library fso-glib-1.0 \
44         $(NULL)
45 libfso_glib_la_CFLAGS = \
46         $(DEPS_CFLAGS) \
47         $(NULL)
48 libfso_glib_la_LIBADD = \
49         $(DEPS_LIBS)
50 libfso_glib_la_LDFLAGS = \
51         $(AM_LDFLAGS) \
52         -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)" \
53         $(NULL)
55 $(libfso_glib_la_SOURCES):
56         vala-dbus-binding-tool $(DBUSBINDINGTOOLFLAGS)
58 libfso_glibdir = $(includedir)/fso-glib
59 libfso_glib_HEADERS = \
60         freesmartphone.h \
61         $(NULL)
63 vapidir = $(datadir)/vala/vapi
64 vapi_DATA = \
65         fso-glib-1.0.vapi \
66         fso-glib-1.0.deps \
67         $(NULL)
69 if TYPELIB
70 girdir = $(datadir)/gir-1.0
71 gir_DATA = FreeSmartphone-1.0.gir
72 typelibdir = $(libdir)/girepository-1.0
73 typelib_DATA = FreeSmartphone-1.0.typelib
74 AM_VALAFLAGS += --gir FreeSmartphone-1.0.gir
76 FreeSmartphone-1.0.typelib:FreeSmartphone-1.0.gir
77         $(GIR_COMPILER) --includedir /usr/share/gir-1.0/ FreeSmartphone-1.0.gir -o FreeSmartphone-1.0.typelib
78 endif
80 EXTRA_DIST += \
81         fso-glib-1.0.deps \
82         fso-glib-1.0.vapi \
83         $(NULL)
85 CLEANFILES =
86 DISTCLEANFILES = \
87         Makefile.in \
88         $(NULL)