Merge from vendor branch LESS:
[dragonfly.git] / sys / netproto / ncp / Makefile
1 #       $FreeBSD: src/sys/modules/ncp/Makefile,v 1.3 1999/12/12 21:15:51 peter Exp $
2 #       $DragonFly: src/sys/netproto/ncp/Makefile,v 1.4 2005/09/11 10:52:56 swildner Exp $
3
4 .PATH:  ${.CURDIR}/../../netncp
5
6 KMOD=   ncp
7
8 # Build with IPX support (1|0)
9 NCP_IPX?=       1
10
11 # Build with INET support (1|0)
12 NCP_INET?=      1
13
14 SRCS=   ncp_conn.c ncp_sock.c ncp_ncp.c ncp_subr.c ncp_crypt.c ncp_mod.c \
15         ncp_rq.c ncp_login.c ncp_nls.c opt_inet.h opt_ipx.h opt_ncp.h
16
17 .if defined(NCPBURST)
18 SRCS+=  ncp_burst.c
19 CFLAGS+= -DNCPBURST
20 .endif
21
22 NOMAN=
23
24 opt_inet.h:
25         touch ${.TARGET}
26 .if ${NCP_INET} > 0
27         echo "#define INET 1" > ${.TARGET}
28 .endif
29
30 opt_ipx.h:
31         touch ${.TARGET}
32 .if ${NCP_IPX} > 0
33         echo "#define IPX 1" > ${.TARGET}
34 .endif
35
36 deinstall:
37         rm -f ${DESTDIR}/modules/ncp.ko
38
39 .include <bsd.kmod.mk>