1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.13 1995-09-04 12:33:46 adam Exp $
9 YAZLIB=$(YAZ)/lib/libyaz.a
10 INCLUDE=-I../include -I$(YAZ)/include
11 #CFLAGS=-g -Wall -pedantic -ansi
14 PO = isam.o isutil.o rootblk.o memory.o physical.o
19 alll: $(LIB) isam-test issh
22 $(CC) -g -o test -I../include test.c \
23 ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB)
25 isam-test: isam-test.c $(LIB)
26 $(CC) -g -o isam-test -I../include isam-test.c \
27 ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB)
30 $(CC) -g -o issh -I../include issh.c \
31 ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB)
33 #$(TPROG): $(TPROG).o $(LIB)
34 # $(CC) -o $(TPROG) $(TPROG).o $(LIB)
42 $(CC) -c $(DEFS) $(CFLAGS) $<
45 rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist test isam-test issh
50 sed '/^#Depend/q' <Makefile >Makefile.tmp
51 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
52 mv -f Makefile.tmp Makefile
55 $(CPP) $(DEFS) -M *.c >.depend
57 ifeq (.depend,$(wildcard .depend))
61 #Depend --- DOT NOT DELETE THIS LINE