add SSLDBGLVL build option
This commit is contained in:
parent
31f573cca1
commit
bef07b60b3
5
Makefile
5
Makefile
|
|
@ -22,14 +22,15 @@ CPPOBJ := $(notdir $(CPPSRC:%.cpp=%.o))
|
|||
DESTDIR := /usr/local
|
||||
STATIC := 1
|
||||
BUILD := release
|
||||
SSLDBGLVL := 0
|
||||
|
||||
EXECOUT := pcloudcc
|
||||
LIBOUT := libpcloudcc_lib.so
|
||||
|
||||
# Build type specific flags
|
||||
ifeq ($(BUILD), debug)
|
||||
CFLAGS += -g -O0 -DDEBUG -Wall -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -D_GNU_SOURCE
|
||||
CXXFLAGS += -g -O0 -DDEBUG -Wall -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -D_GNU_SOURCE
|
||||
CFLAGS += -g -O0 -DDEBUG -Wall -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -D_GNU_SOURCE -DPSYNC_SSL_DEBUG_LEVEL=$(SSLDBGLVL)
|
||||
CXXFLAGS += -g -O0 -DDEBUG -Wall -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -D_GNU_SOURCE -DPSYNC_SSL_DEBUG_LEVEL=$(SSLDBGLVL)
|
||||
else ifeq ($(BUILD), release)
|
||||
CFLAGS += -O2 -DNDEBUG -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -D_GNU_SOURCE
|
||||
CXXFLAGS += -O2 -DNDEBUG -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -D_GNU_SOURCE
|
||||
|
|
|
|||
|
|
@ -32,4 +32,5 @@ make STATIC=0 # dynamically link libpcloudcc_lib.so. (default: 1)
|
|||
make SCAN=1 # run code analysis; recommend CC=clang and CXX=clang++. (default: 0)
|
||||
make CC=clang CXX=clang++ # use clang instead of gcc (default: gcc,g++)
|
||||
make DESTDIR=/prefix # installation prefix (default: /usr/local/bin)
|
||||
make SSLDBGLVL=0 # mbedtls debug level (range: 0-5, default: 0)
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue