blob: 6d43c4a822e4d8dd941499e1bd8511171eed99b1 [file] [log] [blame]
Manojkiran Edaad7e6862018-09-27 13:19:20 +05301noinst_PROGRAMS = list-users
2
3list_users_SOURCES = list-users.cpp
4list_users_CXXFLAGS = $(SYSTEMD_CFLAGS) -I$(top_srcdir)
5list_users_LDADD = $(SYSTEMD_LIBS) ../libsdbusplus.la
Patrick Williams4edb7852017-07-03 11:50:11 -05006
James Feist284a0f92018-04-05 15:28:16 -07007if BOOST
8noinst_PROGRAMS += asio-example
9asio_example_SOURCES = asio-example.cpp
10asio_example_CXXFLAGS = \
11 $(SYSTEMD_CFLAGS) \
12 $(PTHREAD_CFLAGS) \
13 $(BOOST_CPPFLAGS) \
14 -DBOOST_ALL_NO_LIB \
15 -DBOOST_SYSTEM_NO_DEPRECATED \
16 -DBOOST_ERROR_CODE_HEADER_ONLY \
Vernon Mauery261e72b2018-09-25 12:34:25 -070017 -DBOOST_COROUTINES_NO_DEPRECATION_WARNING \
James Feist284a0f92018-04-05 15:28:16 -070018 -I$(top_srcdir)
19
20asio_example_LDADD = \
21 $(SYSTEMD_LIBS) \
22 $(PTHREAD_LIBS) \
Vernon Mauery261e72b2018-09-25 12:34:25 -070023 -lboost_coroutine \
James Feist284a0f92018-04-05 15:28:16 -070024 ../libsdbusplus.la
25
26asio_example_LDFLAGS = \
27 $(BOOST_LDFLAGS)
28endif
29
Manojkiran Edaad7e6862018-09-27 13:19:20 +053030if WANT_SDBUSPP
31noinst_PROGRAMS += calculator-server
Patrick Williams4edb7852017-07-03 11:50:11 -050032calculator_server_generated_files = \
33 net/poettering/Calculator/server.hpp \
34 net/poettering/Calculator/server.cpp \
35 net/poettering/Calculator/error.hpp \
36 net/poettering/Calculator/error.cpp
37
38calculator_markdown_generated_files = \
39 calculator.md
40
41calculator_server_SOURCES = \
42 calculator-server.cpp $(calculator_server_generated_files)
Patrick Williams817248c2017-07-18 21:51:12 -050043calculator_server_CXXFLAGS = $(SYSTEMD_CFLAGS) -I$(top_srcdir)
Patrick Williams4edb7852017-07-03 11:50:11 -050044calculator_server_LDADD = $(SYSTEMD_LIBS) ../libsdbusplus.la
45
46BUILT_SOURCES = \
47 $(calculator_server_generated_files) \
48 $(calculator_markdown_generated_files)
49CLEANFILES = \
50 $(calculator_server_generated_files) \
51 $(calculator_markdown_generated_files)
52
53net/poettering/Calculator/server.hpp:
Patrick Williams817248c2017-07-18 21:51:12 -050054 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050055 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050056 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050057 interface server-header net.poettering.Calculator > $@
58
59net/poettering/Calculator/server.cpp:
Patrick Williams817248c2017-07-18 21:51:12 -050060 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050061 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050062 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050063 interface server-cpp net.poettering.Calculator > $@
64
65net/poettering/Calculator/error.hpp:
Patrick Williams817248c2017-07-18 21:51:12 -050066 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050067 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050068 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050069 error exception-header net.poettering.Calculator > $@
70
71net/poettering/Calculator/error.cpp:
Patrick Williams817248c2017-07-18 21:51:12 -050072 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050073 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050074 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050075 error exception-cpp net.poettering.Calculator > $@
76
77calculator.md:
Patrick Williams817248c2017-07-18 21:51:12 -050078 @mkdir -p $(@D)
Patrick Williams7bfb70a2017-07-03 13:56:51 -050079 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050080 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050081 interface markdown net.poettering.Calculator > $@
Patrick Williams7bfb70a2017-07-03 13:56:51 -050082 @top_srcdir@/tools/sdbus++ \
Patrick Williams817248c2017-07-18 21:51:12 -050083 -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \
Patrick Williams4edb7852017-07-03 11:50:11 -050084 error markdown net.poettering.Calculator >> $@
Manojkiran Edaad7e6862018-09-27 13:19:20 +053085endif