1 # Copyright (C) 1994-1997, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.21 1997-09-17 12:19:20 adam Exp $
9 YAZLIB=../../yaz/lib/libyaz.a
10 YAZINC=-I../../yaz/include
12 INCLUDE=-I../include $(YAZINC)
15 PO = isam.o isutil.o rootblk.o memory.o physical.o
20 alll: $(LIB) # isam-test issh
23 $(CC) -g -o test -I../include test.c \
24 ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB)
26 isam-test: isam-test.c $(LIB)
27 $(CC) -g -o isam-test -I../include isam-test.c \
28 ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB)
31 $(CC) -g -o issh $(INCLUDE) issh.c \
32 ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB)
34 #$(TPROG): $(TPROG).o $(LIB)
35 # $(CC) -o $(TPROG) $(TPROG).o $(LIB)
43 $(CC) -c $(DEFS) $(CFLAGS) $<
46 rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist test isam-test issh
51 sed '/^#Depend/q' <Makefile >Makefile.tmp
52 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
53 mv -f Makefile.tmp Makefile
56 $(CPP) $(DEFS) -M *.c >.depend
58 ifeq (.depend,$(wildcard .depend))
62 #Depend --- DOT NOT DELETE THIS LINE