Makefile revision 151350
175479Sbp# $FreeBSD: head/sys/modules/smbfs/Makefile 151350 2005-10-14 23:30:17Z yar $ 275479Sbp 375479Sbp.PATH: ${.CURDIR}/../../crypto/des \ 492581Smux ${.CURDIR}/../../crypto/des/arch/${MACHINE_ARCH} \ 575479Sbp ${.CURDIR}/../../kern \ 675479Sbp ${.CURDIR}/../../libkern \ 775479Sbp ${.CURDIR}/../../netsmb \ 875479Sbp ${.CURDIR}/../../fs/smbfs 975479Sbp 1075479SbpKMOD= smbfs 1175479Sbp 1275479SbpSRCS= vnode_if.h \ 1375479Sbp opt_inet.h opt_ipx.h \ 14122894Simp opt_netsmb.h opt_vmpage.h \ 1575479Sbp iconv_converter_if.h \ 1675479Sbp md4c.c \ 1775479Sbp smb_conn.c smb_dev.c smb_trantcp.c smb_smb.c smb_subr.c smb_rq.c \ 1875479Sbp smb_usr.c smb_crypt.c smb_iod.c \ 1975479Sbp smbfs_vfsops.c smbfs_node.c smbfs_io.c smbfs_vnops.c \ 2075479Sbp smbfs_subr.c smbfs_smb.c 2175479Sbp 22136910SruNETSMBCRYPTO= 2375479Sbp 2475479Sbp.if defined(NETSMBCRYPTO) 2575479SbpSRCS+= des_ecb.c des_setkey.c 2692581Smux.if ${MACHINE_ARCH} == "i386" 2792581SmuxSRCS+= des_enc.S 2892581Smux.else 2992581SmuxSRCS+= des_enc.c 3075479Sbp.endif 3192581Smux.endif 3275479Sbp 3375479Sbp# Build with IPX support (1|0) 3475479SbpSMB_IPX?= 0 3575479Sbp 3675479Sbp# Build with INET support (1|0) 3775479SbpSMB_INET?= 1 3875479Sbp 3975479SbpCFLAGS+= ${KDEBUG} 4075479Sbp 4175479Sbp.if defined(VNPRINT) 4275479SbpCFLAGS+= -DVNPRINT 4375479Sbp.endif 4475479Sbp 45151350Syar.if !defined(KERNBUILDDIR) 46134748Sru.if ${SMB_INET} > 0 4775479Sbpopt_inet.h: 4875479Sbp echo "#define INET 1" > ${.TARGET} 4975479Sbp.endif 5075479Sbp 51134748Sru.if ${SMB_IPX} > 0 5275479Sbpopt_ipx.h: 5375479Sbp echo "#define IPX 1" > ${.TARGET} 5475479Sbp.endif 5575479Sbp 56151350Syar# XXX netsmb should be a separate module 57151350Syar.if defined(NETSMBCRYPTO) 5875479Sbpopt_netsmb.h: 59151350Syar echo "#define NETSMBCRYPTO 1" > ${.TARGET} 6075479Sbp.endif 61151350Syar.endif 6275479Sbp 6375479Sbp.include <bsd.kmod.mk> 64