1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.14 1995-02-06 10:13:17 adam Exp $
10 CFLAGS=-g -Wall -pedantic -ansi
13 PO = dopen.o dclose.o drdwr.o open.o close.o insert.o lookup.o \
19 alll: $(LIB) $(TPROG1) $(TPROG2)
21 $(TPROG1): $(TPROG1).o $(LIB) ../lib/bfile.a ../lib/util.a ../lib/dfa.a
22 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) ../lib/bfile.a ../lib/dfa.a ../lib/util.a
24 $(TPROG2): $(TPROG2).o $(LIB) ../lib/util.a
25 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o ../lib/util.a
33 $(CC) -c $(DEFS) $(CFLAGS) $<
36 rm -f *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist
41 mv Makefile Makefile.tmp
42 sed '/^#Depend/q' <Makefile.tmp >Makefile
43 $(CPP) $(INCLUDE) -M *.c >>Makefile
47 $(CPP) $(INCLUDE) -M *.c >.depend
49 ifeq (.depend,$(wildcard .depend))
53 #Depend --- DOT NOT DELETE THIS LINE