-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.am
127 lines (99 loc) · 2.75 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# SPDX-License-Identifier: EPL-1.0
# Copyright IBM Corp. 2008, 2024
#
# Authors: Andreas Herrmann
# Sven Schuetz <[email protected]>
#
# File: Makefile.am
#
# Description:
# Input file for automake
#
#
docdir = $(datadir)/zfcp-hbaapi-$(VERSION)
# libtool versioning
LIB_CURRENT = 1
LIB_REVISION = 2
LIB_AGE = 1
AUTOMAKE_OPTIONS = subdir-objects
if BACKTRACE
BT_CFLAGS = -rdynamic
endif
if VENDORLIB
SYMFILE = $(srcdir)/vendor.sym
noinst_HEADERS = vlib.h vlib_aux.h vlib_sysfs.h vlib_sg.h vlib_sg_io.h\
vlib_events.h vlib_sfhelper.h hbaapi.h \
fc_tools/include/zfcp_util.h
else
SYMFILE = $(srcdir)/hbaapi.sym
include_HEADERS = hbaapi.h
noinst_HEADERS = vlib.h vlib_aux.h vlib_sysfs.h vlib_sg.h \
vlib_sfhelper.h fc_tools/include/zfcp_util.h
endif
if DEBUG
DEBUG_CFLAGS = -g -DDEBUG
endif
if DOCS
noinst_DATA=docs
dox/man/man3/SupportedHBAAPIs.3: docs
dox/man/man3/UnSupportedHBAAPIs.3: docs
dox/man/man3/hbaapi.h.3: docs
docs: dox
dox: doxygen.cfg
(cat $(srcdir)/doxygen.cfg ; echo "INPUT=$(srcdir)" ) | doxygen -
endif
AM_CFLAGS = $(EXTRA_CFLAGS) $(BT_CFLAGS) $(DEBUG_CFLAGS) \
-DVLIBPATH=\"$(exec_prefix)/lib\" -D_REENTRANT
lib_LTLIBRARIES = libzfcphbaapi.la
libzfcphbaapi_la_SOURCES = vlib.c vlib_callbacks.c vlib_aux.c vlib_sysfs.c \
vlib_sg.c vlib_sg_io.c vlib_events.c vlib_sfhelper.c
libzfcphbaapi_la_LIBADD = -l@LIBSGUTILS@ -lpthread
libzfcphbaapi_la_LDFLAGS = \
-version-info $(LIB_CURRENT):$(LIB_REVISION):$(LIB_AGE) \
-Wl,-init,_initvlib,-fini,_finivlib \
-export-symbols $(SYMFILE)
bin_PROGRAMS = zfcp_ping zfcp_show
zfcp_ping_SOURCES = fc_tools/zfcp_ping.c
zfcp_show_SOURCES = fc_tools/zfcp_show.c
if VENDORLIB
zfcp_ping_LDADD = -lHBAAPI
zfcp_show_LDADD = -lHBAAPI
else
zfcp_ping_LDADD = libzfcphbaapi.la
zfcp_show_LDADD = libzfcphbaapi.la
endif
if DOCS
man_MANS = dox/man/man3/SupportedHBAAPIs.3 \
dox/man/man3/UnSupportedHBAAPIs.3 dox/man/man3/hbaapi.h.3
endif
dist_man_MANS = zfcp_show.8 zfcp_ping.8 libzfcphbaapi.3
dist_doc_DATA = README AUTHORS COPYING
EXTRA_DIST = vendor.sym hbaapi.sym bootstrap doxygen.cfg LICENSE
bootstrap:
aclocal
autoheader
autoconf
libtoolize --automake
automake --add-missing
maintainer-clean-local:
rm -f Makefile.in config.* aclocal.m4 configure install-sh \
missing mkinstalldirs stamp-h* ltmain.sh depcomp
rm -rf autom4te*
if DOCS
rm -rf dox
endif
install-data-local:
if DOCS
test -d $(DESTDIR)$(docdir)/html || $(mkdir_p) $(DESTDIR)$(docdir)/html
test -d $(DESTDIR)$(docdir)/latex || $(mkdir_p) $(DESTDIR)$(docdir)/latex
$(INSTALL) -m 644 dox/html/* $(DESTDIR)$(docdir)/html
$(INSTALL) -m 644 dox/latex/* $(DESTDIR)$(docdir)/latex
endif
uninstall-local:
if DOCS
rm -rf $(DESTDIR)$(docdir)/html
rm -rf $(DESTDIR)$(docdir)/latex
rm -rf $(DESTDIR)$(docdir)/man
endif
clean-local:
rm -rf dox