1 # Copyright (C) 1994-1996, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.15 1996-10-29 13:57:17 adam Exp $
9 YAZLIB=../../yaz/lib/libyaz.a
10 YAZINC=-I../../yaz/include
12 INCLUDE=-I../include $(YAZINC)
18 PO = dfa.o imalloc.o states.o set.o bset.o
23 alll: $(LIB) $(TPROG1) $(TPROG2) $(TPROG3)
25 $(TPROG1): $(TPROG1).o $(LIB) ../lib/zebrautl.a
26 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) \
27 ../lib/zebrautl.a $(YAZLIB)
29 $(TPROG2): $(TPROG2).o readfile.o $(LIB) ../lib/zebrautl.a
30 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o readfile.o $(LIB) \
31 ../lib/zebrautl.a $(YAZLIB)
33 $(TPROG3): $(TPROG3).o $(LIB) ../lib/zebrautl.a
34 $(CC) $(CFLAGS) -o $(TPROG3) $(TPROG3).o $(LIB) $(YAZLIB) \
35 ../lib/zebrautl.a $(YAZLIB)
43 $(CC) -c $(DEFS) $(CFLAGS) $<
46 rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3) core mon.out gmon.out errlist
51 sed '/^#Depend/q' <Makefile >Makefile.tmp
52 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
53 mv -f Makefile.tmp Makefile
56 $(CPP) $(DEFS) -M *.c >.depend
58 ifeq (.depend,$(wildcard .depend))
62 #Depend --- DOT NOT DELETE THIS LINE