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 pkgconfiglib_DATA += \
117 libsystem-sd/libsystem-sd.pc
120 libsystem-sd/libsystem-sd.pc.in
123 libsystem-sd/libsystem-sd.pc
125 libsystem_sd_pkgincludedir=$(includedir)/libsystem-sd
126 libsystem_sd_pkginclude_HEADERS =
128 libsystem_sd_pkginclude_HEADERS += \
129 libsystem-sd/systemd.h
134 libsystem_sd_la_SOURCES = \
135 libsystem-sd/systemd.c \
136 libsystem-sd/systemd.h
138 libsystem_sd_la_CFLAGS = \
144 libsystem_sd_la_LIBADD = \
150 # ------------------------------------------------------------------------------
152 '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \
153 '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
154 '|PACKAGE_URL=$(PACKAGE_URL)|' \
155 '|LIBSYSTEM_PC_REQUIRES=$(LIBSYSTEM_PC_REQUIRES)|' \
156 '|LIBSYSTEM_PC_CFLAGS=$(LIBSYSTEM_PC_CFLAGS)|' \
157 '|LIBSYSTEM_PC_LIBS=$(LIBSYSTEM_PC_LIBS)|' \
158 '|LIBSYSTEM_SD_PC_REQUIRES=$(LIBSYSTEM_SD_PC_REQUIRES)|' \
159 '|LIBSYSTEM_SD_PC_CFLAGS=$(LIBSYSTEM_SD_PC_CFLAGS)|' \
160 '|LIBSYSTEM_SD_PC_LIBS=$(LIBSYSTEM_SD_PC_LIBS)|' \
161 '|includedir=$(includedir)|' \
162 '|VERSION=$(VERSION)|'
165 $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
166 $(SED) $(subst '|,-e 's|@,$(subst =,\@|,$(subst |',|g',$(substitutions)))) \
173 $(AM_V_at)$(MKDIR_P) $(dir $@)
174 $(AM_V_GPERF)$(GPERF) < $< > $@
176 install-exec-hook: $(INSTALL_EXEC_HOOKS)