ncplib modules: bring up new ncp.ko and nwfs.ko
This commit is contained in:
parent
a44c86dc93
commit
b1f137667a
@ -8,7 +8,7 @@ SUBDIR= aha al ax ccd cd9660 coda dm fdesc fxp if_disc if_ppp if_sl if_tun \
|
||||
|
||||
# XXX some of these can move to the general case when de-i386'ed
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
SUBDIR+=bktr coff fpu gnufpu ibcs2 linux splash streams \
|
||||
SUBDIR+=bktr coff fpu gnufpu ibcs2 linux ncp nwfs splash streams \
|
||||
svr4 syscons vesa vinum
|
||||
.endif
|
||||
|
||||
|
49
sys/modules/ncp/Makefile
Normal file
49
sys/modules/ncp/Makefile
Normal file
@ -0,0 +1,49 @@
|
||||
# $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=
|
||||
CLEANFILES= opt_ncp.h opt_inet.h opt_ipx.h
|
||||
CFLAGS+= -DNCP
|
||||
|
||||
opt_ncp.h:
|
||||
touch ${.TARGET}
|
||||
|
||||
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
|
||||
|
||||
.include <bsd.kmod.mk>
|
38
sys/modules/nwfs/Makefile
Normal file
38
sys/modules/nwfs/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# $FreeBSD$
|
||||
|
||||
.PATH: ${.CURDIR}/../../nwfs
|
||||
|
||||
KMOD= nwfs
|
||||
KMODDEPS= ncp
|
||||
|
||||
SRCS= nwfs_node.c nwfs_ioctl.c nwfs_io.c nwfs_vfsops.c nwfs_vnops.c \
|
||||
opt_ncp.h opt_nwfs.h opt_vmpage.h
|
||||
|
||||
VFS_KLD=true
|
||||
|
||||
CLEANFILES= opt_ncp.h opt_nwfs.h opt_vmpage.h
|
||||
|
||||
NOMAN=true
|
||||
|
||||
CFLAGS+= -DNWFS
|
||||
|
||||
.if defined(VNPRINT)
|
||||
CFLAGS+= -DVNPRINT
|
||||
.endif
|
||||
|
||||
opt_ncp.h:
|
||||
echo "#define NCP 1" > ${.TARGET}
|
||||
|
||||
opt_nwfs.h opt_vmpage.h:
|
||||
touch ${.TARGET}
|
||||
|
||||
load: nwfs.ko
|
||||
kldload ./nwfs.ko
|
||||
|
||||
unload:
|
||||
@(if kldunload nwfs; then true; else true; fi)
|
||||
|
||||
deinstall:
|
||||
rm -f /modules/nwfs.ko
|
||||
|
||||
.include <bsd.kmod.mk>
|
Loading…
Reference in New Issue
Block a user