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