From 6fc0b0e3b4795daa0f90e3b2f4d9c5a954fb016a Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sun, 15 Dec 2013 21:30:39 +0100 Subject: [PATCH] only use -M when cf_cctype==gcc --- configure | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 40dd588..56f1233 100755 --- a/configure +++ b/configure @@ -260,12 +260,17 @@ print_targets() { local c_src="${cf_dir}/${obj%.o}.c" local d_inc="${obj}.d" echo "${obj}: ${c_src}" - echo $'\t'"\$(CC) \$(CFLAGS) \$(CPPFLAGS) -c -o \$@ \"${c_src}\" -MMD -MF \"${d_inc}\" -MT \$@" + printf '\t$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ "%s"' "${c_src}" + if [[ $cf_cctype == gcc ]]; then + printf ' -MMD -MF "%s" -MT $@\n' "${d_inc}" + else + echo + fi done for exe in "${executables[@]}"; do echo "\$(${exe}): \$(${exe}_OBJ)" - echo $'\t'"\$(CC) \$(LDFLAGS) -o \$(${exe}) \$(${exe}_OBJ) \$(LIBS)" + printf '\t$(CC) $(LDFLAGS) -o $(%s) $(%s_OBJ) $(LIBS)\n' "${exe}" "${exe}" done } -- 2.39.2