blob: 61fee7cf5925413f9e5f939406c73a3c324927ff (
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
AUTOMAKE_OPTIONS = color-tests parallel-tests
pkgconfiglibdir=$(libdir)/pkgconfig
CLEANFILES =
EXTRA_DIST =
lib_LTLIBRARIES =
noinst_LTLIBRARIES =
noinst_DATA =
pkgconfiglib_DATA =
check_PROGRAMS =
check_DATA =
tests=
noinst_PROGRAMS = $(tests)
check_PROGRAMS += $(tests)
TESTS = $(tests)
DEFAULT_CFLAGS = \
$(OUR_CFLAGS)
DEFAULT_LDFLAGS = \
$(OUR_LDFLAGS)
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
$(DEFAULT_CFLAGS)
AM_CFLAGS = $(DEFAULT_CFLAGS)
AM_LDFLAGS = $(DEFAULT_LDFLAGS)
INSTALL_EXEC_HOOKS =
UNINSTALL_EXEC_HOOKS =
# ------------------------------------------------------------------------------
pkgconfiglib_DATA += \
libsystem/libsystem.pc
EXTRA_DIST += \
libsystem/libsystem.pc.in
CLEANFILES += \
libsystem/libsystem.pc
libsystem_pkgincludedir=$(includedir)/libsystem
libsystem_pkginclude_HEADERS =
libsystem_pkginclude_HEADERS += \
libsystem/config-parser.h \
libsystem/dbus-util.h \
libsystem/glib-util.h \
libsystem/libsystem.h
lib_LTLIBRARIES += \
libsystem.la
libsystem_la_SOURCES = \
libsystem/config-parser.c \
libsystem/config-parser.h \
libsystem/dbus-util.h\
libsystem/exec.c \
libsystem/glib-util.c \
libsystem/glib-util.h \
libsystem/libsystem.c \
libsystem/libsystem.h \
libsystem/proc.c \
libsystem/time-util.c
libsystem_la_CFLAGS = \
$(AM_CFLAGS) \
$(GLIB_CFLAGS)
libsystem_la_LIBADD = \
-lrt
# ------------------------------------------------------------------------------
test_truncate_nl_SOURCES = \
test/test-truncate_nl.c
test_truncate_nl_LDADD = \
libsystem.la
tests += test-truncate_nl
# ------------------------------------------------------------------------------
pkgconfiglib_DATA += \
libsystem-sd/libsystem-sd.pc
EXTRA_DIST += \
libsystem-sd/libsystem-sd.pc.in
CLEANFILES += \
libsystem-sd/libsystem-sd.pc
libsystem_sd_pkgincludedir=$(includedir)/libsystem-sd
libsystem_sd_pkginclude_HEADERS =
libsystem_sd_pkginclude_HEADERS += \
libsystem-sd/systemd.h
lib_LTLIBRARIES += \
libsystem-sd.la
libsystem_sd_la_SOURCES = \
libsystem-sd/systemd.c \
libsystem-sd/systemd.h
libsystem_sd_la_CFLAGS = \
$(AM_CFLAGS) \
$(DBUS_CFLAGS) \
$(GLIB_CFLAGS) \
$(GIO_CFLAGS)
libsystem_sd_la_LIBADD = \
-lrt \
$(DBUS_LIBS) \
$(GIO_LIBS) \
libsystem.la
# ------------------------------------------------------------------------------
substitutions = \
'|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
'|PACKAGE_NAME=$(PACKAGE_NAME)|' \
'|PACKAGE_URL=$(PACKAGE_URL)|' \
'|LIBSYSTEM_PC_REQUIRES=$(LIBSYSTEM_PC_REQUIRES)|' \
'|LIBSYSTEM_PC_CFLAGS=$(LIBSYSTEM_PC_CFLAGS)|' \
'|LIBSYSTEM_PC_LIBS=$(LIBSYSTEM_PC_LIBS)|' \
'|LIBSYSTEM_SD_PC_REQUIRES=$(LIBSYSTEM_SD_PC_REQUIRES)|' \
'|LIBSYSTEM_SD_PC_CFLAGS=$(LIBSYSTEM_SD_PC_CFLAGS)|' \
'|LIBSYSTEM_SD_PC_LIBS=$(LIBSYSTEM_SD_PC_LIBS)|' \
'|includedir=$(includedir)|' \
'|VERSION=$(VERSION)|'
SED_PROCESS = \
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
$(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
< $< > $@
%.pc: %.pc.in
$(SED_PROCESS)
install-exec-hook: $(INSTALL_EXEC_HOOKS)
|