blob: 86ab50aed8af34080ae7699e1af4c219384b0971 [file] [log] [blame]
Patrick Williamse36cf852017-07-03 14:50:21 -05001noinst_PROGRAMS = calculator-server list-users
Patrick Williams4edb7852017-07-03 11:50:11 -05002
James Feist284a0f92018-04-05 15:28:16 -07003if BOOST
4noinst_PROGRAMS += asio-example
5asio_example_SOURCES = asio-example.cpp
6asio_example_CXXFLAGS = \
7 $(SYSTEMD_CFLAGS) \
8 $(PTHREAD_CFLAGS) \
9 $(BOOST_CPPFLAGS) \
10 -DBOOST_ALL_NO_LIB \
11 -DBOOST_SYSTEM_NO_DEPRECATED \
12 -DBOOST_ERROR_CODE_HEADER_ONLY \
13 -I$(top_srcdir)
14
15asio_example_LDADD = \
16 $(SYSTEMD_LIBS) \
17 $(PTHREAD_LIBS) \
18 ../libsdbusplus.la
19
20asio_example_LDFLAGS = \
21 $(BOOST_LDFLAGS)
22endif
23
Patrick Williams4edb7852017-07-03 11:50:11 -050024calculator_server_generated_files = \
25 net/poettering/Calculator/server.hpp \
26 net/poettering/Calculator/server.cpp \
27 net/poettering/Calculator/error.hpp \
28 net/poettering/Calculator/error.cpp
29
30calculator_markdown_generated_files = \
31 calculator.md
32
33calculator_server_SOURCES = \
34 calculator-server.cpp $(calculator_server_generated_files)
Patrick Williams817248c2017-07-18 21:51:12 -050035calculator_server_CXXFLAGS = $(SYSTEMD_CFLAGS) -I$(top_srcdir)
Patrick Williams4edb7852017-07-03 11:50:11 -050036calculator_server_LDADD = $(SYSTEMD_LIBS) ../libsdbusplus.la
37
Patrick Williamse36cf852017-07-03 14:50:21 -050038list_users_SOURCES = list-users.cpp
Patrick Williams817248c2017-07-18 21:51:12 -050039list_users_CXXFLAGS = $(SYSTEMD_CFLAGS) -I$(top_srcdir)
Patrick Williamse36cf852017-07-03 14:50:21 -050040list_users_LDADD = $(SYSTEMD_LIBS) ../libsdbusplus.la
41
Patrick Williams4edb7852017-07-03 11:50:11 -050042BUILT_SOURCES = \
43 $(calculator_server_generated_files) \
44 $(calculator_markdown_generated_files)
45CLEANFILES = \
46 $(calculator_server_generated_files) \
47 $(calculator_markdown_generated_files)
48
49net/poettering/Calculator/server.hpp:
Patrick Williams817248c2017-07-18 21:51:12 -050050 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050051 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050052 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050053 interface server-header net.poettering.Calculator > $@
54
55net/poettering/Calculator/server.cpp:
Patrick Williams817248c2017-07-18 21:51:12 -050056 @mkdir -p $(@D)
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 interface server-cpp net.poettering.Calculator > $@
60
61net/poettering/Calculator/error.hpp:
Patrick Williams817248c2017-07-18 21:51:12 -050062 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050063 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050064 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050065 error exception-header net.poettering.Calculator > $@
66
67net/poettering/Calculator/error.cpp:
Patrick Williams817248c2017-07-18 21:51:12 -050068 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050069 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050070 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050071 error exception-cpp net.poettering.Calculator > $@
72
73calculator.md:
Patrick Williams817248c2017-07-18 21:51:12 -050074 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050075 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050076 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050077 interface markdown net.poettering.Calculator > $@
Patrick Williams7bfb70a2017-07-03 13:56:51 -050078 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050079 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050080 error markdown net.poettering.Calculator >> $@