Makefile revision 134748
175479Sbp# $FreeBSD: head/sys/modules/smbfs/Makefile 134748 2004-09-04 06:37:58Z ru $ 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 2275479SbpNETSMBCRYPTO=yes 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 45134748Sru.if ${SMB_INET} > 0 4675479Sbpopt_inet.h: 4775479Sbp echo "#define INET 1" > ${.TARGET} 4875479Sbp.endif 4975479Sbp 50134748Sru.if ${SMB_IPX} > 0 5175479Sbpopt_ipx.h: 5275479Sbp echo "#define IPX 1" > ${.TARGET} 5375479Sbp.endif 5475479Sbp 5575479Sbpopt_netsmb.h: 5675479Sbp echo "#define NETSMB 1" > ${.TARGET} 5775479Sbp.if defined(NETSMBCRYPTO) 5875479Sbp echo "#define NETSMBCRYPTO 1" >> ${.TARGET} 5975479Sbp.endif 6075479Sbp 6175479Sbp.include <bsd.kmod.mk> 62