X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=retrieval%2FMakefile;fp=retrieval%2FMakefile;h=84f90a6e28de421711f97fcf43b62a27becfc996;hp=0000000000000000000000000000000000000000;hb=cea212fba995de3fa0d6d6723d828f6fd7ca31df;hpb=b6a465d196c8738156814a9fb3ba9e2450dd1be4 diff --git a/retrieval/Makefile b/retrieval/Makefile new file mode 100644 index 0000000..84f90a6 --- /dev/null +++ b/retrieval/Makefile @@ -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 + $(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