1# $NetBSD: Makefile,v 1.27 2023/06/03 09:09:22 lukem Exp $ 2 3.include <bsd.own.mk> 4 5USE_FORT?= yes # network server 6 7PROG= rpc.bootparamd 8SRCS= bootparamd.c bootparam_prot_svc.c 9MAN= bootparams.5 rpc.bootparamd.8 10MLINKS= rpc.bootparamd.8 bootparamd.8 11 12.if (${USE_YP} != "no") 13CPPFLAGS+=-DYP 14.endif 15 16DPADD= ${LIBRPCSVC} ${LIBUTIL} 17LDADD= -lrpcsvc -lutil 18 19RPC_SVCFILES= bootparam_prot_svc.c 20RPC_SVCFLAGS= -L -m 21RPC_XDIR= ${DESTDIR}/usr/include/rpcsvc/ 22 23CPPFLAGS+= -I${RPC_XDIR} 24 25COPTS.bootparam_prot_svc.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 26 27.include <bsd.rpc.mk> 28.include <bsd.prog.mk> 29 30test: test.c 31 cc -o test ${.ALLSRC} -lrpcsvc 32