From: Miroslav Lichvar Date: Thu, 13 Sep 2018 08:24:06 +0000 (+0200) Subject: test: include all objects in prerequisites of unit tests X-Git-Tag: 3.4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbcb1b9b0bd48f2f171bf301652c0032d7c612c3;p=thirdparty%2Fchrony.git test: include all objects in prerequisites of unit tests --- 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 $<