1 # Makefile for Email gateway Z39.50 interface
5 # Revision 1.6 1995/02/23 10:09:39 adam
8 # Revision 1.5 1995/02/23 08:32:25 adam
11 # Revision 1.3 1995/02/22 08:51:49 adam
12 # Definition of CPP changed.
14 # Revision 1.2 1995/02/16 15:01:38 quinn
15 # Polished some library-references
17 # Revision 1.1 1995/02/16 14:47:55 quinn
22 ZDEFS=-DLOW_TO_HIGH -Dfar=
23 ZPRE=/home/proj/zdist/zdist102b1-1/libz3950
25 ZLIB=$(ZPRE)/libz3950.a
27 INCLUDE=-I. -I../include $(ZINC)
28 CFLAGS=-g -Wall -pedantic -ansi
37 $(TPROG1): $(TPROG1).o $(LIB)
38 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) $(ZLIB) ../lib/libres+log.a
46 $(CC) -c $(DEFS) $(CFLAGS) $(ZDEFS) $<
49 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
54 mv Makefile Makefile.tmp
55 sed '/^#Depend/q' <Makefile.tmp >Makefile
56 $(CPP) $(ZDEFS) $(INCLUDE) -M *.c >>Makefile
60 $(CPP) $(ZDEFS) $(INCLUDE) -M *.c >.depend
62 ifeq (.depend,$(wildcard .depend))
66 #Depend --- DOT NOT DELETE THIS LINE