-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Makefile: move SSL options into a block and refine rules #997
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Makefile: move SSL options into a block and refine rules #997
Conversation
pizhenwei
commented
Oct 11, 2021
•
edited
Loading
edited
@itamarhaber Hi, I closed the original PR , and create a new PR against hiredis as you suggested. |
Thanks - the hiredis maintainers should pick it up from here. |
Makefile
Outdated
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not') | ||
|
||
# Deps (use make dep to generate this) | ||
alloc.o: alloc.c fmacros.h alloc.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will need to be moved below the all:
target since right now running make without args only builds alloc.o
Hi, thanks for the PR. If you rebase your branch against master (and move the deps targets) I will test and get this merged. |
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>
Force updated, thanks for your suggestion. |
Looks like this breaks the tests in Windows, because it's unconditionally adding This small modification on my fork seems to solve the problem. If that looks OK to you I can include the patch when I merge. |
Thanks! |
Merged, thanks! |