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.
This commit is contained in:
agc 2006-02-08 18:57:49 +00:00
parent 33645f4ad2
commit 97f0c7d9de
3 changed files with 47 additions and 0 deletions

9
usr.sbin/iscsi/Makefile Normal file
View File

@ -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 <bsd.subdir.mk>

View File

@ -0,0 +1,18 @@
# $NetBSD: Makefile,v 1.1 2006/02/08 18:57:49 agc Exp $
.include <bsd.own.mk>
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 <bsd.prog.mk>

View File

@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.1 2006/02/08 18:57:49 agc Exp $
.sinclude "${.CURDIR}/../../Makefile.inc"
.include <bsd.own.mk>
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 <bsd.prog.mk>