add osflags for tests

This commit is contained in:
Erik Ekman 2009-01-06 22:05:15 +00:00 committed by Erik Ekman
parent d4fe412b42
commit 3ba81894fc

View file

@ -6,8 +6,8 @@ SRCOBJS = ../src/base32.o ../src/base64.o ../src/read.o ../src/dns.o ../src/enc
OS = `uname | tr "a-z" "A-Z"`
CHECK_PATH = /usr/local
LDFLAGS += -L${CHECK_PATH}/lib -lcheck
CFLAGS += -g -Wall -D$(OS) -I../src -I${CHECK_PATH}/include -pedantic
LDFLAGS = -L$(CHECK_PATH)/lib -lcheck `../src/osflags link`
CFLAGS = -g -Wall -D$(OS) -I../src -I$(CHECK_PATH)/include -pedantic `../src/osflags cflags`
all: $(TEST)
@LD_LIBRARY_PATH=${CHECK_PATH}/lib ./$(TEST)