head	1.7;
access;
symbols
	netbsd-11-0-RC6:1.6
	netbsd-11-0-RC5:1.6
	netbsd-11-0-RC4:1.6
	netbsd-11-0-RC3:1.6
	netbsd-11-0-RC2:1.6
	netbsd-11-0-RC1:1.6
	perseant-exfatfs-base-20250801:1.6
	netbsd-11:1.6.0.30
	netbsd-11-base:1.6
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.6
	perseant-exfatfs:1.6.0.28
	perseant-exfatfs-base:1.6
	netbsd-8-3-RELEASE:1.6
	netbsd-9-4-RELEASE:1.6
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.26
	netbsd-10-base:1.6
	netbsd-9-3-RELEASE:1.6
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.24
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.6
	cjep_staticlib_x:1.6.0.22
	cjep_staticlib_x-base:1.6
	netbsd-9-1-RELEASE:1.6
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	is-mlppp:1.6.0.20
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-8-2-RELEASE:1.6
	netbsd-9-0-RELEASE:1.6
	netbsd-9-0-RC2:1.6
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.18
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	netbsd-8-1-RELEASE:1.6
	netbsd-8-1-RC1:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	netbsd-7-2-RELEASE:1.5
	pgoyette-compat-0728:1.6
	netbsd-8-0-RELEASE:1.6
	phil-wifi:1.6.0.16
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	netbsd-8-0-RC1:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	netbsd-7-1-2-RELEASE:1.5
	pgoyette-compat:1.6.0.14
	pgoyette-compat-base:1.6
	netbsd-7-1-1-RELEASE:1.5
	matt-nb8-mediatek:1.6.0.12
	matt-nb8-mediatek-base:1.6
	perseant-stdc-iso10646:1.6.0.10
	perseant-stdc-iso10646-base:1.6
	netbsd-8:1.6.0.8
	netbsd-8-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.6
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	pgoyette-localcount-20170320:1.6
	netbsd-7-1:1.5.0.28
	netbsd-7-1-RELEASE:1.5
	netbsd-7-1-RC2:1.5
	netbsd-7-nhusb-base-20170116:1.5
	bouyer-socketcan:1.6.0.4
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	netbsd-7-1-RC1:1.5
	pgoyette-localcount-20161104:1.6
	netbsd-7-0-2-RELEASE:1.5
	localcount-20160914:1.6
	netbsd-7-nhusb:1.5.0.26
	netbsd-7-nhusb-base:1.5
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.2
	pgoyette-localcount-base:1.6
	netbsd-7-0-1-RELEASE:1.5
	netbsd-7-0:1.5.0.24
	netbsd-7-0-RELEASE:1.5
	netbsd-7-0-RC3:1.5
	netbsd-7-0-RC2:1.5
	netbsd-7-0-RC1:1.5
	netbsd-6-0-6-RELEASE:1.5
	netbsd-6-1-5-RELEASE:1.5
	netbsd-7:1.5.0.22
	netbsd-7-base:1.5
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.5
	netbsd-6-1-4-RELEASE:1.5
	netbsd-6-0-5-RELEASE:1.5
	tls-earlyentropy:1.5.0.20
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	netbsd-6-1-3-RELEASE:1.5
	netbsd-6-0-4-RELEASE:1.5
	netbsd-6-1-2-RELEASE:1.5
	netbsd-6-0-3-RELEASE:1.5
	netbsd-6-1-1-RELEASE:1.5
	riastradh-drm2-base2:1.5
	riastradh-drm2-base1:1.5
	riastradh-drm2:1.5.0.12
	riastradh-drm2-base:1.5
	netbsd-6-1:1.5.0.18
	netbsd-6-0-2-RELEASE:1.5
	netbsd-6-1-RELEASE:1.5
	khorben-n900:1.5.0.16
	netbsd-6-1-RC4:1.5
	netbsd-6-1-RC3:1.5
	agc-symver:1.5.0.14
	agc-symver-base:1.5
	netbsd-6-1-RC2:1.5
	netbsd-6-1-RC1:1.5
	yamt-pagecache-base8:1.5
	netbsd-6-0-1-RELEASE:1.5
	yamt-pagecache-base7:1.5
	matt-nb6-plus-nbase:1.5
	yamt-pagecache-base6:1.5
	netbsd-6-0:1.5.0.10
	netbsd-6-0-RELEASE:1.5
	netbsd-6-0-RC2:1.5
	tls-maxphys:1.5.0.8
	tls-maxphys-base:1.5
	matt-nb6-plus:1.5.0.6
	matt-nb6-plus-base:1.5
	netbsd-6-0-RC1:1.5
	yamt-pagecache-base5:1.5
	yamt-pagecache-base4:1.5
	netbsd-6:1.5.0.4
	netbsd-6-base:1.5
	yamt-pagecache-base3:1.5
	yamt-pagecache-base2:1.5
	yamt-pagecache:1.5.0.2
	yamt-pagecache-base:1.5
	cherry-xenmp:1.3.0.4
	cherry-xenmp-base:1.3
	rel-20110222:1.3
	bouyer-quota2-nbase:1.3
	bouyer-quota2:1.3.0.2
	bouyer-quota2-base:1.3
	matt-mips64-premerge-20101231:1.3
	matt-premerge-20091211:1.2;
