2 # @(#)Makefile 2.1 97/10/23
3 # From: @(#)Makefile 2.1 88/07/29 4.0 RPCSRC
5 # Copyright (c) 1992-1997,2001 by Standard Performance Evaluation Corporation
7 # Standard Performance Evaluation Corporation (SPEC)
8 # 6585 Merchant Place, Suite 100
10 # This product contains benchmarks acquired from several sources who
11 # understand and agree with SPEC's goal of creating fair and objective
12 # benchmarks to measure computer performance.
14 # This copyright notice is placed here only to protect SPEC in the
15 # event the source is misused in any manner that is contrary to the
16 # spirit, the goals and the intent of SPEC.
18 # The source code is provided to the user or company under the license
19 # agreement for the SPEC Benchmark Suite for this product.
21 # Copyright (c) 1987 by Sun Microsystems, Inc.
27 SRCS = sfs_cudp.c sfs_ctcp.c rpc_prot.c rpc_dtablesize.c \
28 auth_none.c auth_unix.c authunix_prot.c \
29 clnt_generic.c clnt_perror.c clnt_simple.c clnt_tcp.c clnt_udp.c \
30 bindresvport.c get_myaddress.c getrpcent.c getrpcport.c \
31 pmap_clnt.c pmap_getmaps.c pmap_getport.c pmap_prot.c \
32 pmap_prot2.c pmap_rmt.c xdr.c xdr_array.c xdr_float.c xdr_mem.c \
33 xdr_rec.c xdr_reference.c xdr_stdio.c rpc_commondata.c rpc_callmsg.c \
34 svc.c svc_auth.c svc_auth_unix.c svc_raw.c svc_run.c svc_simple.c \
37 OBJS = sfs_cudp.o clnt_generic.o sfs_ctcp.o rpc_prot.o rpc_dtablesize.o \
38 auth_none.o auth_unix.o authunix_prot.o \
39 clnt_perror.o clnt_simple.o clnt_tcp.o clnt_udp.o \
40 bindresvport.o get_myaddress.o getrpcent.o getrpcport.o \
41 pmap_clnt.o pmap_getmaps.o pmap_getport.o pmap_prot.o \
42 pmap_prot2.o pmap_rmt.o xdr.o xdr_array.o xdr_float.o xdr_mem.o \
43 xdr_rec.o xdr_reference.o xdr_stdio.o rpc_commondata.o rpc_callmsg.o \
44 svc.o svc_auth.o svc_auth_unix.o svc_raw.o svc_run.o svc_simple.o \
47 HDRS = auth.h auth_unix.h clnt.h netdb.h pmap_clnt.h \
48 pmap_prot.h pmap_rmt.h rpc.h rpc_msg.h svc.h svc_auth.h types.h xdr.h
53 @echo "building librpclib.a"
54 @ar cru librpclib.a ${OBJS}
56 install: $(HDRS) librpclib.a
57 @echo "Creating RPC header directory"
58 -mkdir ${DESTDIR}/usr/include/rpc && \
59 chown bin ${DESTDIR}/usr/include/rpc && \
60 chmod 755 ${DESTDIR}/usr/include/rpc
61 @echo "Installing RPC header files"
62 -set -x;for i in $(HDRS) ; do \
63 (install -c -m 644 $$i ${DESTDIR}/usr/include/rpc) done
64 @echo "Installing RPC library"
65 install -c -m 644 librpclib.a ${DESTDIR}/usr/lib
66 ranlib ${DESTDIR}/usr/lib/librpclib.a
77 $(CC) -c $(INCDIR) $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG) \
78 $(SETPGRP_CALL) $(FSTAB) $(OSTYPE) $(OPT) \
79 $(RESVPORT_MOUNT) $*.c