X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2FMakefile;h=94db63515872442321f3efad8957eb9398bb9bdc;hb=a02c4cf957603c707fe9f4fde94a468f1d030dfb;hp=b086e0eb2d0e8c68d71c69a4ea852869cc06bfe8;hpb=fce9be55596777837da1aa577ae66c193f80ff48;p=idzebra-moved-to-github.git diff --git a/util/Makefile b/util/Makefile index b086e0e..94db635 100644 --- a/util/Makefile +++ b/util/Makefile @@ -1,12 +1,12 @@ # 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.16 1995-01-24 16:01:50 adam Exp $ SHELL=/bin/sh INCLUDE=-I../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 @@ -14,6 +14,8 @@ CPP=cc -E all: $(LIB) +alll: opt-test res-test all + opt-test: opt-test.o $(LIB) $(CC) -o opt-test opt-test.o $(LIB) @@ -31,9 +33,19 @@ $(LIB): $(PO) clean: rm -f *.[oa] opt-test res-test core mon.out gmon.out errlist -dep depend: - $(CPP) $(INCLUDE) -M *.c >.depend +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