diff options
author | zhenwei pi <pizhenwei@bytedance.com> | 2021-12-23 17:23:24 +0800 |
---|---|---|
committer | zhenwei pi <pizhenwei@bytedance.com> | 2021-12-23 17:26:35 +0800 |
commit | f74b08182c8fafafe706c8f5f4f2fb4a35028c8f (patch) | |
tree | e2435ca623869266bde39e0ed50f5e7148fbaa2f /test.sh | |
parent | f347743b7ded3bc7768c36126257bf3ae8c4e045 (diff) |
Makefile: move SSL options into a block and refine rules
Move SSL options into two blocks to make it easy to read:
1, first part: SSL variables part
1, second part: SSL building rules part
and change global rules to make it easy to maintain. For the further
step, it gets extensible to add another type.
New version of the library building rule:
static: $(STLIBNAME) $(SSL_STLIB)
dynamic: $(DYLIBNAME) $(SSL_DYLIB)
Compare with the orignal version:
dynamic: $(DYLIBNAME)
static: $(STLIBNAME)
ifeq ($(USE_SSL),1)
dynamic: $(SSL_DYLIBNAME)
static: $(SSL_STLIBNAME)
endif
If we want to add a new type(Ex, RDMA), for the new version, we can
do like this:
########### RDMA variables start ###############
.....
########### RDMA variables end ###############
static: $(STLIBNAME) $(SSL_STLIB) $(RDMA_STLIB)
dynamic: $(DYLIBNAME) $(SSL_DYLIB) $(RDMA_DYLIB)
########### RDMA building rules start ###############
.....
########### RDMA building rules end ###############
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Diffstat (limited to 'test.sh')
0 files changed, 0 insertions, 0 deletions