Makefile.am 2.62 KB
Newer Older
1 2
CLEANFILES = $(NULL)

3 4 5 6
include $(top_srcdir)/Makefile.shared

lib_LTLIBRARIES=libnautilus-extension.la

7
AM_CPPFLAGS=\
8 9
	-I$(top_srcdir) \
	-I$(top_builddir) \
10
	$(BASE_CFLAGS) \
11
	$(WARNING_CFLAGS) \
12
	$(DISABLE_DEPRECATED) \
13 14 15 16
	-DDATADIR=\""$(datadir)"\" \
	$(NULL)

libnautilus_extension_la_LDFLAGS=\
17
	-version-info @NAUTILUS_EXTENSION_VERSION_INFO@ \
18 19 20
	-no-undefined \
	$(NULL)

21
libnautilus_extension_la_LIBADD = $(BASE_LIBS)
22

23 24 25 26
libnautilus_extension_includedir=$(includedir)/nautilus/libnautilus-extension

libnautilus_extension_include_HEADERS=		\
	nautilus-column-provider.h              \
27
	nautilus-column.h                       \
28 29
	nautilus-extension-types.h              \
	nautilus-file-info.h                    \
30 31
	nautilus-info-provider.h                \
	nautilus-location-widget-provider.h     \
32 33 34
	nautilus-menu-item.h                    \
	nautilus-menu-provider.h                \
	nautilus-property-page-provider.h       \
35
	nautilus-property-page.h                \
36
	nautilus-menu.h                         \
37 38 39 40
	$(NULL)

libnautilus_extension_la_SOURCES=			\
	nautilus-column-provider.c                      \
41
	nautilus-column.c                               \
42
	nautilus-extension-types.c                      \
43
	nautilus-extension-private.h			\
44
	nautilus-file-info.c                            \
45 46
	nautilus-info-provider.c                        \
	nautilus-location-widget-provider.c             \
47 48 49
	nautilus-menu-item.c                            \
	nautilus-menu-provider.c                        \
	nautilus-property-page-provider.c               \
50
	nautilus-property-page.c                        \
51
	nautilus-menu.c                                 \
52 53 54 55 56 57 58 59
	$(NULL)

pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA=libnautilus-extension.pc

EXTRA_DIST = \
	libnautilus-extension.pc.in \
	$(NULL)
60

61 62 63 64
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
65

66 67 68 69
if HAVE_INTROSPECTION
introspection_files =					\
	$(libnautilus_extension_include_HEADERS)	\
	$(libnautilus_extension_la_SOURCES)
70 71 72
Nautilus-3.0.gir: libnautilus-extension.la Makefile
Nautilus_3_0_gir_INCLUDES = Gtk-3.0 Gio-2.0 GLib-2.0
Nautilus_3_0_gir_CFLAGS = \
73 74
	-I$(top_srcdir) \
	-I$(top_builddir) \
75
	$(BASE_CFLAGS)
76 77 78
Nautilus_3_0_gir_LIBS = libnautilus-extension.la
Nautilus_3_0_gir_FILES = $(addprefix $(srcdir)/, $(introspection_files))
INTROSPECTION_GIRS += Nautilus-3.0.gir
79

80 81
girdir = $(datadir)/gir-1.0/
gir_DATA = $(INTROSPECTION_GIRS)
82 83

typelibsdir = $(libdir)/girepository-1.0/
84
typelibs_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
85

86 87
CLEANFILES += $(gir_DATA) $(typelibs_DATA)
endif
William Jon McCann's avatar
William Jon McCann committed
88 89

-include $(top_srcdir)/git.mk