1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.8 1995-09-04 12:33:25 adam Exp $
9 YAZLIB=$(YAZ)/lib/libyaz.a
10 INCLUDE=-I../include -I$(YAZ)/include
14 #CFLAGS=-g -Wall -pedantic -ansi
15 DEFS=$(INCLUDE) -DYACC -DYYDEBUG=1 -DMEMDEBUG=1
17 PO = dfa.o imalloc.o states.o set.o bset.o
23 alll: $(LIB) $(TPROG1) $(TPROG2) $(TPROG3)
25 $(TPROG1): $(TPROG1).o $(LIB) ../lib/alexutil.a $(YAZLIB)
26 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) \
27 ../lib/alexutil.a $(YAZLIB)
29 $(TPROG2): $(TPROG2).o readfile.o $(LIB) ../lib/alexutil.a $(YAZLIB)
30 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o readfile.o $(LIB) \
31 ../lib/alexutil.a $(YAZLIB)
33 $(TPROG3): $(TPROG3).o $(LIB) ../lib/alexutil.a $(YAZLIB)
34 $(CC) $(CFLAGS) -o $(TPROG3) $(TPROG3).o $(LIB) $(YAZLIB) \
35 ../lib/alexutil.a $(YAZLIB)
43 $(CC) -c $(DEFS) $(CFLAGS) $<
47 $(CC) -c $(DEFS) $(CFLAGS) y.tab.c
51 rm -f *.[oa] $(TPROG1) $(TPROG2) $(TPROG3) core mon.out gmon.out errlist y.tab*
56 $(YACC) $(YFLAGS) regexp.y
58 sed '/^#Depend/q' <Makefile >Makefile.tmp
59 $(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >>Makefile.tmp
60 mv -f Makefile.tmp Makefile
64 $(YACC) $(YFLAGS) regexp.y
66 $(CPP) -M $(DEFS) *.c |sed 's/regexp\.c/regexp.y/g' >.depend
69 ifeq (.depend,$(wildcard .depend))
73 #Depend --- DOT NOT DELETE THIS LINE