home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume15 / vtree / Makefile < prev    next >
Encoding:
Makefile  |  1988-05-23  |  1.5 KB  |  71 lines

  1. #    Build VTREE
  2. #
  3. #    Define the type of system we're working with.  Three
  4. # choices:
  5. #
  6. #   1.    BSD Unix 4.2 or 4.3.  Directory read support in the
  7. # standard library, so we don't have to do much.  Select BSD.
  8. #
  9. #   2.    System V.  I depend on Doug Gwyn's directory reading
  10. # routines.  They were posted to Usenet "comp.sources" early in
  11. # May 1987.  They're worth the effort to get, if you don't have
  12. # them already.  Select SYS_V.  Be sure to define NLIB to be the
  13. # 'cc' option to include the directory library.
  14. #
  15. #   3.  System III, or machines without any directory read
  16. # packages.  I have a minimal kludge.  Select SYS_III.
  17. #
  18.  
  19. # Case 1:
  20. #SYS=    -DBSD
  21. #NLIB=
  22.  
  23. # Case 2:
  24. SYS=    -DSYS_V
  25. NLIB=    -lndir
  26.  
  27. # Case 3:
  28. #SYS=    -DSYS_III
  29. #NLIB=
  30.  
  31.  
  32. #    Standard things you may wish to change:
  33. #
  34. #    INSTALL        directory to install vtree in
  35.  
  36. INSTALL    =    /usr/local/bin
  37.  
  38.  
  39. #    The following OPTIONS may be defined:
  40. #
  41. #    LSTAT        we have the lstat(2) system call (BSD only)
  42. #    HSTATS        print hashing statistics at end of run
  43. #
  44. #    Define LSTAT, HSTATS here
  45.  
  46. OPTIONS    = 
  47.  
  48. #  END OF USER-DEFINED OPTIONS
  49.  
  50.  
  51. CFLAGS=    -O $(SYS) $(OPTIONS)
  52. SRCS=        vtree.c    hash.c    direct.c    \
  53.         hash.h    customize.h    patchlevel.h
  54. OBJS=        vtree.o    hash.o
  55.  
  56. vtree:        $(OBJS)
  57.         cc -o vtree $(CFLAGS) $(OBJS) $(NLIB)
  58.  
  59. install:    vtree
  60.         cp vtree $(INSTALL)
  61.         chown local $(INSTALL)/vtree
  62.         chgrp pd $(INSTALL)/vtree
  63.         chmod 755 $(INSTALL)/vtree
  64.  
  65. clean:
  66.         rm -f $(OBJS) vtree *~
  67.  
  68. vtree.o:    vtree.c direct.c hash.h customize.h patchlevel.h
  69.  
  70. hash.o:        hash.c hash.h customize.h patchlevel.h
  71.