summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
authorzhenwei pi <pizhenwei@bytedance.com>2021-12-23 17:23:24 +0800
committerzhenwei pi <pizhenwei@bytedance.com>2021-12-23 17:26:35 +0800
commitf74b08182c8fafafe706c8f5f4f2fb4a35028c8f (patch)
treee2435ca623869266bde39e0ed50f5e7148fbaa2f /hiredis.h
parentf347743b7ded3bc7768c36126257bf3ae8c4e045 (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 'hiredis.h')
0 files changed, 0 insertions, 0 deletions