From 46e872a090f0bacc2bbe9b8a6f04dd70667b40c2 Mon Sep 17 00:00:00 2001 From: Andriy Senkovych Date: Mon, 11 Nov 2013 14:49:46 +0200 Subject: [PATCH] Allow setting CFLAGS and LDFLAGS from environment variables --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ae56947..910fd38 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ JANSSON_OBJ=jansson/src/dump.o jansson/src/error.o jansson/src/hashtable.o janss FORMAT_OBJS=formats/json.o formats/raw.o formats/common.o formats/custom-type.o HTTP_PARSER_OBJS=http-parser/http_parser.o -CFLAGS=-O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser -LDFLAGS=-levent -pthread +CFLAGS ?= -O0 -ggdb -Wall -Wextra -I. -Ijansson/src -Ihttp-parser +LDFLAGS ?= -levent -pthread # check for MessagePack MSGPACK_LIB=$(shell ls /usr/lib/libmsgpack.so 2>/dev/null)