1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.15 1995-09-04 12:33:31 adam Exp $
9 YAZLIB=$(YAZ)/lib/libyaz.a
10 INCLUDE=-I../include -I$(YAZ)/include
13 #CFLAGS=-g -Wall -pedantic -ansi
16 PO = dopen.o dclose.o drdwr.o open.o close.o insert.o lookup.o \
22 alll: $(LIB) $(TPROG1) $(TPROG2)
24 $(TPROG1): $(TPROG1).o $(LIB) ../lib/bfile.a ../lib/alexutil.a ../lib/dfa.a
25 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) \
26 ../lib/bfile.a ../lib/dfa.a ../lib/alexutil.a $(YAZLIB)
28 $(TPROG2): $(TPROG2).o $(LIB) ../lib/alexutil.a $(YAZLIB)
29 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o ../lib/alexutil.a $(YAZLIB)
37 $(CC) -c $(DEFS) $(CFLAGS) $<
40 rm -f *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist
45 sed '/^#Depend/q' <Makefile >Makefile.tmp
46 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
47 mv -f Makefile.tmp Makefile
50 $(CPP) $(DEFS) -M *.c >.depend
52 ifeq (.depend,$(wildcard .depend))
56 #Depend --- DOT NOT DELETE THIS LINE