]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/modules/smbfs/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / sys / modules / smbfs / Makefile
1 # $FreeBSD$
2
3 .PATH:  ${.CURDIR}/../../crypto/des \
4         ${.CURDIR}/../../crypto/des/arch/${MACHINE_CPUARCH} \
5         ${.CURDIR}/../../kern \
6         ${.CURDIR}/../../libkern \
7         ${.CURDIR}/../../netsmb \
8         ${.CURDIR}/../../fs/smbfs
9
10 KMOD=   smbfs
11
12 SRCS=   vnode_if.h \
13         opt_inet.h opt_ipx.h \
14         opt_netsmb.h \
15         iconv_converter_if.h \
16         md4c.c \
17         smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \
18         smb_usr.c smb_crypt.c smb_iod.c \
19         smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \
20         smbfs_subr.c smbfs_smb.c
21
22 # NETSMBCRYPTO
23 SRCS+=  des_ecb.c des_setkey.c
24 .if ${MACHINE_CPUARCH} == "i386"
25 SRCS+=  des_enc.S
26 .else
27 SRCS+=  des_enc.c
28 .endif
29
30 # Build with IPX support (1|0)
31 SMB_IPX?=       0
32
33 # Build with INET support (1|0)
34 SMB_INET?=      1
35
36 CFLAGS+= ${KDEBUG}
37
38 .if defined(VNPRINT)
39 CFLAGS+= -DVNPRINT
40 .endif
41
42 .if !defined(KERNBUILDDIR)
43 .if ${SMB_INET} > 0
44 opt_inet.h:
45         echo "#define INET 1" > ${.TARGET}
46 .endif
47
48 .if ${SMB_IPX} > 0
49 opt_ipx.h:
50         echo "#define IPX 1" > ${.TARGET}
51 .endif
52 .endif
53
54 .include <bsd.kmod.mk>