1 # Copyright (C) 1995-1996, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.37 1996-05-14 14:04:33 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
14 #NETLIB=-lnsl -lsocket
16 INCLUDE=-I../include $(YAZINC)
21 O1 = main.o dir.o dirs.o trav.o extract.o kinput.o kcompare.o \
22 symtab.o text.o recctrl.o structrec.o recindex.o regxread.o recstat.o \
23 lockutil.o lockidx.o zinfo.o invstat.o
25 O3 = zserver.o kcompare.o zrpn.o zsets.o text.o recctrl.o structrec.o \
26 attribute.o recindex.o zlogs.o regxread.o lockutil.o locksrv.o zinfo.o
29 all: $(TPROG1) $(TPROG2) $(TPROG3)
31 $(TPROG1): $(O1) ../lib/dict.a ../lib/isam.a \
32 ../lib/bfile.a ../lib/dfa.a ../lib/alexutil.a
33 $(CC) $(CFLAGS) -o $(TPROG1) $(O1) \
34 ../lib/dict.a ../lib/isam.a \
35 ../lib/bfile.a ../lib/dfa.a ../lib/alexutil.a \
39 $(CC) $(CFLAGS) -o $(TPROG2) $(O2) $(YAZLIB)
42 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/bfile.a \
43 ../lib/dfa.a ../lib/alexutil.a
44 $(CC) $(CFLAGS) -o $(TPROG3) $(O3) \
45 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/bfile.a \
46 ../lib/dfa.a ../lib/alexutil.a \
47 $(YAZLIB) $(OSILIB) $(NETLIB) -lm
50 $(CC) -c $(DEFS) $(CFLAGS) $<
53 rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
54 rm -f core mon.out gmon.out errlist
59 sed '/^#Depend/q' <Makefile >Makefile.tmp
60 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
61 mv -f Makefile.tmp Makefile
64 $(CPP) $(DEFS) -M *.c >.depend
66 ifeq (.depend,$(wildcard .depend))
70 #Depend --- DOT NOT DELETE THIS LINE