From 3cb5a6f58a56ca01547558e7b4543bf98fc25e1b Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 24 Oct 1999 17:13:15 +0000 Subject: Test architecture changed [originally from svn r251] --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 89843cc..8253d03 100644 --- a/Makefile +++ b/Makefile @@ -6,8 +6,12 @@ # `make BUILDDIR=foo' from top level will build in directory foo ifndef REALBUILD ifndef BUILDDIR +ifdef TEST +BUILDDIR := test +else BUILDDIR := build endif +endif all: @test -d $(BUILDDIR) || mkdir $(BUILDDIR) @make -C $(BUILDDIR) -f ../Makefile REALBUILD=yes @@ -20,8 +24,9 @@ else CFLAGS += -Wall -W -ifdef LOGALLOC +ifdef TEST CFLAGS += -DLOGALLOC +LIBS += -lefence endif ifdef RELEASE @@ -51,7 +56,7 @@ OBJECTS := $(addsuffix .o,$(MODULES)) DEPS := $(addsuffix .d,$(MODULES)) buttress: $(OBJECTS) - $(CC) $(LFLAGS) -o buttress $(OBJECTS) + $(CC) $(LFLAGS) -o buttress $(OBJECTS) $(LIBS) %.o: $(SRC)%.c $(CC) $(CFLAGS) -MD -c $< -- cgit v1.1