1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.6 1995-01-24 16:00:20 adam Exp $
11 CFLAGS=-g -Wall -pedantic -ansi
12 DEFS=$(INCLUDE) -DYACC -DYYDEBUG=1 -DMEMDEBUG=1
14 PO = dfa.o imalloc.o states.o set.o bset.o
20 alll: $(LIB) $(TPROG1) $(TPROG2) $(TPROG3)
22 $(TPROG1): $(TPROG1).o $(LIB)
23 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/util.a
25 $(TPROG2): $(TPROG2).o readfile.o $(LIB)
26 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o readfile.o $(LIB) ../lib/util.a
28 $(TPROG3): $(TPROG3).o $(LIB)
29 $(CC) $(CFLAGS) -o $(TPROG3) $(TPROG3).o $(LIB) ../lib/util.a
37 $(CC) -c $(DEFS) $(CFLAGS) $<
41 $(CC) -c $(DEFS) $(CFLAGS) y.tab.c
45 rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3) core mon.out gmon.out errlist y.tab*
50 mv Makefile Makefile.tmp
51 $(YACC) $(YFLAGS) regexp.y
53 sed '/^#Depend/q' <Makefile.tmp >Makefile
54 $(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >>Makefile
55 rm -f Makefile.tmp regexp.c
58 $(YACC) $(YFLAGS) regexp.y
60 $(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >.depend
63 ifeq (.depend,$(wildcard .depend))
67 #Depend --- DOT NOT DELETE THIS LINE