# Your favorite Bourne Shell and Mine ...
SHELL=/bin/sh
# A list of all object files which need to be made
OBJS =	crash.o interact.o files.o inodes.o mounts.o procs.o texts.o \
	user.o vars.o stats.o bufs.o
# A list of C files and such for sharchiving
FILES =	README Makefile \
	crash.c interact.c files.c inodes.c mounts.c procs.c texts.c \
	user.c vars.c stats.c bufs.c crash.h
# C flags, suitable for debugging or production.
CFLAGS = -c -Ox -g

crash:	$(OBJS)
	cc -o crash -g $(OBJS)

clean:
	rm -f *.o a.out

clobber:	clean
	rm -f crash core

shar:	$(FILES)
	shar $(FILES) > crash.shar

crash.o:	crash.h crash.c

interact.o:	interact.c

files.o:	crash.h files.c

inodes.o:	crash.h inodes.c

mounts.o:	crash.h mounts.c

procs.o:	crash.h procs.c

stats.o:	crash.h stats.c

texts.o:	crash.h texts.c

user.o:	crash.h user.c

vars.o:	crash.h vars.c

bufs.o:	crash.h bufs.c

