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

ACLOCAL_AMFLAGS = -I m4

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

AM_LDFLAGS = $(LDFLAGS_AS_NEEDED) $(LDFLAGS_NO_UNDEFINED)

lib_LTLIBRARIES = libiscsit.la

if ENABLE_PROGS
sbin_PROGRAMS = itadm
man8_MANS = usr/src/man/man1m/itadm.1m
libexec_PROGRAMS = iscsitsvc

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

CLEANFILES = iscsi-target.xml

itadm_SOURCES = usr/src/cmd/itadm/itadm.c
itadm_LDADD = libiscsit.la
	
iscsitsvc_SOURCES = \
usr/src/cmd/iscsitsvc/iscsitsvc.c \
usr/src/common/cmdparse/cmdparse.c \
usr/src/common/cmdparse/cmdparse.h
iscsitsvc_CPPFLAGS = -I$(top_srcdir)/usr/src/common/cmdparse $(AM_CPPFLAGS)
endif

libiscsit_la_SOURCES = \
usr/src/common/iscsi/base64.c \
usr/src/common/iscsit/iscsit_common.c \
usr/src/lib/libiscsit/common/libiscsit.c \
usr/src/lib/libiscsit/common/libiscsit.h \
usr/src/uts/common/sys/iscsit/iscsit_common.h

libiscsit_la_CFLAGS = $(PTHREAD_CFLAGS)
libiscsit_la_LDFLAGS = $(PTHREAD_LIBS) -version-info 1:0:0 $(AM_LDFLAGS)
if USE_VERSION_SCRIPT
libiscsit_la_LDFLAGS += $(VERSION_SCRIPT_FLAGS)$(top_srcdir)/libiscsit.vers
endif

include_HEADERS = usr/src/lib/libiscsit/common/libiscsit.h
sysinclude_HEADERS = usr/src/uts/common/sys/iscsit/iscsit_common.h
sysincludedir = $(includedir)/sys/iscsit

man3_MANS = \
usr/src/man/man3iscsit/it_config_load.3iscsit \
usr/src/man/man3iscsit/it_ini_create.3iscsit \
usr/src/man/man3iscsit/it_portal_create.3iscsit \
usr/src/man/man3iscsit/it_tgt_create.3iscsit \
usr/src/man/man3iscsit/it_tpg_create.3iscsit \
usr/src/man/man3lib/libiscsit.3lib


EXTRA_DIST = usr/src/cmd/iscsitsvc/iscsi-target.xml \
			libiscsit.vers LICENSE README \
			 $(man3_MANS) $(man8_MANS)