@ -32,6 +32,11 @@ ifeq ($(COVERAGE),1)
COVFLAGS = --coverage
COVFLAGS = --coverage
e n d i f
e n d i f
i f e q ( $( PIE ) , 1 )
PIE_CFLAGS = -fPIE -fPIC
PIE_LDFLAGS = -pie
e n d i f
PYTEST := $( shell command -v pytest 2> /dev/null)
PYTEST := $( shell command -v pytest 2> /dev/null)
# This is where we add new features as bitcoin adds them.
# This is where we add new features as bitcoin adds them.
@ -152,9 +157,9 @@ ALL_PROGRAMS =
CPPFLAGS = -DBINTOPKGLIBEXECDIR= '"' $( shell sh tools/rel.sh $( bindir) $( pkglibexecdir) ) '"'
CPPFLAGS = -DBINTOPKGLIBEXECDIR= '"' $( shell sh tools/rel.sh $( bindir) $( pkglibexecdir) ) '"'
CWARNFLAGS := -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition
CWARNFLAGS := -Werror -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition
CDEBUGFLAGS := -std= gnu11 -g -fstack-protector
CDEBUGFLAGS := -std= gnu11 -g -fstack-protector
CFLAGS = $( CPPFLAGS) $( CWARNFLAGS) $( CDEBUGFLAGS) -I $( CCANDIR) $( EXTERNAL_INCLUDE_FLAGS) -I . -I/usr/local/include $( FEATURES) $( COVFLAGS) $( DEV_CFLAGS) -DSHACHAIN_BITS= 48 -DJSMN_PARENT_LINKS
CFLAGS = $( CPPFLAGS) $( CWARNFLAGS) $( CDEBUGFLAGS) -I $( CCANDIR) $( EXTERNAL_INCLUDE_FLAGS) -I . -I/usr/local/include $( FEATURES) $( COVFLAGS) $( DEV_CFLAGS) -DSHACHAIN_BITS= 48 -DJSMN_PARENT_LINKS $( PIE_CFLAGS)
LDFLAGS = -L/usr/local/lib
LDFLAGS = -L/usr/local/lib $( PIE_LDFLAGS)
LDLIBS = -lm -lgmp -lsqlite3 $( COVFLAGS)
LDLIBS = -lm -lgmp -lsqlite3 $( COVFLAGS)
default : all -programs all -test -programs
default : all -programs all -test -programs