forked from power-ras/libvpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
71 lines (59 loc) · 1.99 KB
/
Makefile.am
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
lib_hpp_files = src/libvpd-2/vpdretriever.hpp \
src/libvpd-2/system.hpp \
src/libvpd-2/component.hpp \
src/libvpd-2/vpdexception.hpp \
src/libvpd-2/dataitem.hpp \
src/libvpd-2/Source.hpp \
src/libvpd-2/logger.hpp \
src/libvpd-2/lsvpd.hpp \
src/libvpd-2/debug.hpp \
src/libvpd-2/helper_functions.hpp \
src/libvpd-2/lsvpd_error_codes.hpp \
src/libvpd-2/vpddbenv.hpp
lib_h_files = src/libvpd-2/vpdretriever.h \
src/libvpd-2/system.h \
src/libvpd-2/component.h \
src/libvpd-2/dataitem.h \
src/libvpd-2/common.h \
src/libvpd-2/vpddbenv.h
EXTRA_DIST = bootstrap.sh 90-vpdupdate.rules run.vpdupdate
lib_LTLIBRARIES = libvpd_cxx.la libvpd.la
library_includedir=$(includedir)/libvpd-2/
library_include_HEADERS = $(lib_hpp_files) $(lib_h_files)
AM_CPPFLAGS = -I./src/ -Wall -fstack-protector-all -fPIE -Wstack-protector
ACLOCAL_AMFLAGS = -I m4
libvpd_la_SOURCES = src/vpdretriever_c.c \
src/common.c \
src/vpddbenv_c.c \
src/system_c.c \
src/component_c.c \
src/dataitem_c.c \
$(lib_h_files)
libvpd_cxx_la_SOURCES = src/vpdretriever.cpp \
src/helper_functions.cpp \
src/vpddbenv.cpp \
src/logger.cpp \
src/system.cpp \
src/component.cpp \
src/vpdexception.cpp \
src/dataitem.cpp \
src/Source.cpp \
$(lib_hpp_files)
CXX_VERSION=@GENERIC_CXX_LIBRARY_VERSION@
C_VERSION=@GENERIC_C_LIBRARY_VERSION@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libvpd-2.pc libvpd_cxx-2.pc
libvpd_cxx_la_LDFLAGS = -module -lstdc++ -version-number \
$(CXX_VERSION) -release @GENERIC_RELEASE@
libvpd_la_LDFLAGS = -module -version-number \
$(C_VERSION) -release @GENERIC_RELEASE@
AM_CXXFLAGS = -DDEST_DIR='"${exec_prefix}"'
AM_CFLAGS = -DDEST_DIR='"${exec_prefix}"'
LIBTOOL_DEPS = @LIBTOOL_DEPS@
libtool: $(LIBTOOL_DEPS)
$(SHELL) ./config.status --recheck
install-exec-hook:
mkdir -p $(DESTDIR)/${sysconfdir}/udev/rules.d/
mkdir -p $(DESTDIR)/${localstatedir}/lib/lsvpd/
install -D --mode=644 90-vpdupdate.rules \
${DESTDIR}/${sysconfdir}/udev/rules.d/90-vpdupdate.rules