From c164b8ea5446b50d9f28bb7a322dfa1db91c2b32 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Tue, 6 Jan 2009 13:41:45 +0000 Subject: [PATCH] allow custom check path --- tests/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index ef45783..dacdc00 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -5,11 +5,12 @@ SRCOBJS = ../src/base32.o ../src/base64.o ../src/read.o ../src/dns.o ../src/enc OS = `uname | tr "a-z" "A-Z"` -LDFLAGS = -L/usr/local/lib -lcheck -CFLAGS = -g -Wall -D$(OS) -I../src -I/usr/local/include -pedantic +CHECK_PATH = /usr/local +LDFLAGS += -L${CHECK_PATH}/lib -lcheck +CFLAGS += -g -Wall -D$(OS) -I../src -I${CHECK_PATH}/include -pedantic all: $(TEST) - @./$(TEST) + @LD_LIBRARY_PATH=${CHECK_PATH}/lib ./$(TEST) $(TEST): $(OBJS) $(SRCOBJS) @echo LD $(TEST)