1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.9 1995-09-15 09:32:08 adam Exp $
9 YAZLIB=$(YAZ)/lib/libyaz.a
10 INCLUDE=-I../include -I$(YAZ)/include
14 DEFS=$(INCLUDE) -DYACC -DYYDEBUG=1 -DMEMDEBUG=1
16 PO = dfa.o imalloc.o states.o set.o bset.o
21 alll: $(LIB) $(TPROG1) $(TPROG2) $(TPROG3)
23 $(TPROG1): $(TPROG1).o $(LIB) ../lib/alexutil.a $(YAZLIB)
24 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) \
25 ../lib/alexutil.a $(YAZLIB)
27 $(TPROG2): $(TPROG2).o readfile.o $(LIB) ../lib/alexutil.a $(YAZLIB)
28 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o readfile.o $(LIB) \
29 ../lib/alexutil.a $(YAZLIB)
31 $(TPROG3): $(TPROG3).o $(LIB) ../lib/alexutil.a $(YAZLIB)
32 $(CC) $(CFLAGS) -o $(TPROG3) $(TPROG3).o $(LIB) $(YAZLIB) \
33 ../lib/alexutil.a $(YAZLIB)
41 $(CC) -c $(DEFS) $(CFLAGS) $<
44 rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3) core mon.out gmon.out errlist
49 sed '/^#Depend/q' <Makefile >Makefile.tmp
50 $(CPP) -M $(DEFS) *.c >>Makefile.tmp
51 mv -f Makefile.tmp Makefile
54 $(CPP) -M $(DEFS) *.c >.depend
56 ifeq (.depend,$(wildcard .depend))
60 #Depend --- DOT NOT DELETE THIS LINE