CC       = CC
CFLAGS   = -DSYSV4
INC      = -I..
LIBFLAGS = -lthread -lnsl

targets = msg_cls2 msg_svc2

all : $(targets)

$(targets) : $$@.C ../RPC.C ../RPC.h msg2.h
	$(CC) $(CFLAGS) $(INC) -o $@ $(@).C ../RPC.C $(LIBFLAGS)
	/bin/rm -f RPC.o $(@).o

clean :
	/bin/rm -f $(targets)
