Brad Bishop | 1a886e3 | 2016-11-11 16:02:10 -0500 | [diff] [blame^] | 1 | EXTRAIFACES_C=@EXTRAIFACES_C@ |
| 2 | EXTRAIFACES_LO=@EXTRAIFACES_LO@ |
| 3 | BUILT_SOURCES=generated.cpp |
| 4 | CLEANFILES=$(BUILT_SOURCES) $(EXTRAIFACES_C) libextra.la |
| 5 | |
Brad Bishop | 73b776b | 2016-10-19 07:50:28 -0400 | [diff] [blame] | 6 | sbin_PROGRAMS = phosphor-inventory |
| 7 | |
Brad Bishop | d446835 | 2016-10-31 13:20:02 -0500 | [diff] [blame] | 8 | phosphor_inventory_SOURCES = app.cpp |
| 9 | phosphor_inventory_LDADD = libmanager.la |
| 10 | |
| 11 | noinst_LTLIBRARIES = libmanager.la |
| 12 | libmanager_la_SOURCES = \ |
Brad Bishop | adc4566 | 2016-10-28 20:00:57 -0500 | [diff] [blame] | 13 | xyz.openbmc_project.Inventory.Manager.cpp \ |
Brad Bishop | 789cf83 | 2016-10-22 00:47:54 -0400 | [diff] [blame] | 14 | generated.cpp \ |
Brad Bishop | 49aefb3 | 2016-10-19 11:54:14 -0400 | [diff] [blame] | 15 | manager.cpp |
Brad Bishop | 1a886e3 | 2016-11-11 16:02:10 -0500 | [diff] [blame^] | 16 | libmanager_la_LIBADD = libextra.la |
Brad Bishop | 64d994a | 2016-10-31 10:24:27 -0500 | [diff] [blame] | 17 | |
Brad Bishop | 1a886e3 | 2016-11-11 16:02:10 -0500 | [diff] [blame^] | 18 | # Automake does not allow autoconf substituted variables |
| 19 | # in _SOURCES variables. Work around this by providing |
| 20 | # our own target. |
| 21 | # |
| 22 | # Typically the recommendation is conditional compilation |
| 23 | # but here the generated source files are completely |
| 24 | # arbitrary and not known making that approach difficult. |
| 25 | libextra.la: $(EXTRAIFACES_LO) |
| 26 | $(AM_V_CXXLD)$(CXXLINK) $(EXTRAIFACES_LO) |
| 27 | |
| 28 | $(EXTRAIFACES_C) generated.cpp: |
| 29 | $(AM_V_GEN)@PIMGEN@ -o $(top_builddir) generate-cpp |
| 30 | |
Brad Bishop | 49aefb3 | 2016-10-19 11:54:14 -0400 | [diff] [blame] | 31 | phosphor_inventory_LDFLAGS = $(SYSTEMD_LIBS) |
| 32 | phosphor_inventory_CFLAGS = $(SYSTEMD_CFLAGS) |
| 33 | |
Brad Bishop | 74e52bc | 2016-10-31 13:12:04 -0500 | [diff] [blame] | 34 | SUBDIRS = . test |