X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isam%2FMakefile;h=a48d20a9782f1eabd9db778e1cd2c6a0bef1b014;hb=d4b2d9a55eff084aa7db77d1aa98e032f4c7659e;hp=dd4180b726ccabd69f6c9acc9a6d0d1d6d6ecaa5;hpb=8fa8b7c5d10dd87654e5c219cceebe1a9664544a;p=idzebra-moved-to-github.git diff --git a/isam/Makefile b/isam/Makefile index dd4180b..a48d20a 100644 --- a/isam/Makefile +++ b/isam/Makefile @@ -1,24 +1,34 @@ +# Copyright (C) 1994, Index Data I/S +# All rights reserved. +# Sebastian Hammer, Adam Dickmeiss +# $Id: Makefile,v 1.14 1995-10-30 14:10:55 adam Exp $ + SHELL=/bin/sh -INCLUDE=-I../include -CFLAGS=-g -Wall -pedantic +RANLIB=ranlib +YAZ=../../yaz +YAZLIB=$(YAZ)/lib/libyaz.a +INCLUDE=-I../include -I$(YAZ)/include +#CFLAGS=-g -Wall -pedantic -ansi DEFS=$(INCLUDE) LIB=../lib/isam.a PO = isam.o isutil.o rootblk.o memory.o physical.o -CPP=cc -E +CPP=$(CC) -E all: $(LIB) +alll: $(LIB) isam-test issh + test: test.c $(LIB) $(CC) -g -o test -I../include test.c \ - ../lib/isam.a ../lib/bfile.a ../lib/util.a + ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB) isam-test: isam-test.c $(LIB) $(CC) -g -o isam-test -I../include isam-test.c \ - ../lib/isam.a ../lib/bfile.a ../lib/util.a + ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB) issh: issh.c $(LIB) $(CC) -g -o issh -I../include issh.c \ - ../lib/isam.a ../lib/bfile.a ../lib/util.a + ../lib/isam.a ../lib/bfile.a ../lib/alexutil.a $(YAZLIB) #$(TPROG): $(TPROG).o $(LIB) # $(CC) -o $(TPROG) $(TPROG).o $(LIB) @@ -26,24 +36,23 @@ issh: issh.c $(LIB) $(LIB): $(PO) rm -f $(LIB) ar qc $(LIB) $(PO) - ranlib $(LIB) + $(RANLIB) $(LIB) .c.o: $(CC) -c $(DEFS) $(CFLAGS) $< clean: - rm -f *.[oa] $(TPROG) core mon.out gmon.out errlist isam-test issh + 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 + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile depend2: - $(CPP) $(INCLUDE) -M *.c >.depend + $(CPP) $(DEFS) -M *.c >.depend ifeq (.depend,$(wildcard .depend)) include .depend