]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: add an EXTRA_OBJS variable to help build optional code
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Jan 2019 09:01:03 +0000 (10:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Jan 2019 09:01:03 +0000 (10:01 +0100)
This variable will be useful to build experimental autonomous code like
new muxes without having to patch the makefile.

Makefile

index cc29b1aae4e3aaf483a8845b7638e83576e0c2f8..6e77b0734fb5f62e527ea925f41e9d6dd6e4012d 100644 (file)
--- 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