From: Willy Tarreau Date: Thu, 10 Jan 2019 09:01:03 +0000 (+0100) Subject: BUILD: makefile: add an EXTRA_OBJS variable to help build optional code X-Git-Tag: v2.0-dev1~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada5d091424a18208525ece0f590092c25bbde0c;p=thirdparty%2Fhaproxy.git BUILD: makefile: add an EXTRA_OBJS variable to help build optional code This variable will be useful to build experimental autonomous code like new muxes without having to patch the makefile. --- diff --git a/Makefile b/Makefile index cc29b1aae4..6e77b0734f 100644 --- a/Makefile +++ b/Makefile @@ -489,6 +489,9 @@ OPTIONS_CFLAGS = OPTIONS_LDFLAGS = OPTIONS_OBJS = +#### Extra objects to be built and integrated (used only for development) +EXTRA_OBJS = + # This variable collects all USE_* values except those set to "implicit". This # is used to report a list of all flags which were used to build this version. # Do not assign anything to it. @@ -958,6 +961,9 @@ ifneq ($(TRACE),) OBJS += src/trace.o endif +ifneq ($(EXTRA_OBJS),) +OBJS += $(EXTRA_OBJS) +endif # Not used right now LIB_EBTREE = $(EBTREE_DIR)/libebtree.a