1 # Copyright (C) 1995-1998, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.49 1998-03-05 08:45: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)
21 O1 = main.o dir.o dirs.o trav.o extract.o kinput.o kcompare.o \
22 symtab.o recindex.o recstat.o lockutil.o lockidx.o \
23 zinfo.o invstat.o sortidx.o
25 O3 = zserver.o kcompare.o zrpn.o zsets.o attribute.o recindex.o \
26 zlogs.o lockutil.o locksrv.o zinfo.o trunc.o sortidx.o rank1.o zebraapi.o \
28 O4 = hlvl.o hlvltest.o kcompare.o
31 all: $(TPROG1) $(TPROG2) $(TPROG3)
33 $(TPROG1): $(O1) ../lib/dict.a ../lib/isam.a ../lib/isamc.a ../lib/recctrl.a \
34 ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a $(YAZLIB)
35 $(CC) $(CFLAGS) -o $(TPROG1) $(O1) \
36 ../lib/dict.a ../lib/isam.a ../lib/isamc.a ../lib/recctrl.a \
37 ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
41 $(CC) $(CFLAGS) -o $(TPROG2) $(O2) ../lib/zebrautl.a \
45 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/recctrl.a \
46 ../lib/isamc.a ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
48 $(CC) $(CFLAGS) -o $(TPROG3) $(O3) \
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 \
51 $(YAZLIB) $(OSILIB) $(ELIBS) -lm
54 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/recctrl.a \
55 ../lib/isamc.a ../lib/bfile.a ../lib/dfa.a ../lib/zebrautl.a \
57 $(CC) $(CFLAGS) -o $(TPROG4) $(O4) \
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 \
60 $(YAZLIB) $(OSILIB) $(ELIBS) -lm
63 $(CC) -c $(DEFS) $(CFLAGS) $<
66 rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
67 rm -f core mon.out gmon.out errlist
72 sed '/^#Depend/q' <Makefile >Makefile.tmp
73 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
74 mv -f Makefile.tmp Makefile
77 $(CPP) $(DEFS) -M *.c >.depend
79 ifeq (.depend,$(wildcard .depend))
83 #Depend --- DOT NOT DELETE THIS LINE