summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorIgor Canadi <icanadi@fb.com>2014-05-07 16:51:30 -0700
committerIgor Canadi <icanadi@fb.com>2014-05-07 16:51:30 -0700
commit313b2e5da1112a1fda0243efdcf29d1538038a40 (patch)
treec40b260c323754b89564614ae0b8630ad4c293c4 /Makefile
parent9efbd85ac9691357355660c7fdf7e5001befbb6b (diff)
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 2 insertions, 8 deletions
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