From 313b2e5da1112a1fda0243efdcf29d1538038a40 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Wed, 7 May 2014 16:51:30 -0700 Subject: Better INSTALL.md and Makefile rules Summary: We have a lot of problems with gflags. However, when compiling rocksdb static library, we don't need gflags dependency. Reorganize INSTALL.md such that first-time customers don't need any dependency installed to actually build rocksdb static library. Test Plan: none Reviewers: dhruba, haobo Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D18501 --- Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 93217fc98..95a94810d 100644 --- a/Makefile +++ b/Makefile @@ -14,12 +14,10 @@ else endif ifeq ($(MAKECMDGOALS),shared_lib) -PLATFORM_SHARED_LDFLAGS=-fPIC OPT += -DNDEBUG endif ifeq ($(MAKECMDGOALS),static_lib) -PLATFORM_SHARED_LDFLAGS=-fPIC OPT += -DNDEBUG endif @@ -181,10 +179,6 @@ release: $(MAKE) clean OPT="-DNDEBUG -O2" $(MAKE) static_lib $(PROGRAMS) -j32 -release_shared_lib: - $(MAKE) clean - OPT="-DNDEBUG -O2" $(MAKE) shared_lib -j32 - coverage: $(MAKE) clean COVERAGEFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS+="-lgcov" $(MAKE) all check -j32 @@ -192,11 +186,11 @@ coverage: # Delete intermediate files find . -type f -regex ".*\.\(\(gcda\)\|\(gcno\)\)" -exec rm {} \; -check: $(PROGRAMS) $(TESTS) $(TOOLS) +check: $(TESTS) ldb for t in $(TESTS); do echo "***** Running $$t"; ./$$t || exit 1; done python tools/ldb_test.py -ldb_tests: all $(PROGRAMS) $(TESTS) $(TOOLS) +ldb_tests: ldb python tools/ldb_test.py crash_test: whitebox_crash_test blackbox_crash_test -- cgit v1.2.3-70-g09d2