home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-02-28 | 1.5 KB | 74 lines |
- # Copyright 1988, John F. Haugh II
- # All rights reserved.
- #
- # Permission is granted to copy and create derivative works for any
- # non-commercial purpose, provided this copyright notice is preserved
- # in all copies of source code, or included in human readable form
- # and conspicuously displayed on all copies of object code or
- # distribution media.
- #
- # %W% %U% %G%
- #
- # 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 syms.o devs.o expr.o od.o ttys.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 syms.c devs.c expr.c od.c ttys.c \
- crash.h
- # C flags, suitable for debugging or production.
- CFLAGS = -c -Ox -g
- GFLAGS = -t -r2
-
- crash: $(OBJS)
- cc -o crash -g $(OBJS)
-
- clean:
- rm -f *.o a.out
-
- clobber: clean
- rm -f crash core
-
- nuke: clobber
- -for file in * ; do \
- if [ -f s.$$file -a ! -f p.$$file ] ; then \
- rm -f $$file ;\
- fi ;\
- done
-
- README:
- get -p $(GFLAGS) s.README > README
-
- shar: $(FILES)
- shar -a $(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
-
- devs.o: crash.h devs.c
-
- ttys.o: crash.h ttys.c
-
-