blob: 68cbd87ee4745a1b342af57668ec7a03ae593a34 [file] [log] [blame]
Deepak Kodihalli5de09572017-05-16 23:53:40 -05001AM_DEFAULT_SOURCE_EXT = .cpp
2
3BUILT_SOURCES = \
4 settings_manager.hpp
5CLEANFILES = \
6 settings_manager.hpp
7
8SETTINGS_GEN_SCRIPT ?= \
9 ${abs_srcdir}/settings.py
10SETTINGS_GEN_SCRIPT_FILES ?= \
11 ${abs_srcdir}/settings_example.yaml \
12 ${abs_srcdir}/settings_manager.mako.hpp
13
14settings_manager.hpp: ${SETTINGS_GEN_SCRIPT} ${SETTINGS_GEN_SCRIPT_FILES}
15 $(AM_V_GEN)@SETTINGSGEN@
16
17# Build these headers, don't install them
18noinst_HEADERS = \
19 settings_manager.hpp
20
Patrick Venturef1d09b02019-03-28 11:30:32 -070021bin_PROGRAMS = \
Deepak Kodihalli5de09572017-05-16 23:53:40 -050022 phosphor-settings-manager
23
24phosphor_settings_manager_SOURCES = \
25 settings_main.cpp
26
27phosphor_settings_manager_CXXFLAGS = \
28 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Dhruvaraj Subhashchandran61d3b6a2017-07-25 09:36:54 -050029 $(SDBUSPLUS_CFLAGS) \
Kun Yi3d805fe2019-10-07 13:25:05 -070030 $(PHOSPHOR_LOGGING_CFLAGS)
Deepak Kodihalli5de09572017-05-16 23:53:40 -050031
32phosphor_settings_manager_LDADD = \
33 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Deepak Kodihalli7a6f2522017-06-23 23:05:47 -050034 $(SDBUSPLUS_LIBS) \
Kun Yi3d805fe2019-10-07 13:25:05 -070035 $(PHOSPHOR_LOGGING_LIBS) \
Deepak Kodihalli7a6f2522017-06-23 23:05:47 -050036 -lstdc++fs