# Makefile for Email gateway Z39.50 interface # Europagate, 1995 # # $Log: Makefile,v $ # Revision 1.14 1995/04/20 15:25:31 quinn # Asynch. API # # Revision 1.13 1995/04/19 16:08:25 adam # Minor changes. # # Revision 1.12 1995/04/19 16:02:28 adam # Record type hack. # # Revision 1.11 1995/04/19 09:24:01 quinn # Fixed bug in zass_open - variable initialized after use # # Revision 1.10 1995/04/19 07:31:28 adam # Minor changes. # # Revision 1.9 1995/04/17 11:26:52 quinn # Added YAZ version of zaccess # # Revision 1.8 1995/04/17 09:36:44 adam # Minor changes in makefile. # # Revision 1.7 1995/03/27 12:52:25 adam # Minor changes. # # Revision 1.6 1995/02/23 10:09:39 adam # Minor changes. # # Revision 1.5 1995/02/23 08:32:25 adam # Changed header. # # Revision 1.3 1995/02/22 08:51:49 adam # Definition of CPP changed. # # Revision 1.2 1995/02/16 15:01:38 quinn # Polished some library-references # # Revision 1.1 1995/02/16 14:47:55 quinn # First kick. # SHELL=/bin/sh #ZDEFS=-DLOW_TO_HIGH -Dfar= #ZPRE=/home/proj/zdist/zdist102b1-1/libz3950 #ZINC=-I$(ZPRE) #ZLIB=$(ZPRE)/libz3950.a ZINC=-I../../yaz/include #ZDEFS=-DUSE_XTIMOSI ZLIB=../../yaz/lib/libyaz.a INCLUDE=-I. -I../include $(ZINC) #CFLAGS=-g -Wall -pedantic -ansi TPROG1=test LIB=../lib/libzass.a PO=zaccess-yaz.o CPP=$(CC) -E DEFS=$(INCLUDE) CFILES=zaccess-yaz.c all: $(LIB) $(TPROG1): $(TPROG1).o $(LIB) $(CC) $(CFLAGS) -o $(TPROG1) $(TPROG1).o $(LIB) $(ZLIB) ../lib/libres+log.a $(LIB): $(PO) rm -f $(LIB) ar qc $(LIB) $(PO) ranlib $(LIB) .c.o: $(CC) -c $(DEFS) $(CFLAGS) $(ZDEFS) $< clean: rm -f *.log *.[oa] $(TPROG1) $(TPROG2) core mon.out gmon.out errlist *~ depend: depend2 depend1: sed '/^#Depend/q' Makefile.tmp $(CPP) $(DEFS) -M $(CFILES) >>Makefile.tmp mv -f Makefile.tmp Makefile depend2: $(CPP) $(DEFS) -M $(CFILES) >.depend #GNU make style depend ifeq (.depend,$(wildcard .depend)) include .depend endif #Depend --- DOT NOT DELETE THIS LINE