# Makefile for GNU e?grep
# Add -DUSG for System V.
# You may add getopt.o if your C library lacks getopt(); note that
# 4.3BSD getopt() is said to be somewhat broken.
# Add alloca.o if your machine does not support alloca().
# Space provided for machine dependent libraries.
$(CC) $(CFLAGS) -o egrep $(OBJS) $(EOBJ) $(LIBS)
rm -f egrep.c; cp grep.c egrep.c
$(CC) $(CFLAGS) -DEGREP -c egrep.c
$(CC) $(CFLAGS) -o grep $(OBJS) $(GOBJ) $(LIBS)
rm -f grep egrep *.o core tests/core tests/tmp.script \
tests/khadafy.out egrep.c
dfa.o egrep.o grep.o: dfa.h
egrep.o grep.o regex.o: regex.h