Merge branch 'vendor/OPENSSH'
[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 opt_inet.h:
23         touch ${.TARGET}
24 .if ${NCP_INET} > 0
25         echo "#define INET 1" > ${.TARGET}
26 .endif
27
28 opt_ipx.h:
29         touch ${.TARGET}
30 .if ${NCP_IPX} > 0
31         echo "#define IPX 1" > ${.TARGET}
32 .endif
33
34 deinstall:
35         rm -f ${DESTDIR}/modules/ncp.ko
36
37 .include <bsd.kmod.mk>