summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 3564cf5e7fa2235b03231c696e0006ae22537a56 (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
48
AM_DEFAULT_SOURCE_EXT = .cpp

libblobcmdsdir = ${libdir}/ipmid-providers
libblobcmds_LTLIBRARIES = libblobcmds.la
libblobcmds_la_SOURCES = \
	main.cpp \
	ipmi.cpp \
	manager.cpp \
	process.cpp \
	crc.cpp \
	utils.cpp

libblobcmds_la_LDFLAGS = \
	$(SYSTEMD_LIBS) \
	$(LIBADD_DLOPEN) \
	$(PHOSPHOR_LOGGING_LIBS) \
	-lstdc++fs \
	-version-info 0:0:0 -shared

libblobcmds_la_CXXFLAGS = \
	$(SYSTEMD_CFLAGS) \
	$(PHOSPHOR_LOGGING_CFLAGS) \
	-flto

nobase_include_HEADERS = \
	blobs-ipmid/blobs.hpp \
	blobs-ipmid/manager.hpp \
	blobs-ipmid/test/blob_mock.hpp \
	blobs-ipmid/test/manager_mock.hpp

# Install the blob handlers in ipmid-providers so you can leverage
# meta-phosphor/blob/master/classes/obmc-phosphor-ipmiprovider-symlink.bbclass
# Which will create a symlink in ${D}/${libdir}/blob-ipmid/ pointing to the
# library in ${D}/${libdir}/ipmid-providers/

# Always build but only installed if you add the item:
# BLOBIPMI_PROVIDER_LIBRARY += "libexample.so"
libblobexampledir = ${libdir}/ipmid-providers
libblobexample_LTLIBRARIES = libblobexample.la
libblobexample_la_SOURCES = example/example.cpp
libblobexample_la_LDFLAGS = \
	$(PHOSPHOR_LOGGING_LIBS) \
	-version-info 0:0:0 -shared
libblobexample_la_CXXFLAGS = \
	$(PHOSPHOR_LOGGING_CFLAGS) \
	-flto

SUBDIRS = . test
OpenPOWER on IntegriCloud