1 # Copyright (C) 1994, Index Data I/S
3 # Sebastian Hammer, Adam Dickmeiss
4 # $Id: Makefile,v 1.12 1995-09-04 12:33:21 adam Exp $
9 YAZLIB=$(YAZ)/lib/libyaz.a
10 INCLUDE=-I../include -I$(YAZ)/include
11 #CFLAGS=-g -Wall -pedantic -ansi
14 CFLAGS=-g -Wall -pedantic -ansi
22 $(TPROG): $(TPROG).o $(LIB) $(YAZLIB)
23 $(CC) -o $(TPROG) $(TPROG).o $(LIB) $(YAZLIB)
31 $(CC) -c $(DEFS) $(CFLAGS) $<
34 rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist
40 sed '/^#Depend/q' <Makefile >Makefile.tmp
41 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
42 mv -f Makefile.tmp Makefile
45 $(CPP) $(DEFS) -M *.c >.depend
47 ifeq (.depend,$(wildcard .depend))
51 #Depend --- DOT NOT DELETE THIS LINE