Removed test programs from makefile.
[idzebra-moved-to-github.git] / isam / Makefile
1 # Copyright (C) 1994, Index Data I/S 
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.17 1995-11-27 10:16:12 quinn Exp $
5
6 SHELL=/bin/sh
7 RANLIB=ranlib
8
9 YAZLIB=-lyaz
10 YAZINC=
11
12 INCLUDE=-I../include $(YAZINC)
13 #CFLAGS=-g -Wall -pedantic -ansi
14 DEFS=$(INCLUDE)
15 LIB=../lib/isam.a
16 PO = isam.o isutil.o rootblk.o memory.o physical.o
17 CPP=$(CC) -E
18
19 all: $(LIB)
20
21 alll: $(LIB) # isam-test issh
22
23 test: test.c $(LIB)
24         $(CC) -g -o test -I../include test.c \
25         ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB)
26
27 isam-test: isam-test.c $(LIB)
28         $(CC) -g -o isam-test -I../include isam-test.c \
29         ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB)
30
31 issh: issh.c $(LIB)
32         $(CC) -g -o issh -I../include issh.c \
33         ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB)
34
35 #$(TPROG): $(TPROG).o $(LIB) 
36 #       $(CC) -o $(TPROG) $(TPROG).o $(LIB)
37
38 $(LIB): $(PO)
39         rm -f $(LIB)
40         ar qc $(LIB) $(PO)
41         $(RANLIB) $(LIB)
42
43 .c.o:
44         $(CC) -c $(DEFS) $(CFLAGS) $<
45
46 clean:
47         rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist test isam-test issh
48
49 depend: depend2
50
51 depend1:
52         sed '/^#Depend/q' <Makefile >Makefile.tmp
53         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
54         mv -f Makefile.tmp Makefile
55
56 depend2:
57         $(CPP) $(DEFS) -M *.c >.depend  
58
59 ifeq (.depend,$(wildcard .depend))
60 include .depend
61 endif
62
63 #Depend --- DOT NOT DELETE THIS LINE