kernel/nwfs: The NCP check only applies if it is not the module build.
[dragonfly.git] / sys / netproto / ncp / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/sys/modules/ncp/Makefile,v 1.3 1999/12/12 21:15:51 peter Exp $
984263bc
MD
2
3KMOD= ncp
4
5# Build with IPX support (1|0)
6NCP_IPX?= 1
7
8# Build with INET support (1|0)
9NCP_INET?= 1
10
11SRCS= ncp_conn.c ncp_sock.c ncp_ncp.c ncp_subr.c ncp_crypt.c ncp_mod.c \
12 ncp_rq.c ncp_login.c ncp_nls.c opt_inet.h opt_ipx.h opt_ncp.h
13
14.if defined(NCPBURST)
15SRCS+= ncp_burst.c
16CFLAGS+= -DNCPBURST
17.endif
18
984263bc
MD
19opt_inet.h:
20 touch ${.TARGET}
21.if ${NCP_INET} > 0
22 echo "#define INET 1" > ${.TARGET}
23.endif
24
25opt_ipx.h:
26 touch ${.TARGET}
27.if ${NCP_IPX} > 0
28 echo "#define IPX 1" > ${.TARGET}
29.endif
30
984263bc 31deinstall:
1b29ad66 32 rm -f ${DESTDIR}/modules/ncp.ko
984263bc
MD
33
34.include <bsd.kmod.mk>