# Makefile for GNU find.
# Do not use this makefile directly, but only from `../Makefile'.
# Copyright (C) 1990 Free Software Foundation, Inc.

OBJECTS = find.o fstype.o parser.o pred.o tree.o util.o

all:	find.exe
.PHONY: all

.c.o:
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -I../lib $<

TAGS: $(SOURCES)
	etags $(SOURCES)

find.exe: $(OBJECTS) ../lib/libfind.a
	$(CC) -o $@ $(LDFLAGS) $(OBJECTS) ../lib/libfind.a $(LIBS)

parser.o: ../lib/modechange.h
find.o fstype.o parser.o pred.o: ../lib/modetype.h
find.o parser.o pred.o tree.o util.o: defs.h
pred.o: ../lib/wait.h
