# @(#)Makefile 1.6 89/07/07 Legato Systems, Inc.
#
# Makefile to build nhfsstone
#
SHAR_FILES= README DISCLAIMER Makefile nhfsstone.1 nhfsstone.c \
	nhfsrun nhfsgraph nhfsnums

nhfsstone: nhfsstone.c
	cc -o nhfsstone nhfsstone.c

nhfsstone.shar: $(SHAR_FILES)
	rm -f nhfsstone.shar
	shar $(SHAR_FILES) > nhfsstone.shar

lint: lint.out

lint.out: nhfsstone.c
	lint nhfsstone.c | tee lint.out

install: nhfsstone
	strip nhfsstone
	chgrp kmem nhfsstone
	chmod g+s nhfsstone
	chmod +x nhfsrun nhfsgraph nhfsnums

clean:
	rm -f *.o nhfsstone lint.out nhfsstone.shar core
