home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2870 / Makefile < prev    next >
Encoding:
Makefile  |  1991-02-28  |  1.5 KB  |  74 lines

  1. # Copyright 1988, John F. Haugh II
  2. # All rights reserved.
  3. #
  4. # Permission is granted to copy and create derivative works for any
  5. # non-commercial purpose, provided this copyright notice is preserved
  6. # in all copies of source code, or included in human readable form
  7. # and conspicuously displayed on all copies of object code or
  8. # distribution media.
  9. #
  10. #    %W%    %U%    %G%
  11. #
  12. # Your favorite Bourne Shell and Mine ...
  13. SHELL=/bin/sh
  14. # A list of all object files which need to be made
  15. OBJS =    crash.o interact.o files.o inodes.o mounts.o procs.o texts.o \
  16.     user.o vars.o stats.o bufs.o syms.o devs.o expr.o od.o ttys.o
  17. # A list of C files and such for sharchiving
  18. FILES =    README Makefile \
  19.     crash.c interact.c files.c inodes.c mounts.c procs.c texts.c \
  20.     user.c vars.c stats.c bufs.c syms.c devs.c expr.c od.c ttys.c \
  21.     crash.h
  22. # C flags, suitable for debugging or production.
  23. CFLAGS = -c -Ox -g
  24. GFLAGS = -t -r2
  25.  
  26. crash:    $(OBJS)
  27.     cc -o crash -g $(OBJS)
  28.  
  29. clean:
  30.     rm -f *.o a.out
  31.  
  32. clobber:    clean
  33.     rm -f crash core
  34.  
  35. nuke:    clobber
  36.     -for file in * ; do \
  37.         if [ -f s.$$file -a ! -f p.$$file ] ; then \
  38.             rm -f $$file ;\
  39.         fi ;\
  40.     done
  41.  
  42. README:
  43.     get -p $(GFLAGS) s.README > README
  44.  
  45. shar:    $(FILES)
  46.     shar -a $(FILES) > crash.shar
  47.  
  48. crash.o:    crash.h crash.c
  49.  
  50. interact.o:    interact.c
  51.  
  52. files.o:    crash.h files.c
  53.  
  54. inodes.o:    crash.h inodes.c
  55.  
  56. mounts.o:    crash.h mounts.c
  57.  
  58. procs.o:    crash.h procs.c
  59.  
  60. stats.o:    crash.h stats.c
  61.  
  62. texts.o:    crash.h texts.c
  63.  
  64. user.o:    crash.h user.c
  65.  
  66. vars.o:    crash.h vars.c
  67.  
  68. bufs.o:    crash.h bufs.c
  69.  
  70. devs.o:    crash.h devs.c
  71.  
  72. ttys.o:    crash.h ttys.c
  73.  
  74.