JSONRPC Changed Makefile option location

This commit is contained in:
Raphaël Monrouzeau 2016-07-12 13:33:21 +02:00
parent 32ac27d4c3
commit cd9ce057ea
1 changed files with 9 additions and 6 deletions

View File

@ -30,15 +30,12 @@ endif
ifneq ("$(NOHTTP)", "")
CFLAGS+=-DKORE_NO_HTTP
ifneq ("$(JSONRPC)", "")
$(error "JSONRPC support needs HTTP")
endif
else
S_SRC+= src/auth.c src/accesslog.c src/http.c \
src/validator.c src/websocket.c
ifneq ("$(JSONRPC)", "")
S_SRC+=src/jsonrpc.c
LDFLAGS+=-lyajl
CFLAGS+=-DKORE_USE_JSONRPC
endif
endif
ifneq ("$(NOTLS)", "")
@ -63,6 +60,12 @@ ifneq ("$(TASKS)", "")
CFLAGS+=-DKORE_USE_TASKS
endif
ifneq ("$(JSONRPC)", "")
S_SRC+=src/jsonrpc.c
LDFLAGS+=-lyajl
CFLAGS+=-DKORE_USE_JSONRPC
endif
OSNAME=$(shell uname -s | sed -e 's/[-_].*//g' | tr A-Z a-z)
ifeq ("$(OSNAME)", "darwin")
CFLAGS+=-I/opt/local/include/ -I/usr/local/opt/openssl/include