6fa06664b98f38bed47e30a371587605593cc03e
[idzebra-moved-to-github.git] / Makefile.in
1 # Copyright (C) 1994-1998, Index Data
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile.in,v 1.1 1998-09-02 14:15:26 adam Exp $
5
6 SHELL=/bin/sh
7 MAKE=make
8 RANLIB=@RANLIB@
9 CC=@CC@
10 CPP=@CPP@
11 CDEFS=@DEFS@ @ODEFS@
12
13 # Where are Yaz libraries located?
14 YAZLIB=../../yaz/lib/libyaz.a
15 # Where are Yaz header files located?
16 YAZINC=-I../../yaz/include
17 #YAZINC=-I../../yaz/z39.50 -I../../yaz/include
18 # If Yaz is compiled with mosi support uncomment and specify.
19 #OSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
20
21 # Some systems have seperate socket libraries
22 LIBS=@LIBS@
23
24 SUBDIR=util bfile dfa dict isamc isam rset recctrl index
25
26 all:
27         for i in $(SUBDIR); do cd $$i; if $(MAKE) OSILIB="$(OSILIB)" YAZLIB="$(YAZLIB)" YAZINC="$(YAZINC)" RANLIB="$(RANLIB)" CDEFS="$(CDEFS)" LIBS="$(LIBS)" CFLAGS="$(CFLAGS)" CC="$(CC)"; then cd ..; else exit 1; fi; done
28
29 dep depend:
30         for i in $(SUBDIR); do cd $$i; if $(MAKE) CPP="$(CPP)" CDEFS="$(CDEFS)" YAZINC="$(YAZINC)" depend; then cd ..; else exit 1; fi; done
31
32 clean:
33         for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done
34         rm -f lib/*.a
35
36 cleanup:
37         rm -f `find $(SUBDIR) -name "*.[oa]" -print`
38         rm -f `find $(SUBDIR) -name "core" -print`
39         rm -f `find $(SUBDIR) -name "errlist" -print`
40         rm -f `find $(SUBDIR) -name "a.out" -print`
41
42 cleandepend: 
43         for i in $(SUBDIR); do (cd $$i; \
44                 if sed '/^#Depend/q' <Makefile >Makefile.tmp; then \
45                 mv -f Makefile.tmp Makefile; fi; rm -f .depend); done
46
47 wc:
48         wc `find . -name '*.[ch]'`
49