Skip to content

Commit f131d4c

Browse files
committed
Add a make target for shared library
Summary: Previous we made `make release` also compile shared library. However it takes a long time to complete. To make our development process more efficient. I added a new make target shared_lib. User can of course run `make <library_name>` for direct compilation. However the <library_name> changed under certain condition. Thus we need `make shared_lib` to get rid of the memorization from users' side. Test Plan: make shared_lib Reviewers: igor, sdong, haobo, dhruba Reviewed By: igor CC: leveldb Differential Revision: https://reviews.facebook.net/D15309
1 parent e832e72 commit f131d4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,12 @@ endif # PLATFORM_SHARED_EXT
135135
all: $(LIBRARY) $(PROGRAMS)
136136

137137
.PHONY: blackbox_crash_test check clean coverage crash_test ldb_tests \
138-
release tags valgrind_check whitebox_crash_test format
138+
release tags valgrind_check whitebox_crash_test format shared_lib
139139

140140
# Will also generate shared libraries.
141141
release:
142142
$(MAKE) clean
143143
OPT=-DNDEBUG $(MAKE) all -j32
144-
OPT=-DNDEBUG $(MAKE) $(SHARED) -j32
145144

146145
coverage:
147146
$(MAKE) clean
@@ -201,6 +200,8 @@ tags:
201200
format:
202201
build_tools/format-diff.sh
203202

203+
shared_lib: $(SHARED)
204+
204205
# ---------------------------------------------------------------------------
205206
# Unit tests and tools
206207
# ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)