blob: a7bc2f57f81001f5d4dfa15af1b2edb327e33840 (
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
|
AM_CPPFLAGS = \
$(GLIB_CFLAGS) \
$(GIO_UNIX_CFLAGS) \
-I$(top_builddir) \
-I$(top_srcdir) \
-I$(top_srcdir)/dbus \
-I$(top_srcdir)/libupower-glib \
-DUP_COMPILATION \
-DG_LOG_DOMAIN=\"libupower-glib\" \
-DPACKAGE_DATA_DIR=\""$(datadir)"\" \
-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\"
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir)
INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
lib_LTLIBRARIES = \
libupower-glib.la
libupower_glib_includedir = $(includedir)/libupower-glib
libupower_glib_include_HEADERS = \
upower.h \
up-autocleanups.h \
up-version.h \
up-types.h \
up-device.h \
up-wakeup-item.h \
up-stats-item.h \
up-history-item.h \
up-wakeups.h \
up-client.h
libupower_glib_la_SOURCES = \
up-types.c \
up-client.c \
up-wakeups.c \
up-wakeup-item.c \
up-stats-item.c \
up-history-item.c \
up-device.c
libupower_glib_la_LIBADD = \
$(INTLLIBS) \
$(GLIB_LIBS) \
$(GIO_UNIX_LIBS) \
$(top_builddir)/dbus/libupower-dbus.la
libupower_glib_la_LDFLAGS = \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \
-export-dynamic \
-no-undefined \
-export-symbols-regex '^up_.*'
libupower_glib_la_CFLAGS = \
$(WARNINGFLAGS_C) \
$(NULL)
EXTRA_DIST = \
up-version.h.in
CLEANFILES = $(BUILT_SOURCES)
if HAVE_INTROSPECTION
introspection_sources = $(libupower_glib_include_HEADERS) $(libupower_glib_la_SOURCES)
UPowerGlib-1.0.gir: libupower-glib.la
UPowerGlib_1_0_gir_INCLUDES = GObject-2.0 Gio-2.0
UPowerGlib_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
UPowerGlib_1_0_gir_SCANNERFLAGS = --identifier-prefix=Up --symbol-prefix=up_ --warn-all --add-include-path=$(srcdir)
UPowerGlib_1_0_gir_LIBS = libupower-glib.la
UPowerGlib_1_0_gir_FILES = $(introspection_sources)
UPowerGlib_1_0_gir_NAMESPACE = UPowerGlib
INTROSPECTION_GIRS += UPowerGlib-1.0.gir
girdir = $(datadir)/gir-1.0
gir_DATA = $(INTROSPECTION_GIRS)
typelibdir = $(libdir)/girepository-1.0
typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelib_DATA)
endif
clean-local:
rm -f *~
-include $(top_srcdir)/git.mk
|