Support for YAZ in standard located directories, such as /usr/local/..
[idzebra-moved-to-github.git] / rset / Makefile
1 # Copyright (C) 1994, Index Data I/S 
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.9 1995-11-20 11:58:10 adam 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/rset.a
16 PROG=
17 PO=rset.o rstemp.o rsisam.o rsnull.o rsbool.o rsrel.o
18 CPP=$(CC) -E
19
20 all: $(LIB)
21
22 $(LIB): $(PO)
23         rm -f $(LIB)
24         ar qc $(LIB) $(PO)
25         $(RANLIB) $(LIB)
26
27 .c.o:
28         $(CC) -c $(DEFS) $(CFLAGS) $<
29
30 clean:
31         rm -f *.[oa] core mon.out gmon.out errlist
32
33 depend: depend2
34
35 depend1:
36         sed '/^#Depend/q' <Makefile >Makefile.tmp
37         $(CPP) $(DEFS) -M *.c >>Makefile.tmp
38         mv -f Makefile.tmp Makefile
39
40 depend2:
41         $(CPP) $(DEFS) -M *.c >.depend  
42
43 ifeq (.depend,$(wildcard .depend))
44 include .depend
45 endif
46
47 #Depend --- DOT NOT DELETE THIS LINE