[PATCH 11/13] build: rules.mk: Fix HOST_MAKE_TARGET rule

Cyril Hrubis <[email protected]>
Newsgroups gmane.linux.ltp
Message-ID <[email protected]>
The rule was written with $< which means that the additional C files
were not picked for compilation. Correct it to $^ instead.

Signed-off-by: Cyril Hrubis <[email protected]>
---
 include/mk/rules.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/mk/rules.mk b/include/mk/rules.mk
index c7da6d37f..2c15c4af1 100644
--- a/include/mk/rules.mk
+++ b/include/mk/rules.mk
@@ -35,9 +35,9 @@ endif
 
 $(HOST_MAKE_TARGETS): %: %.c
 ifdef VERBOSE
-	$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $< $(HOST_LDLIBS) -o $@
+	$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $^ $(HOST_LDLIBS) -o $@
 else
-	@$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $< $(HOST_LDLIBS) -o $@
+	@$(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) $^ $(HOST_LDLIBS) -o $@
 	@echo HOSTCC $(target_rel_dir)$@
 endif
 
-- 
2.53.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.