summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am63
1 files changed, 63 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..8b391e6
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,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)