# Copyright (C) 1994, Index Data I/S
# All rights reserved.
# Sebastian Hammer, Adam Dickmeiss
-# $Id: Makefile,v 1.4 1994-10-03 17:22:17 adam Exp $
+# $Id: Makefile,v 1.6 1995-01-24 16:00:20 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
mv y.tab.c regexp.c
sed '/^#Depend/q' <Makefile.tmp >Makefile
$(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >>Makefile
- -rm Makefile.tmp
+ rm -f Makefile.tmp regexp.c
depend2:
$(YACC) $(YFLAGS) regexp.y
mv y.tab.c regexp.c
$(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >.depend
+ rm -f regexp.c
ifeq (.depend,$(wildcard .depend))
include .depend