1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.13 1995-12-04 14:20:05 adam Exp $
12 INCLUDE=-I../include $(YAZINC)
16 DEFS=$(INCLUDE) -DMEMDEBUG=1
18 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
26 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) \
27 ../lib/alexutil.a $(YAZLIB)
29 $(TPROG2): $(TPROG2).o readfile.o $(LIB) ../lib/alexutil.a
30 $(CC) $(CFLAGS) -o $(TPROG2) $(TPROG2).o readfile.o $(LIB) \
31 ../lib/alexutil.a $(YAZLIB)
33 $(TPROG3): $(TPROG3).o $(LIB) ../lib/alexutil.a
34 $(CC) $(CFLAGS) -o $(TPROG3) $(TPROG3).o $(LIB) $(YAZLIB) \
35 ../lib/alexutil.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) -M $(DEFS) *.c >>Makefile.tmp
53 mv -f Makefile.tmp Makefile
56 $(CPP) -M $(DEFS) *.c >.depend
58 ifeq (.depend,$(wildcard .depend))
62 #Depend --- DOT NOT DELETE THIS LINE