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.
This commit is contained in:
Willy Tarreau 2019-01-10 10:01:03 +01:00
parent f77a158c87
commit ada5d09142
1 changed files with 6 additions and 0 deletions

View File

@ -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