Initial import from FreeBSD RELENG_4:
[dragonfly.git] / share / examples / sunrpc / dir / Makefile
1 #
2 # @(#)Makefile  2.1 88/08/02 4.0 RPCSRC
3 #
4 BIN = dir_svc rls
5 GEN = dir_clnt.c dir_svc.c dir_xdr.c dir.h
6 LIB = -lrpclib
7 RPCCOM = rpcgen
8
9 all: $(BIN)
10
11 $(GEN): dir.x
12         $(RPCCOM) dir.x
13
14 dir_svc: dir_proc.o dir_svc.o dir_xdr.o
15         $(CC) -o $@ dir_proc.o dir_svc.o dir_xdr.o $(LIB)
16
17 rls: rls.o dir_clnt.o dir_xdr.o
18         $(CC) -o $@ rls.o dir_clnt.o dir_xdr.o $(LIB)
19
20 rls.o: rls.c dir.h
21
22 dir_proc.o: dir_proc.c dir.h
23
24 clean cleanup:
25         rm -f $(GEN) *.o $(BIN)
26