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