blob: 314e7593e5131657f8b893e0ece588cf364351bf [file] [log] [blame]
Patrick Venture4d49ae62018-09-17 11:35:32 -07001AM_DEFAULT_SOURCE_EXT = .cpp
2
Patrick Venturef9a19b82018-09-18 10:03:24 -07003if HAVE_SYSTEMD
4systemdsystemunit_DATA = \
5 gbmc-psu-hardreset.target
6endif
7
William A. Kennington III6eb29402019-03-14 11:03:55 -07008noinst_LTLIBRARIES = libsyscmds_common.la
9libsyscmds_common_la_SOURCES = cable.cpp cpld.cpp eth.cpp psu.cpp pcie_i2c.cpp entity_name.cpp
10libsyscmds_common_la_CXXFLAGS = \
11 $(SDBUSPLUS_CFLAGS) \
12 $(PHOSPHOR_LOGGING_CFLAGS)
13libsyscmds_common_la_LDFLAGS = \
Patrick Venturea313c402018-11-09 08:25:06 -080014 $(SDBUSPLUS_LIBS) \
15 $(PHOSPHOR_LOGGING_LIBS) \
William A. Kennington III6eb29402019-03-14 11:03:55 -070016 -lstdc++fs
17
18libsyscmdsdir = ${libdir}/ipmid-providers
19libsyscmds_LTLIBRARIES = libsyscmds.la
20libsyscmds_la_SOURCES = main.cpp
21libsyscmds_la_LIBADD = libsyscmds_common.la
22libsyscmds_la_LDFLAGS = \
William A. Kennington III2c9e1622019-02-07 15:45:19 -080023 $(LIBIPMID_LIBS) \
Patrick Venturea313c402018-11-09 08:25:06 -080024 -version-info 0:0:0 -shared
Patrick Venture4d49ae62018-09-17 11:35:32 -070025
Patrick Venturea313c402018-11-09 08:25:06 -080026libsyscmds_la_CXXFLAGS = \
William A. Kennington III2c9e1622019-02-07 15:45:19 -080027 $(LIBIPMID_CFLAGS) \
Patrick Ventureff40f272018-11-09 08:38:23 -080028 -flto
Patrick Venture848b9382019-03-13 15:48:23 -070029
30SUBDIRS = . test