Add two missing files from the TBBT import.
[bluesky.git] / TBBT / trace_play / rpc / Makefile
1 #
2 # @(#)Makefile     2.1     97/10/23
3 # From: @(#)Makefile    2.1 88/07/29 4.0 RPCSRC
4 #
5 #    Copyright (c) 1992-1997,2001 by Standard Performance Evaluation Corporation
6 #       All rights reserved.
7 #               Standard Performance Evaluation Corporation (SPEC)
8 #               6585 Merchant Place, Suite 100
9 #               Warrenton, VA 20187
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.
13 #
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.
17 #
18 #       The source code is provided to the user or company under the license
19 #       agreement for the SPEC Benchmark Suite for this product.
20 #
21 # Copyright (c) 1987 by Sun Microsystems, Inc.
22 #
23 DESTDIR=
24
25 INCDIR = -I..
26
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 \
35         svc_tcp.c svc_udp.c
36
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 \
45         svc_tcp.o svc_udp.o
46
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
49
50 all:    librpclib.a
51
52 librpclib.a: ${OBJS}
53         @echo "building librpclib.a"
54         @ar cru librpclib.a ${OBJS}
55
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
67
68 lint: $(SRCS) $(HDRS)
69         $(LINT.c) $(SRCS)
70
71 clobber: clean
72
73 clean:
74         rm -f *.o librpclib.a
75
76 .c.o:
77                 $(CC) -c $(INCDIR) $(CFLAGS) $(EXTRA_CFLAGS) $(DEBUG) \
78                         $(SETPGRP_CALL) $(FSTAB) $(OSTYPE) $(OPT) \
79                         $(RESVPORT_MOUNT) $*.c