6eda61b062612cd53cc5cb35ee584f0e3fa32933
[dragonfly.git] / sys / vfs / smbfs / Makefile
1 # $FreeBSD: src/sys/modules/smbfs/Makefile,v 1.1.2.4 2002/03/26 10:12:29 ume Exp $
2
3 .PATH:  ${.CURDIR}/../../crypto/des \
4         ${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \
5         ${.CURDIR}/../../kern \
6         ${.CURDIR}/../../libkern \
7         ${.CURDIR}/../../netproto/smb
8
9 KMOD=   smbfs
10
11 SRCS=   opt_inet.h \
12         opt_netsmb.h \
13         iconv_converter_if.h \
14         md4c.c \
15         smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \
16         smb_usr.c smb_crypt.c smb_iod.c \
17         smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \
18         smbfs_subr.c smbfs_smb.c
19
20 .if exists(${.CURDIR}/../../crypto/des/des.h)
21 NETSMBCRYPTO=yes
22 .endif
23
24 .if defined(NETSMBCRYPTO)
25 SRCS+=  des_ecb.c des_setkey.c
26 .if ${MACHINE_ARCH} == "i386"
27 SRCS+=  des_enc.S
28 .else
29 SRCS+=  des_enc.c
30 .endif
31 .endif
32
33 # Build with INET support (1|0)
34 SMB_INET?=      1
35
36 .if !defined(BUILDING_WITH_KERNEL)
37 opt_inet.h:
38         touch ${.TARGET}
39 .if ${SMB_INET} > 0
40         echo "#define INET 1" > ${.TARGET}
41 .endif
42
43 opt_netsmb.h:
44         echo "#define NETSMB    1"  > ${.TARGET}
45 .if defined(NETSMBCRYPTO)
46         echo "#define NETSMBCRYPTO 1" >> ${.TARGET}
47 .endif
48 .endif
49
50 .include <bsd.kmod.mk>