1 # Makefile for Email gateway utilities
5 # Revision 1.2 1995/02/16 15:01:38 quinn
6 # Polished some library-references
8 # Revision 1.1 1995/02/16 14:47:55 quinn
13 ZPRE=/home/proj/zdist/zdist102b1-1/libz3950
15 ZLIB=$(ZPRE)/libz3950.a
18 INCLUDE=-I. -I../include $(ZINC)
19 CFLAGS=-g -Wall -pedantic -ansi
25 ZDEFS=-DLOW_TO_HIGH -Dfar=
29 $(TPROG1): $(TPROG1).o $(LIB)
30 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) $(ZLIB) ../lib/libres+log.a
38 $(CC) -c $(DEFS) $(CFLAGS) $(ZDEFS) $<
41 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
46 mv Makefile Makefile.tmp
47 sed '/^#Depend/q' <Makefile.tmp >Makefile
48 $(CPP) $(INCLUDE) -M *.c >>Makefile
52 $(CPP) $(INCLUDE) -M *.c >.depend
54 ifeq (.depend,$(wildcard .depend))
58 #Depend --- DOT NOT DELETE THIS LINE