# Generated automatically from Makefile.in by configure.
# Master Makefile for the GNU file utilities.
# Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc.

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

#### Start of system configuration section. ####

srcdir = .
VPATH = .

# If you use gcc, you should either run the fixincludes script that
# comes with it or else use gcc with the -traditional option.  Otherwise
# ioctl calls will be compiled incorrectly on some systems.
CC = gcc
AR = ar
# Set RANLIB = echo if your system doesn't have or need ranlib.
RANLIB = ranlib
YACC = yacc

# Things you might add to DEFS:
# -DSTDC_HEADERS	If you have ANSI C headers and libraries.
# -DHAVE_UNISTD_H	If you have unistd.h.
# -DHAVE_STRING_H	If you don't have ANSI C headers but have string.h.
# -DHAVE_LIMITS_H	If you have limits.h.
# -DHAVE_ALLOCA_H	If you use alloca.h to declare alloca.
# -DRETSIGTYPE=int	If your signal handlers return int, not void.
# -DDIRENT		If you have dirent.h.
# -DSYSNDIR		Old Xenix systems (sys/ndir.h).
# -DSYSDIR		Old BSD systems (sys/dir.h).
# -DNDIR		Old System V systems (ndir.h).
# -DVOID_CLOSEDIR	If your closedir function returns void, not int.
# -DMAJOR_IN_MKDEV	If major, minor, makedev defined in sys/mkdev.h.
# -DMAJOR_IN_SYSMACROS	If major, minor, makedev defined in sys/sysmacros.h.
# -DHAVE_FCNTL_H	If not POSIX.1 but you have fcntl.h.
# -DINT_16_BITS		If sizeof long > sizeof int.
# -DHAVE_STRERROR	If you have strerror function.
# -DHAVE_VPRINTF	If you have vprintf function.
# -DHAVE_DOPRNT		If you have _doprnt function (but lack vprintf).
# -DHAVE_MKFIFO		If you have mkfifo system call.
# -DHAVE_GETCWD		If not POSIX.1 but you have getcwd function.
# -DHAVE_FTRUNCATE	If you have ftruncate system call.
# -DHAVE_FCHMOD		If you have fchmod system call.
# -DMVDIR="\"$(libdir)/mvdir\""
#			If you lack rename system call.
# -DHAVE_ST_BLOCKS	If your `struct stat' has st_blocks and st_blksize.
# -DHAVE_UTIME_NULL	If your utime system call uses the
#			current time when passed a null time pointer.
# -DNEED_TZSET		If you lack ftime system call and
#			need to call tzset to set the timezone.
# -DAFS			If you use the Andrew File System and want
#			install to ignore AFS errors from trying to
#			change files' groups.
# Define zero or one of the following; you need one to compile df.
# The numbers after STATFS are the number of args it's passed.
# See lib/fsusage.c for more details.
# STAT_STATFS2_BSIZE	4.3BSD, SunOS 4, HP-UX, AIX.
# STAT_STATFS2_FSIZE	4.4BSD.
# STAT_STATFS2_FS_DATA	Ultrix.
# STAT_READ		SVR2.
# STAT_STATFS4		SVR3, Dynix, Irix.
# STAT_STATVFS		SVR4.
# Define zero or one of the following; you need one to compile df.
# The numbers after GETMNTENT are the number of args it's passed.
# See lib/mountlist.c for more details.
# MOUNTED_GETMNTENT1	4.3BSD, SunOS 4, HP-UX, Dynix, Irix.
# MOUNTED_GETMNTINFO	4.4BSD.
# MOUNTED_GETMNT	Ultrix.
# MOUNTED_FREAD		SVR2.
# MOUNTED_FREAD_FSTYP	SVR3.
# MOUNTED_GETMNTENT2	SVR4.
# MOUNTED_VMOUNT	AIX.

