home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume5
/
fsanalyze4.1
/
part01
/
Mkfile.sys5
< prev
next >
Wrap
Text File
|
1989-02-03
|
2KB
|
76 lines
## @(#)$Id: Mkfile.sys5, V4.1 88/11/16 17:28:35 $
##
## FSANALYZE makefile
## Version : 4.1 - 88/11/16 17:28:35
## One of the things FSANALYZE displays is a list of the most fragmented
## files. OFFEND determines how many of those files to report.
## The report is in double column format, so the number should be divisible
## by 2. Ideally, this number should be set so that the report fits on
## a single screen. For a 24-line display, the suggested number is 10,
## which is the default.
OFFEND = 10
## File System type - Use the first definition for derivatives of the old
## AT&T file system, including Version 7, System III, and System V
## releases 2 and 3, and XENIX. Use the second definition for derivatives
## of the BSD Fast File system without NFS. If NFS support is also included,
## use the third definition.
FS = FS_ATT
#FS = FS_BSD
#FS = FS_BSD_NFS
## Operating system type - This definition is used for OS-dependencies within
## a given file system. Use OS_ATT or OS_BSD if none of the other definitions
## apply.
OS = OS_ATT
#OS = OS_BSD
#OS = OS_UPORT_286 # Microport System V/AT (286-based - use _ATT for /386)
#OS = OS_XENIX_286 # XENIX/286 (use _ATT for XENIX/386)
## Uncomment the next line if you have the fsstat(1) command. Note that if
## you are installing fsanalyze on a Microport System V/AT, this command
## should be uncommented, since the is_ok macro as defined in fsconfig.h
## will not work.
#FSSTAT = -DHAVE_FSSTAT
## Where the executable should be placed...
DESTDIR = /etc/local
## Where the man file should be placed...
MANDIR = /usr/man/man8
CONFIG_FLGS = -DFS_TYPE=$(FS) -DOS_TYPE=$(OS) -DNUMOFFEND=$(OFFEND) $(FSSTAT)
## edit as appropriate...
CFLAGS = -O $(CONFIG_FLGS)
LDFLAGS =
OBJS = fsanalyze.o chkfile.o fragm.o init.o report.o stats.o util.o
SRCS = fsanalyze.c chkfile.c fragm.c init.c report.c stats.c util.c
fsanalyze: $(OBJS)
$(CC) $(LDFLAGS) -o fsanalyze $(OBJS)
install: fsanalyze manual
mv fsanalyze $(DESTDIR)
chmod 755 $(DESTDIR)/fsanalyze
clean:
rm *.o fsanalyze
lint: $(SRCS) fsconfig.h fsanalyze.h
lint -D_FS_TYPE=$(FS) -D_OS_TYPE=$(OS) $(FSSTAT) -p $(SRCS)
manual: fsanalyze.8
cp fsanalyze.8 $(MANDIR)
chmod 444 $(MANDIR)/fsanalyze.8
chkfile.o : fsconfig.h fsanalyze.h
fragm.o : fsconfig.h fsanalyze.h
fsanalyze.o : fsconfig.h fsanalyze.h
init.o : fsconfig.h fsanalyze.h patchlevel.h
report.o : fsconfig.h fsanalyze.h
stats.o : fsconfig.h fsanalyze.h
util.o : fsconfig.h fsanalyze.h