From 9d137b7976caa5176ac270bfee2bb6b57668cd03 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 10 Dec 2015 16:20:04 +0100 Subject: mostly splitting the source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- mk/lang-c.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mk/lang-c.mk') diff --git a/mk/lang-c.mk b/mk/lang-c.mk index a8f9896..5d952b6 100644 --- a/mk/lang-c.mk +++ b/mk/lang-c.mk @@ -153,7 +153,7 @@ aux/%.o: $(v)src/%.c $(foreach H,$(__H),$(v)$(H)) @$(ECHO_EMPTY) # Link object files into a command. -# Dependencies are declared below.. +# Dependencies are declared below. bin/%: @$(PRINTF_INFO) '\e[00;01;31mLD\e[34m %s\e[00;32m$A\n' "$@" @$(MKDIR) -p bin @@ -161,8 +161,11 @@ bin/%: @$(ECHO_EMPTY) # Dependencies for the rule above. -$(foreach B,$(_BIN),$(foreach O,$(_OBJ_$(B)),bin/$(B): aux/$(O).o\ -)) +include aux/lang-c.mk +aux/lang-c.mk: Makefile + @$(MKDIR) -p aux + @$(ECHO) > aux/lang-c.mk + @$(foreach B,$(_BIN),$(ECHO) bin/$(B): $(foreach O,$(_OBJ_$(B)),aux/$(O).o) >> aux/lang-c.mk) # INSTALL RULES: -- cgit v1.2.3-70-g09d2