head	1.2;
access;
symbols
	bsd_44_lite_2:1.1.1.3
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.2
date	97.07.13.14.18.38;	author peter;	state dead;
branches;
next	1.1;

1.1
date	94.05.27.04.59.45;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	94.05.27.04.59.46;	author rgrimes;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	95.12.30.18.49.02;	author peter;	state dead;
branches;
next	1.1.1.3;

1.1.1.3
date	97.07.03.03.20.49;	author bde;	state Exp;
branches;
next	;


desc
@@


1.2
log
@kill the undead
@
text
@#
# @@(#)Makefile	2.3 88/08/11 4.0 RPCSRC
#
#
RPCCOM = rpcgen
LIB = -lrpclib

DESTDIR=
CFLAGS= -O
LDFLAGS=

HDRS= klm_prot.h mount.h nfs_prot.h nlm_prot.h rex.h rquota.h rnusers.h\
      rquota.h rstat.h sm_inter.h spray.h yppasswd.h yp.h
XFILES= bootparam_prot.x klm_prot.x mount.x nfs_prot.x nlm_prot.x \
      rex.x rnusers.x rquota.x rstat.x sm_inter.x spray.x yppasswd.x yp.x
BIN= rstat
SVCBIN= rstat_svc
GEN= rstat_clnt.c rstat_svc.c rstat_xdr.c

all:	$(HDRS) $(BIN) $(SVCBIN)

install: $(HDRS) $(XFILES)
	@@echo "Creating RPC service headers directory"
	-mkdir ${DESTDIR}/usr/include/rpcsvc && \
		chown bin ${DESTDIR}/usr/include/rpcsvc && \
		chmod 755 ${DESTDIR}/usr/include/rpcsvc
	@@echo "Installing RPC service header and definition files"
	for i in $(HDRS) $(XFILES); do \
		(install -c -m 644 $$i ${DESTDIR}/usr/include/rpcsvc) done
	-mkdir ${DESTDIR}/etc && chown bin ${DESTDIR}/etc && \
		chmod 755 ${DESTDIR}/etc
	@@echo "Installing ${SVCBIN} in ${DESTDIR}/etc"
	@@set -x;for i in ${SVCBIN}; do \
		(install -c -s $$i ${DESTDIR}/etc/$$i); done
	@@echo "Installing ${BIN} in ${DESTDIR}/usr/bin"
	@@set -x;for i in ${BIN}; do \
		(install -c -s $$i ${DESTDIR}/usr/bin/$$i); done

rstat_svc: rstat_proc.o rstat_svc.o rstat_xdr.o
	$(CC) $(LDFLAGS) -o $@@ rstat_proc.o rstat_svc.o rstat_xdr.o $(LIB)

rstat: rstat.o rstat_clnt.o rstat_xdr.o
	$(CC) $(LDFLAGS) -o $@@ rstat.o rstat_clnt.o rstat_xdr.o $(LIB)

rstat.c rstat_proc.c:	rstat.h

klm_prot.h:	klm_prot.x
	$(RPCCOM) -h klm_prot.x -o $@@
mount.h:	mount.x
	$(RPCCOM) -h mount.x -o $@@
nfs_prot.h:	nfs_prot.x
	$(RPCCOM) -h nfs_prot.x -o $@@
nlm_prot.h:	nlm_prot.x
	$(RPCCOM) -h nlm_prot.x -o $@@
rex.h:	rex.x
	$(RPCCOM) -h rex.x -o $@@
rnusers.h:	rnusers.x
	$(RPCCOM) -h rnusers.x -o $@@
rquota.h:	rquota.x
	$(RPCCOM) -h rquota.x -o $@@
rstat.h:	rstat.x
	$(RPCCOM) -h rstat.x -o $@@
sm_inter.h:	sm_inter.x
	$(RPCCOM) -h sm_inter.x -o $@@
spray.h:	spray.x
	$(RPCCOM) -h spray.x -o $@@
yp.h:	yp.x
	$(RPCCOM) -h yp.x -o $@@
yppasswd.h:	yppasswd.x
	$(RPCCOM) -h yppasswd.x -o $@@

rstat_clnt.c:	rstat.x
	$(RPCCOM) -l rstat.x -o $@@
rstat_svc.c:	rstat.x
	$(RPCCOM) -s udp rstat.x -o $@@
rstat_xdr.c:	rstat.x
	$(RPCCOM) -c rstat.x -o $@@

clean cleanup:
	rm -f *.o $(GEN) $(BIN) $(SVCBIN)
@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@BSD 4.4 Lite Lib Sources
@
text
@@


1.1.1.2
log
@recording cvs-1.6 file death
@
text
@@


1.1.1.3
log
@Import Lite2's src/lib, except for non-i386 machine-dependent directories,
libc/db, libc/gen/crypt.* and libtelnet.  All affected files except 3
unimportant ones have already left the vendor branch.
@
text
@@
