2 # Makefile for GNU e?grep
5 # Add -DUSG for System V.
9 # You may add getopt.o if your C library lacks getopt(); note that
10 # 4.3BSD getopt() is said to be somewhat broken.
12 # Add alloca.o if your machine does not support alloca().
18 # Space provided for machine dependent libraries.
24 cd tests; sh regress.sh
26 egrep: $(OBJS) $(EOBJ)
27 $(CC) $(CFLAGS) -o egrep $(OBJS) $(EOBJ) $(LIBS)
30 rm -f egrep.c; cp grep.c egrep.c
31 $(CC) $(CFLAGS) -DEGREP -c egrep.c
35 $(CC) $(CFLAGS) -o grep $(OBJS) $(GOBJ) $(LIBS)
38 rm -f grep egrep *.o core tests/core tests/tmp.script \
39 tests/khadafy.out egrep.c
41 dfa.o egrep.o grep.o: dfa.h
42 egrep.o grep.o regex.o: regex.h