blob: d90a0e330bf6db32320cc4107732e5c42021d02f [file] [log] [blame]
Andrew Geissler36529022016-11-29 15:23:54 -06001AM_DEFAULT_SOURCE_EXT = .cpp
2
3sbin_PROGRAMS = \
Andrew Geissler794baed2017-01-16 13:12:21 -06004 phosphor-host-state-manager \
Josh D. Kingbdd9cb72016-12-19 11:13:43 -06005 phosphor-chassis-state-manager \
Michael Tritz3ed10082017-03-20 23:28:09 -05006 phosphor-bmc-state-manager \
Andrew Geisslerb09463d2017-03-24 15:55:17 -05007 phosphor-discover-system-state \
8 phosphor-host-check
Andrew Geissler36529022016-11-29 15:23:54 -06009
Anthony Wilsondc305232019-02-04 02:47:45 -060010dist_sbin_SCRIPTS = \
11 obmcutil
12
Andrew Geissler794baed2017-01-16 13:12:21 -060013phosphor_host_state_manager_SOURCES = \
Andrew Geissler36529022016-11-29 15:23:54 -060014 host_state_manager.cpp \
Dhruvaraj Subhashchandran3f475242017-07-12 00:44:27 -050015 host_state_manager_main.cpp \
Deepak Kodihalli3dd08a52017-07-25 07:34:44 -050016 settings.cpp
Andrew Geissler36529022016-11-29 15:23:54 -060017
Andrew Geissler794baed2017-01-16 13:12:21 -060018phosphor_chassis_state_manager_SOURCES = \
Andrew Geisslera90a31a2016-12-13 16:16:28 -060019 chassis_state_manager.cpp \
William A. Kennington IIId998f822018-10-17 23:17:57 -070020 chassis_state_manager_main.cpp
Andrew Geisslera90a31a2016-12-13 16:16:28 -060021
Josh D. Kingbdd9cb72016-12-19 11:13:43 -060022phosphor_bmc_state_manager_SOURCES = \
23 bmc_state_manager.cpp \
Josh D. Kingbdd9cb72016-12-19 11:13:43 -060024 bmc_state_manager_main.cpp
25
Michael Tritz3ed10082017-03-20 23:28:09 -050026phosphor_discover_system_state_SOURCES = \
Deepak Kodihalli55f132b2017-07-25 07:36:06 -050027 discover_system_state.cpp \
28 settings.cpp
Michael Tritz3ed10082017-03-20 23:28:09 -050029
Andrew Geisslerb09463d2017-03-24 15:55:17 -050030phosphor_host_check_SOURCES = \
31 host_check_main.cpp
32
Deepak Kodihalli3dd08a52017-07-25 07:34:44 -050033generic_cxxflags = \
34 $(SYSTEMD_CFLAGS) \
35 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
36 $(SDBUSPLUS_CFLAGS) \
37 $(PHOSPHOR_LOGGING_CFLAGS)
38
39generic_ldflags = \
40 $(SYSTEMD_LIBS) \
41 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Nagaraju Goruganticb781fe2018-04-06 13:41:01 -050042 $(SDBUSPLUS_LIBS) \
Deepak Kodihalli3dd08a52017-07-25 07:34:44 -050043 $(PHOSPHOR_LOGGING_LIBS)
Patrick Williams515f74b2017-01-30 10:56:09 -060044
45phosphor_host_state_manager_CXXFLAGS = $(generic_cxxflags)
Dhruvaraj Subhashchandran3f475242017-07-12 00:44:27 -050046phosphor_host_state_manager_LDFLAGS = $(generic_ldflags) -lstdc++fs
Patrick Williams515f74b2017-01-30 10:56:09 -060047
William A. Kennington IIId998f822018-10-17 23:17:57 -070048phosphor_chassis_state_manager_CXXFLAGS = \
49 $(generic_cxxflags) \
50 $(SDEVENTPLUS_CFLAGS)
51phosphor_chassis_state_manager_LDFLAGS = \
52 $(generic_ldflags) \
53 $(SDEVENTPLUS_LIBS) \
54 -lstdc++fs
Patrick Williams515f74b2017-01-30 10:56:09 -060055
56phosphor_bmc_state_manager_CXXFLAGS = $(generic_cxxflags)
57phosphor_bmc_state_manager_LDFLAGS = $(generic_ldflags)
Michael Tritz3ed10082017-03-20 23:28:09 -050058
59phosphor_discover_system_state_CXXFLAGS = $(generic_cxxflags)
60phosphor_discover_system_state_LDFLAGS = $(generic_ldflags)
Andrew Geisslerb09463d2017-03-24 15:55:17 -050061
62phosphor_host_check_CXXFLAGS = $(generic_cxxflags)
63phosphor_host_check_LDFLAGS = $(generic_ldflags)