Initial commit
[platform/upstream/glib2.0.git] / gio / fam / Makefile.am
1 include $(top_srcdir)/Makefile.decl
2
3 NULL =
4
5 module_flags = -export_dynamic -avoid-version -module -no-undefined -export-symbols-regex '^g_io_module_(load|unload|query)'
6
7 giomodule_LTLIBRARIES = libgiofam.la
8 giomoduledir = $(GIO_MODULE_DIR)
9
10 libgiofam_la_SOURCES =          \
11         fam-helper.c                    \
12         fam-helper.h                    \
13         fam-module.c                    \
14         gfamdirectorymonitor.c          \
15         gfamdirectorymonitor.h          \
16         gfamfilemonitor.c               \
17         gfamfilemonitor.h               \
18         $(NULL)
19
20 libgiofam_la_CFLAGS = \
21         -DG_LOG_DOMAIN=\"GLib-GIO\"     \
22         -I$(top_srcdir)                 \
23         -I$(top_srcdir)/glib            \
24         -I$(top_srcdir)/gmodule         \
25         -I$(top_srcdir)/gio             \
26         $(GLIB_DEBUG_FLAGS)             \
27         -DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"  \
28         -DGIO_COMPILATION               \
29         -DG_DISABLE_DEPRECATED
30
31 libgiofam_la_LDFLAGS = $(module_flags)
32 libgiofam_la_LIBADD = \
33                 $(top_builddir)/gio/libgio-2.0.la \
34                 $(top_builddir)/gobject/libgobject-2.0.la \
35                 $(top_builddir)/glib/libglib-2.0.la \
36                 $(GLIB_LIBS) \
37                 $(FAM_LIBS) \
38                 $(NULL)
39
40 if CROSS_COMPILING
41 RUN_QUERY_MODULES=false
42 else
43 RUN_QUERY_MODULES=true
44 endif
45
46 install-data-hook:
47         if $(RUN_QUERY_MODULES) && test -z "$(DESTDIR)" ; then                                  \
48                 $(top_builddir)/gio/gio-querymodules$(EXEEXT) $(DESTDIR)$(GIO_MODULE_DIR) ;     \
49         fi
50
51 uninstall-local:
52         $(RM) $(DESTDIR)$(GIO_MODULE_DIR)/giomodules.cache