X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isam%2FMakefile;h=21fa8c99e280453ea9f4c49ce8b5901eb2d1fc78;hb=7cf4e149027f602723f729b8a3b8601833232021;hp=dd4180b726ccabd69f6c9acc9a6d0d1d6d6ecaa5;hpb=8fa8b7c5d10dd87654e5c219cceebe1a9664544a;p=idzebra-moved-to-github.git diff --git a/isam/Makefile b/isam/Makefile index dd4180b..21fa8c9 100644 --- a/isam/Makefile +++ b/isam/Makefile @@ -1,24 +1,35 @@ +# Copyright (C) 1994, Index Data I/S +# All rights reserved. +# Sebastian Hammer, Adam Dickmeiss +# $Id: Makefile,v 1.20 1996-10-29 13:56:51 adam Exp $ + SHELL=/bin/sh -INCLUDE=-I../include -CFLAGS=-g -Wall -pedantic +RANLIB=ranlib + +YAZLIB=-lyaz +YAZINC= + +INCLUDE=-I../include $(YAZINC) 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/zebrautl.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/zebrautl.a $(YAZLIB) issh: issh.c $(LIB) - $(CC) -g -o issh -I../include issh.c \ - ../lib/isam.a ../lib/bfile.a ../lib/util.a + $(CC) -g -o issh $(INCLUDE) issh.c \ + ../lib/isam.a ../lib/bfile.a ../lib/zebrautl.a $(YAZLIB) #$(TPROG): $(TPROG).o $(LIB) # $(CC) -o $(TPROG) $(TPROG).o $(LIB) @@ -26,24 +37,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