summaryrefslogtreecommitdiff
path: root/polkitgtkmate/Makefile.am
blob: 706b7927121f7e11dc58199f9c91c7d4d28de149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109

NULL =

lib_LTLIBRARIES=libpolkit-gtk-mate-1.la

libpolkit_gtk_mate_1includedir=$(includedir)/polkit-gtk-mate-1/polkitgtkmate

libpolkit_gtk_mate_1include_HEADERS =			\
	polkitgtkmate.h					\
	polkitgtkmatetypes.h				\
	polkitlockbutton.h				\
	$(NULL)

libpolkit_gtk_mate_1_la_SOURCES =			\
	polkitgtkmate.h					\
	polkitgtkmatetypes.h				\
	polkitlockbutton.h				\
	polkitlockbutton.c				\
	$(NULL)

libpolkit_gtk_mate_1_la_CPPFLAGS =			\
	-I$(top_srcdir)					\
	-I$(top_builddir)				\
	-I$(top_srcdir)/polkitgtkmate			\
	-I$(top_builddir)/polkitgtkmate			\
	-DG_LOG_DOMAIN=\"polkitgtkmate\"		\
	-DMATELOCALEDIR=\""$(datadir)/locale"\"	\
	$(DISABLE_DEPRECATED)				\
	$(AM_CPPFLAGS)					\
	-DPOLKIT_GTK_MATE_COMPILATION			\
	$(NULL)

libpolkit_gtk_mate_1_la_CFLAGS =			\
	$(POLKIT_GOBJECT_CFLAGS)			\
	$(GTK_CFLAGS)					\
	$(WARN_CFLAGS)					\
	$(AM_CFLAGS)					\
	$(NULL)

libpolkit_gtk_mate_1_la_LIBADD =			\
	$(POLKIT_GOBJECT_LIBS)				\
	$(GTK_LIBS)					\
	$(INTLLIBS)					\
	$(NULL)


libpolkit_gtk_mate_1_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
		        -export-dynamic -no-undefined -export-symbols-regex '(^polkit_.*)'

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = polkit-gtk-mate-1.pc

noinst_PROGRAMS = example

example_SOURCES = example.c
example_CFLAGS = 					\
	-I$(top_srcdir)					\
	-I$(top_builddir)				\
	$(POLKIT_GOBJECT_CFLAGS)			\
	$(GTK_CFLAGS)					\
	$(WARN_CFLAGS)					\
	$(AM_CFLAGS)					\
	$(NULL)

example_LDADD = 					\
	$(POLKIT_GOBJECT_LIBS)				\
	$(GTK_LIBS)					\
	$(INTLLIBS)					\
	libpolkit-gtk-mate-1.la				\
	$(NULL)

if ENABLE_INTROSPECTION
girdir = $(GIRDIR)
gir_DATA = PolkitGtkMate-1.0.gir

typelibsdir = $(GIRTYPELIBDIR)
typelibs_DATA = PolkitGtkMate-1.0.typelib

PolkitGtkMate-1.0.gir: libpolkit-gtk-mate-1.la $(G_IR_SCANNER) Makefile.am
	$(G_IR_SCANNER) -v				\
		--namespace PolkitGtkMate		\
		--strip-prefix=Polkit			\
		--nsversion=1.0				\
		--include=Gtk-${GTK_API_VERSION}	\
		--include=Polkit-1.0			\
		--library=polkit-gtk-mate-1		\
		--output $@				\
		--pkg=polkit-gobject-1			\
		--pkg=gtk+-${GTK_API_VERSION}		\
		--pkg-export=polkit-mate-gtk-1		\
		--c-include='polkitgtkmate/polkitgtkmate.h'	\
		--libtool=$(top_builddir)/libtool	\
                -I$(top_srcdir)		 		\
	        -DPOLKIT_GTK_MATE_COMPILATION		\
		$(srcdir)/polkitgtkmate.h		\
		$(srcdir)/polkitgtkmatetypes.h		\
		$(srcdir)/polkitlockbutton.h		\
		$(NULL)

PolkitGtkMate-1.0.typelib: PolkitGtkMate-1.0.gir $(G_IR_COMPILER)
	$(G_IR_COMPILER) $< -o $@

endif # ENABLE_INTROSPECTION

CLEANFILES = $(BUILT_SOURCES) $(pkgconfig_DATA) $(gir_DATA) $(typelibs_DATA)

clean-local :
	rm -f *~ $(BUILT_SOURCES)