1 AUTOMAKE_OPTIONS = color-tests parallel-tests
3 pkgconfiglibdir=$(libdir)/pkgconfig
16 noinst_PROGRAMS = $(tests)
17 check_PROGRAMS += $(tests)
27 -include $(top_builddir)/config.h \
30 AM_CFLAGS = $(DEFAULT_CFLAGS)
31 AM_LDFLAGS = $(DEFAULT_LDFLAGS)
34 UNINSTALL_EXEC_HOOKS =
36 # ------------------------------------------------------------------------------
37 pkgconfiglib_DATA += \
38 libsystem/libsystem.pc
41 libsystem/libsystem.pc.in
44 libsystem/libsystem.pc
46 libsystem_pkgincludedir=$(includedir)/libsystem
47 libsystem_pkginclude_HEADERS =
49 libsystem_pkginclude_HEADERS += \
50 libsystem/config-parser.h \
51 libsystem/dbus-util.h \
52 libsystem/glib-util.h \
53 libsystem/libsystem.h \
59 libsystem_la_SOURCES = \
60 libsystem/config-parser.c \
61 libsystem/config-parser.h \
62 libsystem/dbus-util.h\
64 libsystem/glib-util.c \
65 libsystem/glib-util.h \
66 libsystem/libsystem.c \
67 libsystem/libsystem.h \
69 libsystem/proc-meminfo-lookup.c \
70 libsystem/proc-smaps-lookup.c \
74 libsystem/proc-meminfo-lookup.gperf \
75 libsystem/proc-smaps-lookup.gperf
78 libsystem/proc-meminfo-lookup.c \
79 libsystem/proc-smaps-lookup.c
81 libsystem_la_CFLAGS = \
85 libsystem_la_LIBADD = \
88 # ------------------------------------------------------------------------------
89 test_truncate_nl_SOURCES = \
90 test/test-truncate_nl.c
92 test_truncate_nl_LDADD = \
95 tests += test-truncate_nl
97 # ------------------------------------------------------------------------------
106 # ------------------------------------------------------------------------------
115 # ------------------------------------------------------------------------------
116 test_read_write_SOURCES = \
117 test/test-read-write.c
119 test_read_write_LDADD = \
122 tests += test-read-write
124 # ------------------------------------------------------------------------------
125 pkgconfiglib_DATA += \
126 libsystem-sd/libsystem-sd.pc
129 libsystem-sd/libsystem-sd.pc.in
132 libsystem-sd/libsystem-sd.pc
134 libsystem_sd_pkgincludedir=$(includedir)/libsystem-sd
135 libsystem_sd_pkginclude_HEADERS =
137 libsystem_sd_pkginclude_HEADERS += \
138 libsystem-sd/systemd.h
143 libsystem_sd_la_SOURCES = \
144 libsystem-sd/systemd.c \
145 libsystem-sd/systemd.h
147 libsystem_sd_la_CFLAGS = \
153 libsystem_sd_la_LIBADD = \
159 # ------------------------------------------------------------------------------
161 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
162 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
163 '|PACKAGE_URL=$(PACKAGE_URL)|' \
164 '|LIBSYSTEM_PC_REQUIRES=$(LIBSYSTEM_PC_REQUIRES)|' \
165 '|LIBSYSTEM_PC_CFLAGS=$(LIBSYSTEM_PC_CFLAGS)|' \
166 '|LIBSYSTEM_PC_LIBS=$(LIBSYSTEM_PC_LIBS)|' \
167 '|LIBSYSTEM_SD_PC_REQUIRES=$(LIBSYSTEM_SD_PC_REQUIRES)|' \
168 '|LIBSYSTEM_SD_PC_CFLAGS=$(LIBSYSTEM_SD_PC_CFLAGS)|' \
169 '|LIBSYSTEM_SD_PC_LIBS=$(LIBSYSTEM_SD_PC_LIBS)|' \
170 '|includedir=$(includedir)|' \
171 '|VERSION=$(VERSION)|'
174 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
175 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
182 $(AM_V_at)$(MKDIR_P) $(dir $@)
183 $(AM_V_GPERF)$(GPERF) < $< > $@
185 install-exec-hook: $(INSTALL_EXEC_HOOKS)