]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/examples/sunrpc/sort/Makefile
MFV r348555: 9690 metaslab of vdev with no space maps was flushed during removal
[FreeBSD/FreeBSD.git] / share / examples / sunrpc / sort / Makefile
1 #
2 # @(#)Makefile  2.1 88/08/11 4.0 RPCSRC
3 #
4 # $FreeBSD$
5 #
6 PACKAGE=examples
7 FILESDIR=${SHAREDIR}/examples/sunrpc/sort
8 BIN =  rsort sort_svc
9 GEN = sort_clnt.c sort_svc.c sort_xdr.c sort.h
10 LIB = -lrpclib
11 RPCCOM = rpcgen
12
13 all: $(BIN)
14
15 rsort: rsort.o sort_clnt.o sort_xdr.o
16         $(CC) $(LDFLAGS) -o $@ rsort.o sort_clnt.o sort_xdr.o $(LIB)
17
18 rsort.o: rsort.c sort.h
19
20 sort_clnt.c:
21         $(RPCCOM) -l sort.x >$@
22
23 sort_svc: sort_proc.o sort_svc.o sort_xdr.o
24         $(CC) $(LDFLAGS) -o $@ sort_proc.o sort_svc.o sort_xdr.o $(LIB)
25
26 sort_proc.o: sort_proc.c sort.h
27
28 sort_svc.c:
29         $(RPCCOM) -s udp sort.x >$@
30
31 sort_xdr.c:
32         $(RPCCOM) -c sort.x >$@
33
34 sort.h:
35         $(RPCCOM) -h sort.x >$@
36
37 clean cleanup:
38         rm -f $(GEN) *.o $(BIN)
39