home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume5 / fsanalyze4.1 / part01 / Mkfile.sun < prev    next >
Text File  |  1989-02-03  |  2KB  |  76 lines

  1. ## @(#)$Id: Mkfile.sun, V4.1 88/11/16 17:27:58 $
  2. ##
  3. ## FSANALYZE makefile
  4. ## Version  : 4.1 - 88/11/16 17:27:58
  5.  
  6. ## One of the things FSANALYZE displays is a list of the most fragmented
  7. ## files.  OFFEND determines how many of those files to report.
  8. ## The report is in double column format, so the number should be divisible
  9. ## by 2.  Ideally, this number should be set so that the report fits on
  10. ## a single screen.  For a 24-line display, the suggested number is 10,
  11. ## which is the default.
  12. OFFEND = 10
  13.  
  14. ## File System type - Use the first definition for derivatives of the old
  15. ## AT&T file system, including Version 7, System III, and System V
  16. ## releases 2 and 3, and XENIX.  Use the second definition for derivatives
  17. ## of the BSD Fast File system without NFS.  If NFS support is also included,
  18. ## use the third definition.
  19. #FS = FS_ATT
  20. #FS = FS_BSD
  21. FS = FS_BSD_NFS
  22.  
  23. ## Operating system type - This definition is used for OS-dependencies within
  24. ## a given file system.  Use OS_ATT or OS_BSD if none of the other definitions
  25. ## apply.
  26. #OS = OS_ATT
  27. OS = OS_BSD
  28. #OS  = OS_UPORT_286 # Microport System V/AT (286-based - use _ATT for /386)
  29. #OS = OS_XENIX_286 # XENIX/286 (use _ATT for XENIX/386)
  30.  
  31. ## Uncomment the next line if you have the fsstat(1) command.  Note that if
  32. ## you are installing fsanalyze on a Microport System V/AT, this command
  33. ## should be uncommented, since the is_ok macro as defined in fsconfig.h
  34. ## will not work.
  35. #FSSTAT = -DHAVE_FSSTAT
  36.  
  37. ## Where the executable should be placed...
  38. DESTDIR = /etc/local
  39.  
  40. ## Where the man file should be placed...
  41. MANDIR = /usr/man/man8
  42.  
  43. CONFIG_FLGS = -DFS_TYPE=$(FS) -DOS_TYPE=$(OS) -DNUMOFFEND=$(OFFEND) $(FSSTAT)
  44.  
  45. ## edit as appropriate...
  46. CFLAGS = -O $(CONFIG_FLGS)
  47. LDFLAGS = 
  48.  
  49. OBJS = fsanalyze.o chkfile.o fragm.o init.o report.o stats.o util.o
  50. SRCS = fsanalyze.c chkfile.c fragm.c init.c report.c stats.c util.c
  51.  
  52. fsanalyze:    $(OBJS)
  53.     $(CC) $(LDFLAGS) -o fsanalyze $(OBJS)
  54.  
  55. install: fsanalyze manual
  56.     mv fsanalyze $(DESTDIR)
  57.     chmod 755 $(DESTDIR)/fsanalyze
  58.  
  59. clean:
  60.     rm *.o fsanalyze
  61.  
  62. lint:    $(SRCS) fsconfig.h fsanalyze.h
  63.     lint -D_FS_TYPE=$(FS) -D_OS_TYPE=$(OS) $(FSSTAT) -p $(SRCS)
  64.  
  65. manual:    fsanalyze.8
  66.     cp fsanalyze.8 $(MANDIR)
  67.     chmod 444 $(MANDIR)/fsanalyze.8
  68.  
  69. chkfile.o : fsconfig.h fsanalyze.h
  70. fragm.o : fsconfig.h fsanalyze.h
  71. fsanalyze.o : fsconfig.h fsanalyze.h
  72. init.o : fsconfig.h fsanalyze.h patchlevel.h
  73. report.o : fsconfig.h fsanalyze.h
  74. stats.o : fsconfig.h fsanalyze.h
  75. util.o : fsconfig.h fsanalyze.h
  76.