1 # Copyright (C) 1995, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.28 1995-12-06 12:41:20 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
24 O3 = zserver.o kcompare.o zrpn.o zsets.o text.o recctrl.o structrec.o \
25 attribute.o recindex.o zlogs.o regxread.o
28 all: $(TPROG1) $(TPROG2) $(TPROG3)
30 $(TPROG1): $(O1) ../lib/dict.a ../lib/isam.a \
31 ../lib/bfile.a ../lib/dfa.a ../lib/alexutil.a
32 $(CC) $(CFLAGS) -o $(TPROG1) $(O1) \
33 ../lib/dict.a ../lib/isam.a \
34 ../lib/bfile.a ../lib/dfa.a ../lib/alexutil.a \
38 $(CC) $(CFLAGS) -o $(TPROG2) $(O2) $(YAZLIB)
41 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/bfile.a \
42 ../lib/dfa.a ../lib/alexutil.a
43 $(CC) $(CFLAGS) -o $(TPROG3) $(O3) \
44 ../lib/rset.a ../lib/dict.a ../lib/isam.a ../lib/bfile.a \
45 ../lib/dfa.a ../lib/alexutil.a \
46 $(YAZLIB) $(OSILIB) $(NETLIB) -lm
49 $(CC) -c $(DEFS) $(CFLAGS) $<
52 rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3)
53 rm -f core mon.out gmon.out errlist
58 sed '/^#Depend/q' <Makefile >Makefile.tmp
59 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
60 mv -f Makefile.tmp Makefile
63 $(CPP) $(DEFS) -M *.c >.depend
65 ifeq (.depend,$(wildcard .depend))
69 #Depend --- DOT NOT DELETE THIS LINE