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