summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 6e65ea157a448cd0f8f2743e090b79bb1567b7b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
BUILT_SOURCES=fru-gen.cpp extra-properties-gen.cpp
AM_DEFAULT_SOURCE_EXT = .cpp

CLEANFILES=$(BUILT_SOURCES)

sbin_PROGRAMS = phosphor-read-eeprom

phosphor_read_eeprom_SOURCES = readeeprom.cpp
phosphor_read_eeprom_LDFLAGS = $(SYSTEMD_LIBS) \
	$(libmapper_LIBS) \
	$(PHOSPHOR_LOGGING_LIBS)
phosphor_read_eeprom_CXXFLAGS = $(SYSTEMD_CFLAGS) \
	$(libmapper_CFLAGS) \
	$(PHOSPHOR_LOGGING_CFLAGS)
phosphor_read_eeprom_LDADD = libwritefrudata.la

lib_LTLIBRARIES = libwritefrudata.la
libwritefrudata_la_SOURCES = frup.cpp \
	fru-gen.cpp \
	fru_area.cpp \
	writefrudata.cpp \
	extra-properties-gen.cpp
libwritefrudata_la_LDFLAGS = $(SYSTEMD_LIBS) \
	$(libmapper_LIBS) \
	$(SDBUSPLUS_LIBS) \
	$(PHOSPHOR_LOGGING_LIBS) \
	-version-info 1:0:0 -shared
libwritefrudata_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
	$(libmapper_CFLAGS) \
	$(SDBUSPLUS_CFLAGS) \
	$(PHOSPHOR_LOGGING_CFLAGS) \
	$(LIBIPMID_CFLAGS)

libstrgfnhandlerdir = ${libdir}/ipmid-providers
libstrgfnhandler_LTLIBRARIES = libstrgfnhandler.la
libstrgfnhandler_la_SOURCES = strgfnhandler.cpp
libstrgfnhandler_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
	$(LIBIPMID_LIBS) \
	-version-info 1:0:0 -shared
libstrgfnhandler_la_LIBADD = libwritefrudata.la
libstrgfnhandler_la_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
	$(LIBIPMID_CFLAGS)

fru-gen.cpp:
	$(AM_V_GEN)@FRUGEN@ -o $(top_builddir) generate-cpp
extra-properties-gen.cpp:
	$(AM_V_GEN)@PROPGEN@
OpenPOWER on IntegriCloud