1 1.17.2.1 perseant # $NetBSD: Makefile,v 1.17.2.1 2024/08/12 22:38:30 perseant Exp $ 2 1.1 pooka # 3 1.1 pooka 4 1.2 pooka .include <bsd.own.mk> 5 1.2 pooka 6 1.1 pooka LIB= vfstest 7 1.3 pooka SRCS= fstest_ext2fs.c fstest_ffs.c fstest_lfs.c fstest_msdosfs.c \ 8 1.6 pooka fstest_nfs.c fstest_puffs.c fstest_rumpfs.c fstest_sysvbfs.c \ 9 1.11 reinoud fstest_tmpfs.c fstest_udf.c fstest_v7fs.c 10 1.2 pooka 11 1.9 pooka .if (${MKZFS} != "no") 12 1.8 pooka SRCS+= fstest_zfs.c 13 1.8 pooka CPPFLAGS+=-DWANT_ZFS_TESTS 14 1.8 pooka .endif 15 1.17.2.1 perseant .if (${MKEXFATFS} != "no") 16 1.17.2.1 perseant SRCS+= fstest_exfatfs.c 17 1.17.2.1 perseant CPPFLAGS+=-DWANT_EXFATFS_TESTS 18 1.17.2.1 perseant .endif 19 1.8 pooka 20 1.2 pooka WARNS= 3 21 1.2 pooka 22 1.10 christos # NFSRPC libc rpc using rump syscalls 23 1.10 christos SRCS+= bindresvport.c clnt_bcast.c clnt_dg.c clnt_generic.c clnt_vc.c \ 24 1.10 christos rpc_generic.c rpc_soc.c rpcb_clnt.c \ 25 1.10 christos svc.c svc_dg.c svc_fdset.c svc_generic.c svc_run.c svc_vc.c 26 1.10 christos 27 1.10 christos LIBC=${NETBSDSRCDIR}/lib/libc 28 1.10 christos .PATH: ${NETBSDSRCDIR}/lib/libc/rpc 29 1.10 christos CPPFLAGS+= -DPORTMAP -D_REENTRANT -DRUMP_SYS_NETWORKING 30 1.10 christos CPPFLAGS+= -DDEBUG -DLIBWRAP -DRUMP_RPC 31 1.10 christos CPPFLAGS+= -I${LIBC}/include -I${LIBC}/rpc 32 1.10 christos 33 1.1 pooka 34 1.14 christos LIBISPRIVATE= yes 35 1.1 pooka 36 1.2 pooka # NFS client stuff 37 1.2 pooka .PATH: ${NETBSDSRCDIR}/sbin/mount_nfs ${NETBSDSRCDIR}/sbin/mount 38 1.2 pooka SRCS+= getnfsargs.c pathadj.c fattr.c mount_nfs.c 39 1.2 pooka 40 1.2 pooka CPPFLAGS+= -I${NETBSDSRCDIR}/sbin/mount_nfs -I${NETBSDSRCDIR}/sbin/mount 41 1.2 pooka CPPFLAGS+= -DMOUNT_NOMAIN -DMOUNTNFS_RETRYRPC=1 42 1.2 pooka 43 1.4 pooka .include "../../../libexec/lfs_cleanerd/Makefile.inc" 44 1.4 pooka CPPFLAGS+= -DUSE_RUMP -DLFS_CLEANER_AS_LIB 45 1.4 pooka 46 1.12 joerg CWARNFLAGS.clang+= -Wno-error=absolute-value 47 1.17 lukem COPTS.fstest_nfs.c+= ${CC_WNO_FORMAT_TRUNCATION} 48 1.17 lukem COPTS.clnt_bcast.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 49 1.17 lukem COPTS.clnt_generic.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 50 1.17 lukem COPTS.clnt_vc.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 51 1.17 lukem COPTS.rpcb_clnt.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 52 1.17 lukem COPTS.rpc_generic.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 53 1.12 joerg 54 1.1 pooka .include <bsd.lib.mk> 55