DEFS =  -DDIRENT=1 -DRETSIGTYPE=void -DMOUNTED_GETMNTINFO=1 -DSTAT_STATFS2_FSIZE -DGETGROUPS_T=int -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_ERRNO_H=1 -DHAVE_STRERROR=1 -DHAVE_GETCWD=1 -DHAVE_MKFIFO=1 -DHAVE_MEMCPY=1 -DHAVE_BCOPY=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_FTRUNCATE=1 -DHAVE_VPRINTF=1 -DHAVE_ST_BLOCKS=1
LIBS = 
LIBPROGS = 

CFLAGS = -O
LDFLAGS = 

prefix = /usr/gnu
exec_prefix = $(prefix)

# Prefix for each installed program, normally empty or `g'.
binprefix = 
# Prefix for each installed man page, normally empty or `g'.
manprefix = 

# Where to install the executables.
bindir = $(exec_prefix)/bin

# Where to put mvdir, if your system lacks the rename system call.
libdir = $(exec_prefix)/lib

# Where to put the manual pages.
mandir = $(prefix)/man/man1
# Extension (not including `.') for the installed manual page filenames.
manext = 1

#### End of system configuration section. ####

SHELL = /bin/sh

MDEFINES = bindir='$(bindir)' libdir='$(libdir)' mandir='$(mandir)' \
manext='$(manext)' binprefix='$(binprefix)' manprefix='$(manprefix)' \
LIBS='$(LIBS)' LIBPROGS='$(LIBPROGS)' AR='$(AR)' RANLIB='$(RANLIB)' \
DEFS='$(DEFS)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' \
LIBS='$(LIBS)' CC='$(CC)' YACC='$(YACC)'

DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README INSTALL \
NEWS configure configure.in mkinstalldirs

# Redundant stuff for making only selected programs.
PROGS = chgrp chown chmod cp dd du ginstall ln dir vdir ls mkdir \
mkfifo mknod mv rm rmdir touch  df

# Subdirectories to run make in for the primary targets.
SUBDIRS = lib src man

all:
	for dir in $(SUBDIRS); do \
	  echo making $@ in $$dir ; \
	  (cd $$dir; $(MAKE) $(MDEFINES) $@) ; \
	done

info:
install-info:
dvi:

check:
installcheck:

$(PROGS):
	cd lib; $(MAKE) $(MDEFINES) all
	cd src; $(MAKE) $(MDEFINES) $@

Makefile: config.status $(srcdir)/Makefile.in $(srcdir)/lib/Makefile.in \
	    $(srcdir)/man/Makefile.in $(srcdir)/src/Makefile.in
	$(SHELL) config.status

# Make sure all installation directories, e.g. $(bindir) actually exist by
# making them if necessary.
installdirs:
	$(SHELL) $(srcdir)/mkinstalldirs \
	  $(bindir) $(datadir) $(libdir) $(infodir) $(mandir)

install:: installdirs

install uninstall TAGS clean mostlyclean distclean realclean::
	for dir in $(SUBDIRS); do \
	  echo making $@ in $$dir ; \
	  (cd $$dir; $(MAKE) $(MDEFINES) $@) ; \
	done

distclean realclean::
	rm -f Makefile config.status

ac_dir = /home/gd/gnu/autoconf
dist: $(DISTFILES)
	if [ -f $(ac_dir)/autoconf ]; then \
	  $(ac_dir)/autoconf --macrodir=$(ac_dir); \
	else :; fi
	echo fileutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q src/version.c` > .fname
	rm -rf `cat .fname`
	mkdir `cat .fname`
	ln $(DISTFILES) `cat .fname`
	for dir in $(SUBDIRS); do \
	  mkdir `cat .fname`/$$dir; \
	  (cd $$dir; $(MAKE) $@); \
	done
	tar chzf `cat .fname`.tar.z `cat .fname`
	rm -rf `cat .fname` .fname

# Prevent GNU make v3 from overflowing arg limit on SysV.
.NOEXPORT:
