1944fcc15SGarrett Wollman#
2944fcc15SGarrett Wollman# @(#)Makefile	2.1 88/08/11 4.0 RPCSRC
3944fcc15SGarrett Wollman#
4*a5921bc3SGlen Barber#
5*a5921bc3SGlen BarberPACKAGE=examples
6*a5921bc3SGlen BarberFILESDIR=${SHAREDIR}/examples/sunrpc/msg
7944fcc15SGarrett WollmanBIN = printmsg msg_svc rprintmsg
8944fcc15SGarrett WollmanGEN = msg_clnt.c msg_svc.c msg.h
9944fcc15SGarrett WollmanLIB = -lrpclib
10944fcc15SGarrett WollmanRPCCOM = rpcgen
11944fcc15SGarrett Wollman
12944fcc15SGarrett Wollmanall: $(BIN)
13944fcc15SGarrett Wollman
14944fcc15SGarrett Wollman#
15944fcc15SGarrett Wollman# This is the non-networked version of the program
16944fcc15SGarrett Wollman#
17944fcc15SGarrett Wollmanprintmsg: printmsg.o
18944fcc15SGarrett Wollman	$(CC) -o $@ printmsg.o
19944fcc15SGarrett Wollman
20944fcc15SGarrett Wollman#
21944fcc15SGarrett Wollman# note: no xdr routines are generated here, due this service's
22944fcc15SGarrett Wollman#       use of basic data types.
23944fcc15SGarrett Wollman#
24944fcc15SGarrett Wollman$(GEN): msg.x
25944fcc15SGarrett Wollman	$(RPCCOM) msg.x
26944fcc15SGarrett Wollman
27944fcc15SGarrett Wollmanmsg_svc: msg_proc.o msg_svc.o
28944fcc15SGarrett Wollman	$(CC) -o $@ msg_proc.o msg_svc.o $(LIB)
29944fcc15SGarrett Wollman
30944fcc15SGarrett Wollmanrprintmsg: rprintmsg.o msg_clnt.o
31944fcc15SGarrett Wollman	$(CC) -o $@ rprintmsg.o msg_clnt.o $(LIB)
32944fcc15SGarrett Wollman
33944fcc15SGarrett Wollmanrprintmsg.o: rprintmsg.c msg.h
34944fcc15SGarrett Wollman
35944fcc15SGarrett Wollmanmsg_proc.o: msg_proc.c msg.h
36944fcc15SGarrett Wollman
37944fcc15SGarrett Wollmanclean cleanup:
38944fcc15SGarrett Wollman	rm -f $(GEN) *.o $(BIN)
39944fcc15SGarrett Wollman
40