ALLOCA=alloca.o
OBJS=grep.o getopt.o regex.o dfa.o kwset.o obstack.o search.o

all: grep

grep: $(OBJS) $(ALLOCA)
	sc $(OBJS) $(ALLOCA) link

# Some header file dependencies that really ought to be automatically deduced.
dfa.o search.o: dfa.h
grep.o search.o: grep.h
kwset.o search.o: kwset.h
kwset.o obstack.o: obstack.h
regex.o search.o: regex.h
