summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: f48c3565c908fbaae555c0a7684b5b6694ffbefb (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
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
SUBDIRS = po

ACLOCAL_AMFLAGS = -I m4

AM_CPPFLAGS = \
-I$(top_srcdir)/usr/src/lib/libstmf/common

lib_LTLIBRARIES = libstmf.la

if ENABLE_PROGS
sbin_PROGRAMS = stmfadm
man8_MANS = \
usr/src/man/man1m/stmfadm.1m
libexec_PROGRAMS = stmfsvc

svcmanifest_DATA = stmf.xml
svcmanifestdir = /lib/svc/manifest/system
stmf.xml: $(top_srcdir)/usr/src/cmd/stmfsvc/stmf.xml
	sed -e 's,/lib/svc/method/svc-stmf,$(libexecdir)/stmfsvc,g' < $< > $@

CLEANFILES = stmf.xml

stmfadm_SOURCES = \
usr/src/cmd/stmfadm/stmfadm.c \
usr/src/cmd/stmfadm/stmfadm.h \
usr/src/common/cmdparse/cmdparse.c \
usr/src/common/cmdparse/cmdparse.h
stmfadm_CPPFLAGS = \
	-I$(top_srcdir)/usr/src/cmd/stmfadm \
	-I$(top_srcdir)/usr/src/common/cmdparse \
	$(AM_CPPFLAGS)
stmfadm_LDADD = libstmf.la
	
stmfsvc_SOURCES = \
usr/src/cmd/stmfsvc/stmfsvc.c \
usr/src/common/cmdparse/cmdparse.c \
usr/src/common/cmdparse/cmdparse.h
stmfsvc_CPPFLAGS = -I$(top_srcdir)/usr/src/common/cmdparse $(AM_CPPFLAGS)
stmfsvc_LDADD = libstmf.la
endif

libstmf_la_SOURCES = \
usr/src/lib/libstmf/common/libstmf.h \
usr/src/lib/libstmf/common/libstmf_impl.h \
usr/src/lib/libstmf/common/stmf.c \
usr/src/lib/libstmf/common/store.c \
usr/src/lib/libstmf/common/store.h

libstmf_la_CFLAGS = $(PTHREAD_CFLAGS)
libstmf_la_LDFLAGS = $(PTHREAD_LIBS) -version-info 1:0:0
if USE_VERSION_SCRIPT
libstmf_la_LDFLAGS += $(VERSION_SCRIPT_FLAGS)$(top_srcdir)/libstmf.vers
endif

include_HEADERS = usr/src/lib/libstmf/common/libstmf.h

man3_MANS = \
usr/src/man/man3lib/libstmf.3lib \
usr/src/man/man3stmf/stmfAddToHostGroup.3stmf \
usr/src/man/man3stmf/stmfAddToTargetGroup.3stmf \
usr/src/man/man3stmf/stmfAddViewEntry.3stmf \
usr/src/man/man3stmf/stmfClearProviderData.3stmf \
usr/src/man/man3stmf/stmfCreateHostGroup.3stmf \
usr/src/man/man3stmf/stmfCreateLu.3stmf \
usr/src/man/man3stmf/stmfCreateLuResource.3stmf \
usr/src/man/man3stmf/stmfCreateTargetGroup.3stmf \
usr/src/man/man3stmf/stmfDeleteHostGroup.3stmf \
usr/src/man/man3stmf/stmfDeleteLu.3stmf \
usr/src/man/man3stmf/stmfDeleteTargetGroup.3stmf \
usr/src/man/man3stmf/stmfDevidFromIscsiName.3stmf \
usr/src/man/man3stmf/stmfDevidFromWwn.3stmf \
usr/src/man/man3stmf/stmfFreeLuResource.3stmf \
usr/src/man/man3stmf/stmfFreeMemory.3stmf \
usr/src/man/man3stmf/stmfGetHostGroupList.3stmf \
usr/src/man/man3stmf/stmfGetHostGroupMembers.3stmf \
usr/src/man/man3stmf/stmfGetLogicalUnitList.3stmf \
usr/src/man/man3stmf/stmfGetLogicalUnitProperties.3stmf \
usr/src/man/man3stmf/stmfGetLuResource.3stmf \
usr/src/man/man3stmf/stmfGetPersistMethod.3stmf \
usr/src/man/man3stmf/stmfGetProviderData.3stmf \
usr/src/man/man3stmf/stmfGetProviderDataProt.3stmf \
usr/src/man/man3stmf/stmfGetState.3stmf \
usr/src/man/man3stmf/stmfGetTargetGroupList.3stmf \
usr/src/man/man3stmf/stmfGetTargetGroupMembers.3stmf \
usr/src/man/man3stmf/stmfGetTargetList.3stmf \
usr/src/man/man3stmf/stmfGetTargetProperties.3stmf \
usr/src/man/man3stmf/stmfGetViewEntryList.3stmf \
usr/src/man/man3stmf/stmfModifyLu.3stmf \
usr/src/man/man3stmf/stmfOfflineLogicalUnit.3stmf \
usr/src/man/man3stmf/stmfOfflineTarget.3stmf \
usr/src/man/man3stmf/stmfOnlineLogicalUnit.3stmf \
usr/src/man/man3stmf/stmfOnlineTarget.3stmf \
usr/src/man/man3stmf/stmfRemoveFromHostGroup.3stmf \
usr/src/man/man3stmf/stmfRemoveFromTargetGroup.3stmf \
usr/src/man/man3stmf/stmfRemoveViewEntry.3stmf \
usr/src/man/man3stmf/stmfSetLuProp.3stmf \
usr/src/man/man3stmf/stmfSetPersistMethod.3stmf \
usr/src/man/man3stmf/stmfSetProviderData.3stmf \
usr/src/man/man3stmf/stmfSetProviderDataProt.3stmf

EXTRA_DIST = usr/src/cmd/stmfsvc/stmf.xml \
			libstmf.vers LICENSE README \
			 $(man3_MANS) $(man8_MANS)