locks; strict;
comment	@# @;


1.7
date	2025.09.18.03.35.59;	author mrg;	state Exp;
branches;
next	1.6;
commitid	RQc1sc69acbZ59bG;

1.6
date	2016.01.23.21.22.45;	author christos;	state Exp;
branches;
next	1.5;
commitid	0voYFcZKKnOpl6Sy;

1.5
date	2011.08.17.09.24.23;	author christos;	state Exp;
branches;
next	1.4;

1.4
date	2011.06.22.02.49.42;	author mrg;	state Exp;
branches;
next	1.3;

1.3
date	2010.09.23.09.40.23;	author he;	state Exp;
branches;
next	1.2;

1.2
date	2009.06.25.13.47.11;	author agc;	state Exp;
branches;
next	1.1;

1.1
date	2009.06.21.21.11.16;	author agc;	state Exp;
branches;
next	;


desc
@@


1.7
log
@introduce a couple of new turn-off-gcc-warning variables and use them.

GCC 14 has a new annoying calloc() checker that we turn off in a bunch
of places, and there are a few more dangling-pointer issuse that come up,
but seem bogus.
@
text
@# $NetBSD: Makefile,v 1.6 2016/01/23 21:22:45 christos Exp $

.sinclude "${.CURDIR}/../Makefile.inc"

.include <bsd.own.mk>

USE_FORT?=yes	# network client/local server

ISCSIDIST=	${.CURDIR}/../dist
.PATH:	${ISCSIDIST}/src/initiator

PROG=iscsi-initiator
SRCS=iscsi-initiator.c virtdir.c libkmod.c
LDADD+= -lrefuse -liscsi -lpuffs
DPADD+= ${LIBREFUSE} ${LIBISCSI} ${LIBPUFFS}
CPPFLAGS+= -I${ISCSIDIST}/include -D_KERNTYPES
CPPFLAGS+= -pthread
LDFLAGS+= -pthread
MAN=iscsi-initiator.8
WARNS=4

.ifdef MODULAR_KERNEL
CPPFLAGS+= -DUSE_LIBKMOD
LDADD+= -lprop
DPADD+= ${LIBPROP}
.endif

COPTS.iscsi-initiator.c+=	${CC_WNO_CALLOC_TRANSPOSED_ARGS}
COPTS.virtdir.c+=		${CC_WNO_CALLOC_TRANSPOSED_ARGS}

.include <bsd.prog.mk>
@


1.6
log
@Define _KERNTYPES for things that need it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2011/08/17 09:24:23 christos Exp $
d28 3
@


1.5
log
@fix strict aliasing issues.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2011/06/22 02:49:42 mrg Exp $
d16 1
a16 1
CPPFLAGS+= -I${ISCSIDIST}/include
@


1.4
log
@apply some -Wno-error and/or -fno-strict-aliasing.


all of this should be looked at closer, but some of them are not
very trivial.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2010/09/23 09:40:23 he Exp $
a28 5

# XXX
.if ${HAVE_GCC} == 45
COPTS.iscsi-initiator.c+=	-fno-strict-aliasing
.endif
@


1.3
log
@Don't depend on shared library dependencies; we also need -lpuffs here.
This allows us to link statically.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2009/06/25 13:47:11 agc Exp $
d29 5
@


1.2
log
@Update the external tree for new structure for reachover builds.

Add some iscsi-specific changes too:

Portable iSCSI - 20080207 to 20090622

+ Use modern autoconf
+ Add portable iSCSI initiator sources
+ New directory structure
+ Put OSD sources in their own directory
+ iscsi.h -> iscsiprotocol.h
+ add an iscsi.h for the new interface, and install it
+ globals_t -> iscsi_target_t
+ made an iscsi-target.h with all public functions in it
+ reformatted Intel license to fit in 80 columns
+ get rid of some abstractions which aren't needed any more
+ move over to a set of (name, value) tuples in target and initiator
+ add patch to set the target's StatSN at login time, from Gleb Kozyrev via
  Mark Foster
+ add manual page for libiscsi(3)
+ update libiscsi shared object major version to 2 to reflect the changes
  in API and ABI

More changes to come
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2009/06/20 17:58:21 agc Exp $
d14 2
a15 2
LDADD+= -lrefuse -liscsi
DPADD+= ${LIBREFUSE} ${LIBISCSI}
@


1.1
log
@Add the reachover framework for the iSCSI target and initiator, in
preparation for moving it from dist/iscsi to the external framework
external/bsd/iscsi.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2009/06/20 04:12:55 agc Exp $
d3 1
a3 1
.sinclude "${.CURDIR}/../../Makefile.inc"
d5 6
a10 1
USE_FORT?=yes	# network client
d13 1
a13 1
SRCS=iscsi-initiator.c virtdir.c initiator.c libkmod.c
d16 3
a18 1
CPPFLAGS+= -g -I${ISCSI_DIST}/include
a21 2
ISCSI_DIST=${.CURDIR}/../dist

a27 2
.PATH: ${ISCSI_DIST}/src

@

