CC=cc
#CFLAGS=-g -I. -DSVR4
#LIBS=-lsocket -lnsl -L/usr/ucblib -lucb -lresolv
CFLAGS=-ggdb -I.
LIBS=
NFSBUG_SOURCES=mount_clnt.c mount_xdr.c nfs_prot_clnt.c nfs_prot_xdr.c nfsbug.c
NFSBUG_OBJECTS=mount_clnt.o mount_xdr.o nfs_prot_clnt.o nfs_prot_xdr.o nfsbug.o
RPCGEN_MOUNT= mount.h mount_clnt.c mount_svc.c mount_xdr.c
RPCGEN_NFS_PROT= nfs_prot.h nfs_prot_clnt.c nfs_prot_svc.c nfs_prot_xdr.c

nfsbug:	$(NFSBUG_OBJECTS)
	$(CC) -g -o nfsbug $(NFSBUG_OBJECTS) $(LIBS)

lint:	$(NFSBUG_SOURCES)
	lint $(NFSBUG_SOURCES)

clean:
	rm -f nfsbug $(NFSBUG_OBJECTS) $(RPCGEN_MOUNT) $(RPCGEN_NFS_PROT) core

$(RPCGEN_MOUNT):; rpcgen mount.x
$(RPCGEN_NFS_PROT):; rpcgen nfs_prot.x
