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