X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2FMakefile;h=76440920bf0fbfd0f2038cd13aa83aff39a76a1f;hb=59fa6cc26da2df4976d18dd6cd33412e3609e3d6;hp=ede37d568d934b6cb07e0c2c5780b546431c8ed5;hpb=a57bdec6c84c3dcd2b657f2e2fd14b67be1b5881;p=idzebra-moved-to-github.git diff --git a/rset/Makefile b/rset/Makefile index ede37d5..7644092 100644 --- a/rset/Makefile +++ b/rset/Makefile @@ -1,26 +1,28 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.1 1994-11-03 14:13:29 quinn Exp $ +# $Id: Makefile,v 1.9 1995-11-20 11:58:10 adam Exp $ SHELL=/bin/sh -INCLUDE=-I../include -CFLAGS=-g -Wall -pedantic +RANLIB=ranlib + +YAZLIB=-lyaz +YAZINC= + +INCLUDE=-I../include $(YAZINC) +#CFLAGS=-g -Wall -pedantic -ansi DEFS=$(INCLUDE) LIB=../lib/rset.a PROG= -PO= -CPP=cc -E - -all: $(PROG) $(LIB) - -$(PROG): $(PROG).o - $(CC) -o $(PROG) $(INCLUDE) $(CFLAGS) $(PROG).o $(LIB) +PO=rset.o rstemp.o rsisam.o rsnull.o rsbool.o rsrel.o +CPP=$(CC) -E +all: $(LIB) $(LIB): $(PO) - ar aq $(LIB) $(PO) - ranlib $(LIB) + rm -f $(LIB) + ar qc $(LIB) $(PO) + $(RANLIB) $(LIB) .c.o: $(CC) -c $(DEFS) $(CFLAGS) $< @@ -31,13 +33,12 @@ clean: 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