# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.5 1994-10-05 10:46:41 adam Exp $
+# $Id: Makefile,v 1.7 1995-02-06 10:12:55 adam Exp $
SHELL=/bin/sh
INCLUDE=-I../include
TPROG1=agrep
TPROG2=lexer
TPROG3=grepper
-CFLAGS=-g -Wall
+CFLAGS=-g -Wall -pedantic -ansi
DEFS=$(INCLUDE) -DYACC -DYYDEBUG=1 -DMEMDEBUG=1
LIB=../lib/dfa.a
-PO = regexp.o imalloc.o states.o set.o bset.o
+PO = dfa.o imalloc.o states.o set.o bset.o
CPP=cc -E
YACC=yacc
alll: $(LIB) $(TPROG1) $(TPROG2) $(TPROG3)
-$(TPROG1): $(TPROG1).o $(LIB)
+$(TPROG1): $(TPROG1).o $(LIB) ../lib/util.a
$(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/util.a
-$(TPROG2): $(TPROG2).o readfile.o $(LIB)
+$(TPROG2): $(TPROG2).o readfile.o $(LIB) ../lib/util.a
$(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o readfile.o $(LIB) ../lib/util.a
$(TPROG3): $(TPROG3).o $(LIB)