blob: 2cf894193f6946109baf9e577f820ed8b3539378 [file] [log] [blame]
Patrick Williamse36cf852017-07-03 14:50:21 -05001noinst_PROGRAMS = calculator-server list-users
Patrick Williams4edb7852017-07-03 11:50:11 -05002
3calculator_server_generated_files = \
4 net/poettering/Calculator/server.hpp \
5 net/poettering/Calculator/server.cpp \
6 net/poettering/Calculator/error.hpp \
7 net/poettering/Calculator/error.cpp
8
9calculator_markdown_generated_files = \
10 calculator.md
11
12calculator_server_SOURCES = \
13 calculator-server.cpp $(calculator_server_generated_files)
Patrick Williams817248c2017-07-18 21:51:12 -050014calculator_server_CXXFLAGS = $(SYSTEMD_CFLAGS) -I$(top_srcdir)
Patrick Williams4edb7852017-07-03 11:50:11 -050015calculator_server_LDADD = $(SYSTEMD_LIBS) ../libsdbusplus.la
16
Patrick Williamse36cf852017-07-03 14:50:21 -050017list_users_SOURCES = list-users.cpp
Patrick Williams817248c2017-07-18 21:51:12 -050018list_users_CXXFLAGS = $(SYSTEMD_CFLAGS) -I$(top_srcdir)
Patrick Williamse36cf852017-07-03 14:50:21 -050019list_users_LDADD = $(SYSTEMD_LIBS) ../libsdbusplus.la
20
Patrick Williams4edb7852017-07-03 11:50:11 -050021BUILT_SOURCES = \
22 $(calculator_server_generated_files) \
23 $(calculator_markdown_generated_files)
24CLEANFILES = \
25 $(calculator_server_generated_files) \
26 $(calculator_markdown_generated_files)
27
28net/poettering/Calculator/server.hpp:
Patrick Williams817248c2017-07-18 21:51:12 -050029 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050030 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050031 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050032 interface server-header net.poettering.Calculator > $@
33
34net/poettering/Calculator/server.cpp:
Patrick Williams817248c2017-07-18 21:51:12 -050035 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050036 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050037 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050038 interface server-cpp net.poettering.Calculator > $@
39
40net/poettering/Calculator/error.hpp:
Patrick Williams817248c2017-07-18 21:51:12 -050041 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050042 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050043 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050044 error exception-header net.poettering.Calculator > $@
45
46net/poettering/Calculator/error.cpp:
Patrick Williams817248c2017-07-18 21:51:12 -050047 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050048 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050049 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050050 error exception-cpp net.poettering.Calculator > $@
51
52calculator.md:
Patrick Williams817248c2017-07-18 21:51:12 -050053 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050054 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050055 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050056 interface markdown net.poettering.Calculator > $@
Patrick Williams7bfb70a2017-07-03 13:56:51 -050057 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050058 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050059 error markdown net.poettering.Calculator >> $@