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