Changed Makefiles to NOT include ../../yaz/z39.50.
[idzebra-moved-to-github.git] / Makefile.in
1 # Copyright (C) 1994-1999, Index Data
2 # All rights reserved.
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile.in,v 1.6 1999-06-09 11:58:48 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 # If Yaz is compiled with mosi support uncomment and specify.
18 #OSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
19
20 # Tcl include files and libraries
21 TCL_INCLUDE=@TCL_INCLUDE@
22 TCL_LIB=@TCL_LIB@
23
24 # Some systems have seperate socket libraries
25 LIBS=@LIBS@
26
27 prefix=@prefix@
28
29 SUBDIR=util bfile dfa dict isamc isam rset recctrl index
30
31 all:
32         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
33
34 dep depend:
35         for i in $(SUBDIR); do cd $$i; if $(MAKE) CPP="$(CPP)" CDEFS="$(CDEFS)" YAZINC="$(YAZINC)" depend; then cd ..; else exit 1; fi; done
36
37 clean:
38         for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done
39         rm -f lib/*.a
40
41 cleanup:
42         rm -f `find $(SUBDIR) -name "*.[oa]" -print`
43         rm -f `find $(SUBDIR) -name "core" -print`
44         rm -f `find $(SUBDIR) -name "errlist" -print`
45         rm -f `find $(SUBDIR) -name "a.out" -print`
46
47 cleandepend: 
48         for i in $(SUBDIR); do (cd $$i; \
49                 if sed '/^#Depend/q' <Makefile >Makefile.tmp; then \
50                 mv -f Makefile.tmp Makefile; fi; rm -f .depend); done
51
52 wc:
53         wc `find . -name '*.[ch]'`
54