1999-10-02 06:32:36 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../netncp
|
|
|
|
|
|
|
|
KMOD= ncp
|
|
|
|
|
|
|
|
# Build with IPX support (1|0)
|
|
|
|
NCP_IPX?= 1
|
|
|
|
|
|
|
|
# Build with INET support (1|0)
|
|
|
|
NCP_INET?= 1
|
|
|
|
|
|
|
|
SRCS= ncp_conn.c ncp_sock.c ncp_ncp.c ncp_subr.c ncp_crypt.c ncp_mod.c \
|
|
|
|
ncp_rq.c ncp_login.c ncp_nls.c opt_inet.h opt_ipx.h opt_ncp.h
|
|
|
|
|
|
|
|
.if defined(NCPBURST)
|
|
|
|
SRCS+= ncp_burst.c
|
|
|
|
CFLAGS+= -DNCPBURST
|
|
|
|
.endif
|
|
|
|
|
|
|
|
NOMAN=
|
|
|
|
|
|
|
|
opt_inet.h:
|
|
|
|
touch ${.TARGET}
|
|
|
|
.if ${NCP_INET} > 0
|
|
|
|
echo "#define INET 1" > ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
opt_ipx.h:
|
|
|
|
touch ${.TARGET}
|
|
|
|
.if ${NCP_IPX} > 0
|
|
|
|
echo "#define IPX 1" > ${.TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
load: ${KMOD}.ko
|
|
|
|
kldload ./${KMOD}.ko
|
|
|
|
|
|
|
|
unload:
|
|
|
|
@(if kldunload ${KMOD}; then true; else true; fi)
|
|
|
|
|
|
|
|
deinstall:
|
|
|
|
rm -f /modules/ncp.ko
|
|
|
|
|
2000-05-27 01:14:33 +00:00
|
|
|
.include <bsd.kmod.mk>
|