1 # Makefile for Email gateway Z39.50 interface
5 # Revision 1.9 1995/04/17 11:26:52 quinn
6 # Added YAZ version of zaccess
8 # Revision 1.8 1995/04/17 09:36:44 adam
9 # Minor changes in makefile.
11 # Revision 1.7 1995/03/27 12:52:25 adam
14 # Revision 1.6 1995/02/23 10:09:39 adam
17 # Revision 1.5 1995/02/23 08:32:25 adam
20 # Revision 1.3 1995/02/22 08:51:49 adam
21 # Definition of CPP changed.
23 # Revision 1.2 1995/02/16 15:01:38 quinn
24 # Polished some library-references
26 # Revision 1.1 1995/02/16 14:47:55 quinn
31 #ZDEFS=-DLOW_TO_HIGH -Dfar=
32 #ZPRE=/home/proj/zdist/zdist102b1-1/libz3950
34 #ZLIB=$(ZPRE)/libz3950.a
36 ZINC=-I../../yaz/include
37 ZDEFS= # -DUSE_XTIMOSI
38 ZLIB=../../yaz/lib/libyaz.a
40 INCLUDE=-I. -I../include $(ZINC)
41 #CFLAGS=-g -Wall -pedantic -ansi
50 $(TPROG1): $(TPROG1).o $(LIB)
51 $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) $(ZLIB) ../lib/libres+log.a
59 $(CC) -c $(DEFS) $(CFLAGS) $(ZDEFS) $<
62 rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~
67 sed '/^#Depend/q' <Makefile >Makefile.tmp
68 $(CPP) $(DEFS) -M *.c >>Makefile.tmp
69 mv -f Makefile.tmp Makefile
72 $(CPP) $(DEFS) -M *.c >.depend
74 #GNU make style depend
75 ifeq (.depend,$(wildcard .depend))
79 #Depend --- DOT NOT DELETE THIS LINE