commit | 2e89dbb05e77989a23b3996753e0e87e82c6c009 | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Wed Mar 06 09:36:57 2019 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Mon Mar 11 21:07:07 2019 +0800 |
tree | 54b1bbc2d8ff4771972a97a61f7efd3766e9bcf8 | |
parent | 3a666ce074ecee7e92e424683fd7595c23b07b31 [diff] [blame] |
Makefiles: Allow bindings to be omitted from libmctp.a Some environments may want to only enable specific bindings. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/Makefile.inc b/Makefile.inc index 99edaac..98df834 100644 --- a/Makefile.inc +++ b/Makefile.inc
@@ -1,5 +1,8 @@ LIBMCTP_DIR ?= libmctp/ -LIBMCTP_OBJS = core.o alloc.o serial.o +LIBMCTP_OBJS = core.o alloc.o +LIBMCTP_BINDINGS ?= serial + +LIBMCTP_OBJS += $(LIBMCTP_BINDINGS:%=%.o) LIBMCTP = $(LIBMCTP_DIR)libmctp.a