1 # Copyright (C) 1994-1998, Index Data
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile.in,v 1.1 1998-09-02 14:15:26 adam Exp $
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
21 # Some systems have seperate socket libraries
24 SUBDIR=util bfile dfa dict isamc isam rset recctrl index
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
30 for i in $(SUBDIR); do cd $$i; if $(MAKE) CPP="$(CPP)" CDEFS="$(CDEFS)" YAZINC="$(YAZINC)" depend; then cd ..; else exit 1; fi; done
33 for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done
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`
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
48 wc `find . -name '*.[ch]'`