[build] Fix static build by including contrib/Makefile early (#100)

Closes: #99
This commit is contained in:
Dennis Schridde 2018-06-13 09:41:53 +02:00 committed by Joe Thornber
parent 4b08c7793d
commit bc7864dae8

View File

@ -29,6 +29,8 @@ endif
.PHONY: all
all: $(PROGRAMS) $(TESTLIBS)
include contrib/Makefile
SOURCE=\
base/output_file_requirements.cc \
base/application.cc \
@ -140,10 +142,8 @@ CXX:=@CXX@
STRIP:=@STRIP@
OBJECTS:=$(subst .cc,.o,$(SOURCE))
# FIXME EMITTERS += $(PLUGIN_LIBS) doesn't work, probably because it's empty at
# the time of use?
ifeq ("@STATIC@", "yes")
EMITTERS += contrib/*.a
EMITTERS += $(PLUGIN_LIBS)
endif
TOP_DIR:=@top_srcdir@
@ -327,8 +327,6 @@ endif
.PHONY: install
include contrib/Makefile
ifeq ("@TESTING@", "yes")
include unit-tests/Makefile