1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.21 1996-03-20 09:35:15 adam Exp $
9 YAZLIB=../../yaz/lib/libyaz.a
10 YAZINC=-I../../yaz/include
12 INCLUDE=-I../include $(YAZINC)
15 #CFLAGS=-g -Wall -pedantic -ansi
18 PO = scan.o dopen.o dclose.o drdwr.o open.o close.o insert.o lookup.o \
19 lookupec.o lookgrep.o delete.o
24 alll: $(LIB) $(TPROG1) $(TPROG2)
26 $(TPROG1): $(TPROG1).o $(LIB) ../lib/bfile.a ../lib/alexutil.a ../lib/dfa.a
27 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) \
28 ../lib/bfile.a ../lib/dfa.a ../lib/alexutil.a $(YAZLIB)
30 $(TPROG2): $(TPROG2).o $(LIB) ../lib/alexutil.a
31 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o ../lib/alexutil.a $(YAZLIB)
39 $(CC) -c $(DEFS) $(CFLAGS) $<
42 rm -f *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist
47 sed '/^#Depend/q' <Makefile >Makefile.tmp
48 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
49 mv -f Makefile.tmp Makefile
52 $(CPP) $(DEFS) -M *.c >.depend
54 ifeq (.depend,$(wildcard .depend))
58 #Depend --- DOT NOT DELETE THIS LINE