From dbcb1b9b0bd48f2f171bf301652c0032d7c612c3 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 13 Sep 2018 10:24:06 +0200 Subject: [PATCH] test: include all objects in prerequisites of unit tests --- test/unit/Makefile.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/unit/Makefile.in b/test/unit/Makefile.in index 61ab7417..333365ac 100644 --- a/test/unit/Makefile.in +++ b/test/unit/Makefile.in @@ -16,8 +16,10 @@ CHRONYD_OBJS := $(patsubst %.o,$(CHRONY_SRCDIR)/%.o,$(filter-out main.o,\ all: $(TESTS) -%.test: %.o $(SHARED_OBJS) - $(CC) $(CFLAGS) -o $@ $^ $(CHRONYD_OBJS:%/$*.o=) $(LDFLAGS) +$(CHRONY_OBJS): ; + +%.test: %.o $(SHARED_OBJS) $(CHRONYD_OBJS) + $(CC) $(CFLAGS) -o $@ $(filter-out $(CHRONY_SRCDIR)/$<,$^) $(LDFLAGS) %.o: %.c $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -- 2.47.2