1 # Copyright (C) 1995, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.21 1995-11-20 16:59:44 adam Exp $
9 YAZLIB=../../yaz/lib/libyaz.a
10 YAZINC=-I../../yaz/include
11 OSILIB=../../xtimosi/src/libmosi.a ../../yaz/lib/librfc.a
12 #NETLIB=-lnsl -lsocket
14 INCLUDE=-I../include $(YAZINC)
19 O1 = main.o dir.o dirs.o trav.o extract.o kinput.o kcompare.o \
20 symtab.o text.o recctrl.o structrec.o recindex.o
22 O3 = zserver.o kcompare.o zrpn.o zsets.o text.o recctrl.o structrec.o \
23 attribute.o recindex.o zlogs.o
26 all: $(TPROG1) $(TPROG2) $(TPROG3)
28 $(TPROG1): $(O1) ../lib/dict.a \
29 ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a
30 $(CC) $(CFLAGS) -o $(TPROG1) $(O1) ../lib/dict.a \
31 ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a \
35 $(CC) $(CFLAGS) -o $(TPROG2) $(O2) $(YAZLIB)
38 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/bfile.a \
39 ../lib/dfa.a ../lib/alexutil.a
40 $(CC) $(CFLAGS) -o $(TPROG3) $(O3) \
41 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/bfile.a \
42 ../lib/dfa.a ../lib/alexutil.a \
43 $(YAZLIB) $(OSILIB) $(NETLIB) -lm
46 $(CC) -c $(DEFS) $(CFLAGS) $<
49 rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
50 rm -f core mon.out gmon.out errlist
55 sed '/^#Depend/q' <Makefile >Makefile.tmp
56 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
57 mv -f Makefile.tmp Makefile
60 $(CPP) $(DEFS) -M *.c >.depend
62 ifeq (.depend,$(wildcard .depend))
66 #Depend --- DOT NOT DELETE THIS LINE