From 9543c7406a554ce70a2c410e7c6b85c99217e415 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 28 Mar 2018 14:58:09 +0200 Subject: [PATCH] fix missing config.h include in build system --- lib/Makefile.inc | 4 ++-- tests/unit/Makefile.inc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Makefile.inc b/lib/Makefile.inc index 000c75b35..48f0c1d13 100644 --- a/lib/Makefile.inc +++ b/lib/Makefile.inc @@ -54,10 +54,10 @@ $(BUILDDIR)/include/villas/config.h: include/villas/config.h.in Makefile.config for PKG in $(call escape,$(LIB_PKGS)); do echo "#define WITH_$${PKG} 1" >> $@; done # Compile -$(BUILDDIR)/lib/%.o: lib/%.c | $$(dir $$@) +$(BUILDDIR)/lib/%.o: lib/%.c $(BUILDDIR)/include/villas/config.h | $$(dir $$@) $(CC) $(LIB_CFLAGS) -c $< -o $@ -lib: $(BUILDDIR)/include/villas/config.h $(patsubst %, lib%, $(SONAMES)) +lib: $(patsubst %, lib%, $(SONAMES)) install-lib: $(patsubst %, install-lib%, $(SONAMES)) diff --git a/tests/unit/Makefile.inc b/tests/unit/Makefile.inc index 2bc53e1c4..aa0acb9e7 100644 --- a/tests/unit/Makefile.inc +++ b/tests/unit/Makefile.inc @@ -33,7 +33,7 @@ run-unit-tests: tests $(BUILDDIR)/unit-tests # Compile -$(BUILDDIR)/tests/unit/%.o: tests/unit/%.c | $$(dir $$@) +$(BUILDDIR)/tests/unit/%.o: tests/unit/%.c $(BUILDDIR)/include/villas/config.h | $$(dir $$@) $(CC) $(TEST_CFLAGS) -c $< -o $@ # Link