1# @(#)Makefile 5.7 (Berkeley) 07/01/90 2 3LIB= rpc 4CFLAGS+=-I${.CURDIR} 5SRCS= auth_none.c auth_unix.c authunix_prot.c clnt_perror.c clnt_raw.c \ 6 clnt_simple.c clnt_tcp.c clnt_udp.c pmap_clnt.c pmap_getmaps.c \ 7 pmap_getport.c pmap_prot.c pmap_rmt.c rpc_prot.c svc.c svc_auth.c \ 8 svc_auth_unix.c svc_raw.c svc_simple.c svc_tcp.c svc_udp.c xdr.c \ 9 xdr_array.c xdr_float.c xdr_mem.c xdr_rec.c xdr_reference.c \ 10 xdr_stdio.c 11HDRS= auth.h auth_unix.h clnt.h pmap_clnt.h pmap_prot.h rpc.h rpc_msg.h \ 12 svc.h svc_auth.h types.h xdr.h 13MAN8= portmap.0 14.PATH: ${.CURDIR} ${.CURDIR}/doc 15CLEANFILES=portmap 16 17all: portmap 18 19portmap: portmap.c librpc.a 20 ranlib librpc.a 21 ${CC} ${CFLAGS} ${.CURDIR}/portmap.c librpc.a -lutil -o ${.TARGET} 22 23beforeinstall: hdrs 24 install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} portmap \ 25 ${DESTDIR}/usr/sbin/portmap 26 27hdrs: ${HDRS} 28 cd ${.CURDIR}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${HDRS} \ 29 ${DESTDIR}/usr/include/rpc 30 31.include <bsd.lib.mk> 32