

# Minimalistic Makefile for Coda's needs.
# Various parts of Coda (esp. kernel/Venus communication) use these headers
# See Makefile.original for the full story.

HDRS = auth.h auth_unix.h clnt.h pmap_clnt.h rpc_netdb.h \
	pmap_prot.h pmap_rmt.h rpc.h rpc_msg.h svc.h svc_auth.h types.h xdr.h

CC = $(PLAINC?$(PLAINC):cc)
CFLAGS = $(CFLAGS) $(GCCFLAGS)
CPP=/usr/cs/lib/cpp

librpclib.a:
	$(MAKE) -f Makefile.original VPATH="$(VPATH)" CC=$(CC) CPP=$(CPP) CFLAGS="$(CFLAGS) $(INCLFLAGS)" $@


hdrinstall: $(HDRS) 
	-mkdir $(INCLDIR)/rpc
	-chmod 0644 $(INCLDIR)/rpc/*
	$(INSTALL) $> $(INCLDIR)/rpc

libinstall: librpclib.a
	ranlib librpclib.a
	$(INSTALL) $> $(LIBRPCLIB)

srcinstall:
# Manually setenv SUPPRESS_ALPHACI if you want to suppress the RCS checkin by alphaci
	SRCDIR=$(SRCDIR); export SRCDIR; $(ALPHACI)

install: hdrinstall libinstall srcinstall
