Zdist layer moved to new sub directory.
[egate.git] / zlayer-zdist / Makefile
diff --git a/zlayer-zdist/Makefile b/zlayer-zdist/Makefile
new file mode 100644 (file)
index 0000000..ae4b383
--- /dev/null
@@ -0,0 +1,48 @@
+# Makefile for Email gateway Z39.50 interface
+# Europagate, 1995
+#
+# Makefile for the Zdist interface
+# $Id: Makefile,v 1.1 1995/07/03 08:21:42 adam Exp $
+# 
+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)
+LIB=../lib/libzass.a
+PO=zaccess-yaz.o
+CPP=$(CC) -E
+DEFS=$(INCLUDE)
+
+all: $(LIB)
+
+$(LIB): $(PO)
+       rm -f $(LIB)
+       ar qc $(LIB) $(PO)
+       ranlib $(LIB)
+
+.c.o:
+       $(CC) -c $(DEFS) $(CFLAGS) $(ZDEFS) $<
+
+clean:
+       rm -f *.log *.[oa] core mon.out gmon.out errlist *~
+
+depend: depend2
+
+depend1:
+       sed '/^#Depend/q' <Makefile >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