# Makefile for Math

BIN = mserver rqmath
GEN = math_clnt.c math_svc.c math.h math_xdr.c
RPCCOM = rpcgen

all: $(BIN)

$(GEN):	math.x
	$(RPCCOM) math.x

mserver: smath.o math_svc.o math_xdr.o
	gcc -o mserver math_svc.o smath.o math_xdr.o -lnsl

rqmath: rmath.o math_clnt.o math_xdr.o
	gcc -o mclnt rmath.o math_clnt.o math_xdr.o -lnsl

smath.o: smath.c math.h

rmath.o: rmath.c math.h


