# Generated automatically from Makefile.in by configure.
# Master Makefile for GNU find, xargs, and locate.
# Copyright (C) 1987, 1990, 1991 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.

SHELL = /bin/sh

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

srcdir = .
VPATH = .

CC = cc
AR = ar
# Set RANLIB = echo if your system doesn't have or need ranlib.
RANLIB = ranlib 
# Use cp if you don't have install.
INSTALL = /bin/install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA = $(INSTALL) -m 644

# Things you might add to DEFS:
# -DCACHE_IDS		If you want find -nouser and -nogroup to make
#			tables of used UIDs and GIDs at startup
#			instead of using getpwuid or getgrgid when
#			needed.  Speeds up -nouser and -nogroup unless
#			you are running NIS or Hesiod, which make
#			password and group calls very expensive. 
# -DSTDC_HEADERS	If you have ANSI C headers and libraries.
# -DHAVE_UNISTD_H	If you have unistd.h.
# -DUSG			If you have System V/ANSI C string headers and
#			functions, and ndir.h. 
# -DDIRENT		If you have dirent.h.
# -DSYSNDIR		Old Xenix systems (selects sys/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.
# -DLIMITS_H_MISSING	If you lack limits.h (uses sys/param.h instead).
# -DST_BLOCKS_MISSING	If your `struct stat' lacks st_blocks and st_blksize.
# -DSTRERROR_MISSING	If you lack strerror function.
# -DVPRINTF_MISSING	If you lack vprintf function (but have _doprnt).
# -DDOPRNT_MISSING	If you lack _doprnt function.  Also need to define
#			-DVPRINTF_MISSING.
# -DTM_ZONE_MISSING	If you lack tm_zone in struct tm; instead
#			use tm_isdst and tzname.
# -DTZNAME_MISSING	If you lack tm_zone and tzname; instead use
#			tm_isdst and timezone.  Also need to define
#			TM_ZONE_MISSING.
# Define zero or one of the following:
# If no FSTYPE_* is defined, -fstype treats every filesystem as type "unknown".
# -DFSTYPE_MNTENT	Use 4.3BSD getmntent to get filesystem type.
# -DFSTYPE_GETMNT	Use Ultrix getmnt to get filesystem type.
# -DFSTYPE_STATFS	Use 4.4BSD statfs to get filesystem type.
# -DFSTYPE_USG_STATFS	Use SVR3.2 statfs to get filesystem type.
# -DFSTYPE_AIX_STATFS	Use AIX3 statfs to get filesystem type.
# -DFSTYPE_STATVFS	Use SVR4 statvfs to get filesystem type.

DEFS =  -DDIRENT=1 -DFSTYPE_MNTENT=1 -DHAVE_UNISTD_H=1

CFLAGS = -g
LDFLAGS = -g
LIBS = 

prefix = /usr/local
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 `find' and `locate'.
bindir = $(exec_prefix)/bin

# Where to install programs to create the `locate' database.
libdir = $(exec_prefix)/lib/locate

# Where to install the `locate' database.
datadir = $(prefix)/lib/locate

# Name of the `locate' database file.
LOCATE_DB = $(datadir)/find.codes

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

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

# Arguments to pass to subdirectory makes.
MDEFINES = bindir='$(bindir)' libdir='$(libdir)' datadir='$(datadir)' \
binprefix='$(binprefix)' manprefix='$(manprefix)' \
mandir='$(mandir)' manext='$(manext)' LOCATE_DB='$(LOCATE_DB)' \
INSTALL_PROGRAM='$(INSTALL_PROGRAM)' INSTALL_DATA='$(INSTALL_DATA)' \
AR='$(AR)' RANLIB='$(RANLIB)' DEFS='$(DEFS)' \
CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'

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

# Subdirectories to run make in for the primary targets.
SUBDIRS = lib find xargs locate man

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

install:
	for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
.PHONY: install

TAGS:
	for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
.PHONY: TAGS

clean:
	for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
.PHONY: clean

mostlyclean:
	for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
.PHONY: mostlyclean

distclean:
	for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
	rm -f Makefile config.status
.PHONY: distclean

realclean:
	for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
	rm -f Makefile config.status
.PHONY: realclean

dist:
	echo find-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q find/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) $@; cd ..; done
	tar chZf `cat .fname`.tar.Z `cat .fname`
	rm -rf `cat .fname` .fname
.PHONY: dist

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