From: Wolfgang Bumiller Date: Sun, 15 Dec 2013 20:30:39 +0000 (+0100) Subject: only use -M when cf_cctype==gcc X-Git-Url: https://git.xonotic.org/?a=commitdiff_plain;h=6fc0b0e3b4795daa0f90e3b2f4d9c5a954fb016a;p=xonotic%2Fgmqcc.git only use -M when cf_cctype==gcc --- 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 }