mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
JSONRPC Changed Makefile option location
This commit is contained in:
parent
32ac27d4c3
commit
cd9ce057ea
15
Makefile
15
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user