From 97f0c7d9dee84a9eb0923d617f74b95fd77bea39 Mon Sep 17 00:00:00 2001 From: agc Date: Wed, 8 Feb 2006 18:57:49 +0000 Subject: [PATCH] Reachover files for the iSCSI target. The test harness files are included here, but are not built or installed. It is not envisaged that a typical NetBSD user will have much use for an iSCSI test harness. --- usr.sbin/iscsi/Makefile | 9 +++++++++ usr.sbin/iscsi/harness/Makefile | 18 ++++++++++++++++++ usr.sbin/iscsi/target/Makefile | 20 ++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 usr.sbin/iscsi/Makefile create mode 100644 usr.sbin/iscsi/harness/Makefile create mode 100644 usr.sbin/iscsi/target/Makefile diff --git a/usr.sbin/iscsi/Makefile b/usr.sbin/iscsi/Makefile new file mode 100644 index 000000000000..a000d96a0824 --- /dev/null +++ b/usr.sbin/iscsi/Makefile @@ -0,0 +1,9 @@ +# $NetBSD: Makefile,v 1.1 2006/02/08 18:57:49 agc Exp $ + +.if exists(${.CURDIR}/../../Makefile.inc) +.include "${.CURDIR}/../../Makefile.inc" +.endif + +SUBDIR= target # harness works, but does not need to be installed + +.include diff --git a/usr.sbin/iscsi/harness/Makefile b/usr.sbin/iscsi/harness/Makefile new file mode 100644 index 000000000000..ed247e5fb3e0 --- /dev/null +++ b/usr.sbin/iscsi/harness/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1 2006/02/08 18:57:49 agc Exp $ + +.include + +DIST= ${.CURDIR}/../../../dist/iscsi +.PATH: ${DIST}/src + +PROG= iscsi-harness +SRCS= tests.c osd_ops.c initiator.c iscsi-harness.c +CPPFLAGS+= -DCONFIG_ISCSI_DEBUG -D_FILE_OFFSET_BITS=64 +CPPFLAGS+= -I${DIST}/include -I${.CURDIR}/../include +CPPFLAGS+= -pthread +LDADD+= -L${LIBDIR} -Wl,-R${LIBDIR} -liscsi +LDFLAGS+= -pthread +MAN= iscsi-harness.8 +WARNS=4 + +.include diff --git a/usr.sbin/iscsi/target/Makefile b/usr.sbin/iscsi/target/Makefile new file mode 100644 index 000000000000..c917293d08d4 --- /dev/null +++ b/usr.sbin/iscsi/target/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2006/02/08 18:57:49 agc Exp $ + +.sinclude "${.CURDIR}/../../Makefile.inc" + +.include + +DIST= ${.CURDIR}/../../../dist/iscsi +.PATH: ${DIST}/src + +PROG= iscsi-target +SRCS= iscsi-target.c +CPPFLAGS+= -DCONFIG_ISCSI_DEBUG -D_FILE_OFFSET_BITS=64 +CPPFLAGS+= -I${DIST}/include +CPPFLAGS+= -pthread +LDADD+= -liscsi +LDFLAGS+= -pthread +MAN=iscsi-target.8 targets.5 +WARNS=4 + +.include