Patrick Williams | e36cf85 | 2017-07-03 14:50:21 -0500 | [diff] [blame] | 1 | noinst_PROGRAMS = calculator-server list-users |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 2 | |
James Feist | 284a0f9 | 2018-04-05 15:28:16 -0700 | [diff] [blame] | 3 | if BOOST |
| 4 | noinst_PROGRAMS += asio-example |
| 5 | asio_example_SOURCES = asio-example.cpp |
| 6 | asio_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 | |
| 15 | asio_example_LDADD = \ |
| 16 | $(SYSTEMD_LIBS) \ |
| 17 | $(PTHREAD_LIBS) \ |
| 18 | ../libsdbusplus.la |
| 19 | |
| 20 | asio_example_LDFLAGS = \ |
| 21 | $(BOOST_LDFLAGS) |
| 22 | endif |
| 23 | |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 24 | calculator_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 | |
| 30 | calculator_markdown_generated_files = \ |
| 31 | calculator.md |
| 32 | |
| 33 | calculator_server_SOURCES = \ |
| 34 | calculator-server.cpp $(calculator_server_generated_files) |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 35 | calculator_server_CXXFLAGS = $(SYSTEMD_CFLAGS) -I$(top_srcdir) |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 36 | calculator_server_LDADD = $(SYSTEMD_LIBS) ../libsdbusplus.la |
| 37 | |
Patrick Williams | e36cf85 | 2017-07-03 14:50:21 -0500 | [diff] [blame] | 38 | list_users_SOURCES = list-users.cpp |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 39 | list_users_CXXFLAGS = $(SYSTEMD_CFLAGS) -I$(top_srcdir) |
Patrick Williams | e36cf85 | 2017-07-03 14:50:21 -0500 | [diff] [blame] | 40 | list_users_LDADD = $(SYSTEMD_LIBS) ../libsdbusplus.la |
| 41 | |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 42 | BUILT_SOURCES = \ |
| 43 | $(calculator_server_generated_files) \ |
| 44 | $(calculator_markdown_generated_files) |
| 45 | CLEANFILES = \ |
| 46 | $(calculator_server_generated_files) \ |
| 47 | $(calculator_markdown_generated_files) |
| 48 | |
| 49 | net/poettering/Calculator/server.hpp: |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 50 | @mkdir -p $(@D) |
Patrick Williams | 7bfb70a | 2017-07-03 13:56:51 -0500 | [diff] [blame] | 51 | @top_srcdir@/tools/sdbus++ \ |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 52 | -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \ |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 53 | interface server-header net.poettering.Calculator > $@ |
| 54 | |
| 55 | net/poettering/Calculator/server.cpp: |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 56 | @mkdir -p $(@D) |
Patrick Williams | 7bfb70a | 2017-07-03 13:56:51 -0500 | [diff] [blame] | 57 | @top_srcdir@/tools/sdbus++ \ |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 58 | -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \ |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 59 | interface server-cpp net.poettering.Calculator > $@ |
| 60 | |
| 61 | net/poettering/Calculator/error.hpp: |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 62 | @mkdir -p $(@D) |
Patrick Williams | 7bfb70a | 2017-07-03 13:56:51 -0500 | [diff] [blame] | 63 | @top_srcdir@/tools/sdbus++ \ |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 64 | -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \ |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 65 | error exception-header net.poettering.Calculator > $@ |
| 66 | |
| 67 | net/poettering/Calculator/error.cpp: |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 68 | @mkdir -p $(@D) |
Patrick Williams | 7bfb70a | 2017-07-03 13:56:51 -0500 | [diff] [blame] | 69 | @top_srcdir@/tools/sdbus++ \ |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 70 | -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \ |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 71 | error exception-cpp net.poettering.Calculator > $@ |
| 72 | |
| 73 | calculator.md: |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 74 | @mkdir -p $(@D) |
Patrick Williams | 7bfb70a | 2017-07-03 13:56:51 -0500 | [diff] [blame] | 75 | @top_srcdir@/tools/sdbus++ \ |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 76 | -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \ |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 77 | interface markdown net.poettering.Calculator > $@ |
Patrick Williams | 7bfb70a | 2017-07-03 13:56:51 -0500 | [diff] [blame] | 78 | @top_srcdir@/tools/sdbus++ \ |
Patrick Williams | 817248c | 2017-07-18 21:51:12 -0500 | [diff] [blame] | 79 | -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \ |
Patrick Williams | 4edb785 | 2017-07-03 11:50:11 -0500 | [diff] [blame] | 80 | error markdown net.poettering.Calculator >> $@ |