@ -6,7 +6,12 @@
INSTALL_PATH ?= $( CURDIR)
INSTALL_PATH ?= $( CURDIR)
#-----------------------------------------------
#-----------------------------------------------
i f n e q ( $( MAKECMDGOALS ) , d b g )
OPT += -O2 -fno-omit-frame-pointer -momit-leaf-frame-pointer
e l s e
OPT += -fno-omit-frame-pointer -momit-leaf-frame-pointer
OPT += -fno-omit-frame-pointer -momit-leaf-frame-pointer
e n d i f
#-----------------------------------------------
#-----------------------------------------------
# detect what platform we're building on
# detect what platform we're building on
@ -133,10 +138,13 @@ $(SHARED3): $(LIBOBJECTS)
e n d i f # PLATFORM_SHARED_EXT
e n d i f # PLATFORM_SHARED_EXT
.PHONY : blackbox_crash_test check clean coverage crash_test ldb_tests \
release tags valgrind_check whitebox_crash_test format shared_lib all \
dbg
all : $( LIBRARY ) $( PROGRAMS )
all : $( LIBRARY ) $( PROGRAMS )
.PHONY : blackbox_crash_test check clean coverage crash_test ldb_tests \
dbg : $( PROGRAMS )
release tags valgrind_check whitebox_crash_test format shared_lib
# Will also generate shared libraries.
# Will also generate shared libraries.
release :
release :
@ -150,7 +158,7 @@ coverage:
# Delete intermediate files
# Delete intermediate files
find . -type f -regex ".*\.\(\(gcda\)\|\(gcno\)\)" -exec rm { } \;
find . -type f -regex ".*\.\(\(gcda\)\|\(gcno\)\)" -exec rm { } \;
check : all $( PROGRAMS ) $( TESTS ) $( TOOLS )
check : $( PROGRAMS ) $( TESTS ) $( TOOLS )
for t in $( TESTS) ; do echo " ***** Running $$ t " ; ./$$ t || exit 1; done
for t in $( TESTS) ; do echo " ***** Running $$ t " ; ./$$ t || exit 1; done
python tools/ldb_test.py
python tools/ldb_test.py
@ -343,8 +351,8 @@ $(MEMENVLIBRARY) : $(MEMENVOBJECTS)
rm -f $@
rm -f $@
$( AR) -rs $@ $( MEMENVOBJECTS)
$( AR) -rs $@ $( MEMENVOBJECTS)
memenv_test : helpers /memenv /memenv_test .o $( MEMENVLIBRARY ) $( LIBRARY ) $( TESTHARNESS )
memenv_test : helpers /memenv /memenv_test .o $( MEMENVOBJECTS ) $( LIBOBJECTS ) $( TESTHARNESS )
$( CXX) helpers/memenv/memenv_test.o $( MEMENVLIBRARY) $( LIBRARY ) $( TESTHARNESS) $( EXEC_LDFLAGS) -o $@ $( LDFLAGS) $( COVERAGEFLAGS)
$( CXX) helpers/memenv/memenv_test.o $( MEMENVOBJECTS) $( LIBOBJECTS ) $( TESTHARNESS) $( EXEC_LDFLAGS) -o $@ $( LDFLAGS) $( COVERAGEFLAGS)
manual_compaction_test : util /manual_compaction_test .o $( LIBOBJECTS ) $( TESTHARNESS )
manual_compaction_test : util /manual_compaction_test .o $( LIBOBJECTS ) $( TESTHARNESS )
$( CXX) util/manual_compaction_test.o $( LIBOBJECTS) $( TESTHARNESS) $( EXEC_LDFLAGS) -o $@ $( LDFLAGS) $( COVERAGEFLAGS)
$( CXX) util/manual_compaction_test.o $( LIBOBJECTS) $( TESTHARNESS) $( EXEC_LDFLAGS) -o $@ $( LDFLAGS) $( COVERAGEFLAGS)