changeset 424:aacd4ad3c4ff

Fix endianchk build when Makefile.inc is being included from parent project and called from other directory.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 09 Mar 2016 22:42:30 +0200
parents 83fe3a3dcb20
children c3f474e59bc1
files Makefile.inc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.inc	Wed Mar 09 21:23:42 2016 +0200
+++ b/Makefile.inc	Wed Mar 09 22:42:30 2016 +0200
@@ -40,9 +40,9 @@
 ##
 ## Generate endian check and config.h
 ##
-$(ENDIANCHK_BIN): $(THLIBS)endianchk.c
+$(ENDIANCHK_BIN): $(THLIBS)endianchk.c $(BINPATH) $(OBJPATH)
 	@echo " CC $@"
-	@$(CC) $(CFLAGS) -o $@ $+
+	@$(CC) $(CFLAGS) -o $@ $<
 
 config.h: $(ENDIANCHK_BIN)
 	$(ENDIANCHK_BIN) > $@