# Makefile for GNU CC
# using 16 bit ints

include ../Makevars

all    : nfsd mountd
install : nfsd mountd
	$(INSTALL) mountd $(USRETCDIR)/mountd
	$(INSTALL) nfsd $(USRETCDIR)/nfsd


COMOBJ0 = auth.o fh.o util.o exportent.o

NFSDOBJ0 = nfsd.o nfssvc.o ../xfs/nfs_xdr.o

MNTDOBJ0 = mountd.o mount_xdr.o

nfsd        : $(NFSDOBJ0) $(COMOBJ0)
		$(LD) $(LDFLAGS) -o nfsd $(NFSDOBJ0) $(COMOBJ0) $(LIBS)
#		xstrip nfsd
#		chmod 700 nfsd

mountd      : $(MNTDOBJ0) $(COMOBJ0)
		$(LD) $(LDFLAGS) -o mountd $(MNTDOBJ0) $(COMOBJ0) $(LIBS)
#		xstrip mountd
#		chmod 700 nfsd

nfsd.o         : nfsd.c ../xfs/nfs.h auth.h version.h
auth.o         : auth.c auth.h exportent.h
nfssvc.o       : nfssvc.c fh.h ../xfs/nfs.h
fh.o           : fh.c fh.h
util.o         : util.c
exportent.o    : exportent.c exportent.h
../xfs/nfs_xdr.o   : ../xfs/nfs_xdr.c


mount_xdr.o    : mount_xdr.c mount.h 
mountd.o       : mountd.c mount.h auth.h version.h util.h 


clean :
	$(RM) -f *.o
