X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2FMakefile;h=cc3cd37c5ad234dc17c82e10ea6a80f45451d5ef;hb=b7918920dd34b8c4c93e8d3095203e236523f453;hp=b086e0eb2d0e8c68d71c69a4ea852869cc06bfe8;hpb=fce9be55596777837da1aa577ae66c193f80ff48;p=idzebra-moved-to-github.git diff --git a/util/Makefile b/util/Makefile index b086e0e..cc3cd37 100644 --- a/util/Makefile +++ b/util/Makefile @@ -1,39 +1,50 @@ # Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss -# $Id: Makefile,v 1.11 1994-09-02 14:56:06 quinn Exp $ +# $Id: Makefile,v 1.20 1995-11-01 13:58:30 quinn Exp $ SHELL=/bin/sh -INCLUDE=-I../include +RANLIB=ranlib +YAZ=../../yaz +YAZLIB=$(YAZ)/lib/libyaz.a +INCLUDE=-I../include -I$(YAZ)/include TPROG=opt-test -CFLAGS=-g -Wall -pedantic +#CFLAGS=-g -Wall -pedantic -ansi DEFS=$(INCLUDE) -LIB=../lib/util.a -PO = options.o xmalloc.o log.o res.o alexpath.o common.o -CPP=cc -E +CPP=$(CC) -E +LIB=../lib/alexutil.a +PO = res.o alexpath.o common.o all: $(LIB) -opt-test: opt-test.o $(LIB) - $(CC) -o opt-test opt-test.o $(LIB) +alll: res-test all -res-test: res-test.o $(LIB) - $(CC) -o res-test res-test.o $(LIB) +res-test: res-test.o $(LIB) $(YAZLIB) + $(CC) -o res-test res-test.o $(LIB) $(YAZLIB) $(LIB): $(PO) rm -f $(LIB) ar qc $(LIB) $(PO) - ranlib $(LIB) + $(RANLIB) $(LIB) .c.o: $(CC) -c $(DEFS) $(CFLAGS) $< clean: - rm -f *.[oa] opt-test res-test core mon.out gmon.out errlist + rm -f *.[oa] res-test core mon.out gmon.out errlist -dep depend: - $(CPP) $(INCLUDE) -M *.c >.depend +depend: depend2 + +depend1: + sed '/^#Depend/q' Makefile.tmp + $(CPP) $(DEFS) -M *.c >>Makefile.tmp + mv -f Makefile.tmp Makefile + +depend2: + $(CPP) $(DEFS) -M *.c >.depend ifeq (.depend,$(wildcard .depend)) include .depend endif + +#Depend --- DOT NOT DELETE THIS LINE