Pass preprocessor macros to the compiler invocation.

master
Andrii Senkovych 6 years ago committed by Nicolas Favre-Felix
parent 00f6c3ce86
commit 524f37b59f

@ -8,6 +8,9 @@ HTTP_PARSER_OBJS?=src/http-parser/http_parser.o
CFLAGS ?= -O3 -Wall -Wextra -Isrc -Isrc/jansson/src -Isrc/http-parser -MD CFLAGS ?= -O3 -Wall -Wextra -Isrc -Isrc/jansson/src -Isrc/http-parser -MD
LDFLAGS ?= -levent -pthread LDFLAGS ?= -levent -pthread
# Pass preprocessor macros to the compile invocation
CFLAGS += $(CPPFLAGS)
# check for MessagePack # check for MessagePack
MSGPACK_LIB=$(shell ls /usr/lib/libmsgpack.so 2>/dev/null) MSGPACK_LIB=$(shell ls /usr/lib/libmsgpack.so 2>/dev/null)
ifneq ($(strip $(MSGPACK_LIB)),) ifneq ($(strip $(MSGPACK_LIB)),)

Loading…
Cancel
Save