aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am45
1 files changed, 45 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..58a1dea
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,45 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+EXTRA_DIST = \
+ data/hostnamed.xml \
+ $(NULL)
+
+AM_CPPFLAGS = \
+ -include $(top_builddir)/config.h \
+ -DSYSCONFDIR=\""$(sysconfdir)"\" \
+ -DLIBEXECDIR=\""$(libexecdir)"\" \
+ $(OPENRC_SETTINGSD_CFLAGS) \
+ -I$(top_srcdir)/src \
+ -I$(top_builddir)/src \
+ $(NULL)
+
+LDADD = $(OPENRC_SETTINGSD_LIBS)
+
+libexec_PROGRAMS = openrc-settingsd
+
+hostnamed_built_sources = \
+ src/hostnamed-generated.c \
+ src/hostnamed-generated.h \
+ $(NULL)
+
+openrc_settingsd_SOURCES = \
+ $(hostnamed_built_sources) \
+ src/hostnamed.c \
+ src/hostnamed.h \
+ src/bus-utils.c \
+ src/bus-utils.h \
+ src/shell-utils.c \
+ src/shell-utils.h \
+ src/main.c \
+ $(NULL)
+
+$(hostnamed_built_sources) : data/hostnamed.xml
+ ( $(GDBUS_CODEGEN) \
+ --interface-prefix org.freedesktop. \
+ --c-namespace OpenrcSettingsdHostnamed \
+ --generate-c-code hostnamed-generated \
+ $(srcdir)/data/hostnamed.xml; \
+ mv hostnamed-generated.{c,h} $(top_srcdir)/src/ )
+
+BUILT_SOURCES = $(hostnamed_built_sources)
+CLEANFILES = $(hostnamed_built_sources)