# Makefile for Email gateway Z39.50 interface # Europagate, 1995 # # $Log: Makefile,v $ # 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 INCLUDE=-I. -I../include $(ZINC) #CFLAGS=-g -Wall -pedantic -ansi TPROG1=test LIB=../lib/libzass.a PO=zaccess.o CPP=$(CC) -E DEFS=$(INCLUDE) 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 *.c >>Makefile.tmp mv -f Makefile.tmp Makefile depend2: $(CPP) $(DEFS) -M *.c >.depend #GNU make style depend ifeq (.depend,$(wildcard .depend)) include .depend endif #Depend --- DOT NOT DELETE THIS LINE