If DEBUG is set in the environment, define KORE_DEBUG

This commit is contained in:
Thordur Bjornsson 2013-11-16 13:30:47 +01:00
parent f9cac98ab5
commit 302c3b6c9d
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ CFLAGS+=-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual
CFLAGS+=-Wsign-compare -Iincludes -g
LDFLAGS+=-rdynamic -lssl -lcrypto -lz
ifneq (, "$(DEBUG)")
CFLAGS+=-DKORE_DEBUG
endif
OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
ifeq ("$(OSNAME)", "darwin")
CFLAGS+=-I/opt/local/include/