Added Retrieval (data management) functions en masse.
[yaz-moved-to-github.git] / retrieval / Makefile
diff --git a/retrieval/Makefile b/retrieval/Makefile
new file mode 100644 (file)
index 0000000..84f90a6
--- /dev/null
@@ -0,0 +1,46 @@
+# $Id: Makefile,v 1.1 1995-11-01 11:56:06 quinn Exp $
+
+SHELL=/bin/sh
+RANLIB=ranlib
+INCLUDE=-I../include -I.
+CFLAGS=-g -Wall -pedantic -ansi
+DEFS=$(INCLUDE)
+LIB=../lib/data1.a
+PO = d1_read.o d1_attset.o d1_tagset.o d1_absyn.o d1_grs.o d1_grs_key.o \
+       attribute.o d1_matchstr.o d1_sutrs.o d1_varset.o d1_espec.o \
+       d1_doespec.o d1_map.o d1_marc.o
+CPP=$(CC) -E
+
+all: $(LIB)
+
+tst: tst.c $(LIB)
+       $(CC) -g -o tst $(INCLUDE) tst.c \
+       ../lib/data1.a $(YAZ)/lib/libyaz.a
+
+$(LIB): $(PO)
+       rm -f $(LIB)
+       ar qc $(LIB) $(PO)
+       $(RANLIB) $(LIB)
+
+.c.o:
+       $(CC) -c $(DEFS) $(CFLAGS) $<
+
+clean:
+       rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist test isam-test issh
+
+depend: depend2
+
+depend1:
+       mv Makefile Makefile.tmp
+       sed '/^#Depend/q' <Makefile.tmp >Makefile
+       $(CPP) $(INCLUDE) -M *.c >>Makefile
+       -rm Makefile.tmp
+
+depend2:
+       $(CPP) $(INCLUDE) -M *.c >.depend       
+
+ifeq (.depend,$(wildcard .depend))
+include .depend
+endif
+
+#Depend --- DOT NOT DELETE THIS LINE