HAMMER 60I/Many: Mirroring
[dragonfly.git] / sys / vfs / smbfs / Makefile
blob1d41c45f9ca691adccb02fe0081bedf486a793d3
1 # $FreeBSD: src/sys/modules/smbfs/Makefile,v 1.1.2.4 2002/03/26 10:12:29 ume Exp $
2 # $DragonFly: src/sys/vfs/smbfs/Makefile,v 1.7 2008/01/06 16:15:29 nth Exp $
4 .PATH: ${.CURDIR}/../../crypto/des \
5 ${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \
6 ${.CURDIR}/../../kern \
7 ${.CURDIR}/../../libkern \
8 ${.CURDIR}/../../netproto/smb
10 KMOD= smbfs
12 SRCS= opt_inet.h opt_ipx.h \
13 opt_netsmb.h opt_smbfs.h opt_vmpage.h \
14 iconv_converter_if.h \
15 md4c.c \
16 smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \
17 smb_usr.c smb_crypt.c smb_iod.c \
18 smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \
19 smbfs_subr.c smbfs_smb.c
21 NOMAN=true
23 .if exists(${.CURDIR}/../../crypto/des/des.h)
24 NETSMBCRYPTO=yes
25 .endif
27 .if defined(NETSMBCRYPTO)
28 SRCS+= des_ecb.c des_setkey.c
29 .if ${MACHINE_ARCH} == "i386"
30 SRCS+= des_enc.S
31 .else
32 SRCS+= des_enc.c
33 .endif
34 .endif
36 # Build with IPX support (1|0)
37 SMB_IPX?= 0
39 # Build with INET support (1|0)
40 SMB_INET?= 1
42 CFLAGS+= ${KDEBUG}
44 .if defined(VNPRINT)
45 CFLAGS+= -DVNPRINT
46 .endif
48 opt_inet.h:
49 touch ${.TARGET}
50 .if ${SMB_INET} > 0
51 echo "#define INET 1" > ${.TARGET}
52 .endif
54 opt_ipx.h:
55 touch ${.TARGET}
56 .if ${SMB_IPX} > 0
57 echo "#define IPX 1" > ${.TARGET}
58 .endif
60 opt_netsmb.h:
61 echo "#define NETSMB 1" > ${.TARGET}
62 .if defined(NETSMBCRYPTO)
63 echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
64 .endif
66 unload:
67 @-kldunload ${KMOD}
69 .include <bsd.kmod.mk>