1 # Copyright (C) 1995-1998, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.50 1998-06-12 12:22:11 adam Exp $
9 YAZLIB=../../yaz/lib/libyaz.a
11 YAZINC=-I../../yaz/include
12 #OSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
13 #OSILIB=../../xtimosi/src/libmosi.a -lrfc
15 INCLUDE=-I../include $(YAZINC)
22 O1 = main.o dir.o dirs.o trav.o extract.o kinput.o kcompare.o \
23 symtab.o recindex.o recstat.o lockutil.o lockidx.o \
24 zinfo.o invstat.o sortidx.o
26 O3 = zserver.o kcompare.o zrpn.o zsets.o attribute.o recindex.o \
27 zlogs.o lockutil.o locksrv.o zinfo.o trunc.o sortidx.o rank1.o zebraapi.o \
29 O4 = hlvl.o hlvltest.o kcompare.o
30 O5 = apitest.o kcompare.o zrpn.o zsets.o attribute.o recindex.o \
31 zlogs.o lockutil.o locksrv.o zinfo.o trunc.o sortidx.o rank1.o zebraapi.o \
35 all: $(TPROG1) $(TPROG2) $(TPROG3)
37 $(TPROG1): $(O1) ../lib/dict.a ../lib/isam.a ../lib/isamc.a ../lib/recctrl.a \
38 ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a $(YAZLIB)
39 $(CC) $(CFLAGS) -o $(TPROG1) $(O1) \
40 ../lib/dict.a ../lib/isam.a ../lib/isamc.a ../lib/recctrl.a \
41 ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
45 $(CC) $(CFLAGS) -o $(TPROG2) $(O2) ../lib/zebrautl.a \
49 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/recctrl.a \
50 ../lib/isamc.a ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
52 $(CC) $(CFLAGS) -o $(TPROG3) $(O3) \
53 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/recctrl.a \
54 ../lib/isamc.a ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
55 $(YAZLIB) $(OSILIB) $(ELIBS) -lm
58 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/recctrl.a \
59 ../lib/isamc.a ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
61 $(CC) $(CFLAGS) -o $(TPROG4) $(O4) \
62 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/recctrl.a \
63 ../lib/isamc.a ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
64 $(YAZLIB) $(OSILIB) $(ELIBS) -lm
67 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/recctrl.a \
68 ../lib/isamc.a ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
70 $(CC) $(CFLAGS) -o $(TPROG5) $(O5) \
71 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/recctrl.a \
72 ../lib/isamc.a ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
73 $(YAZLIB) $(OSILIB) $(ELIBS) -lm
77 $(CC) -c $(DEFS) $(CFLAGS) $<
80 rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
81 rm -f core mon.out gmon.out errlist
86 sed '/^#Depend/q' <Makefile >Makefile.tmp
87 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
88 mv -f Makefile.tmp Makefile
91 $(CPP) $(DEFS) -M *.c >.depend
93 ifeq (.depend,$(wildcard .depend))
97 #Depend --- DOT NOT DELETE THIS LINE