1 # $NetBSD: Makefile,v 1.22 2002/09/11 18:19:42 christos Exp $ 2 3 .include <bsd.own.mk> 4 5 PROG= rpc.bootparamd 6 SRCS= bootparamd.c bootparam_prot_svc.c 7 MAN= bootparams.5 rpc.bootparamd.8 8 MLINKS= rpc.bootparamd.8 bootparamd.8 9 10 .if (${USE_YP} != "no") 11 CPPFLAGS+=-DYP 12 .endif 13 14 DPADD= ${LIBRPCSVC} ${LIBUTIL} 15 LDADD= -lrpcsvc -lutil 16 17 CLEANFILES += bootparam_prot_svc.c bootparam_prot.x bootparam_prot.h 18 19 .include <bsd.prog.mk> 20 21 bootparam_prot.x: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.x 22 rm -f ${.TARGET} 23 ln -s ${.ALLSRC} ${.TARGET} 24 25 bootparam_prot.h: ${DESTDIR}/usr/include/rpcsvc/bootparam_prot.h 26 rm -f ${.TARGET} 27 ln -s ${.ALLSRC} ${.TARGET} 28 29 bootparam_prot_svc.c: bootparam_prot.x bootparam_prot.h 30 ${RPCGEN} -C -L -m -o ${.TARGET} bootparam_prot.x 31 32 test: test.c 33 cc -o test ${.ALLSRC} -lrpcsvc 34