From 6f37b6c074422329c126e07b9d6dfdba45135176 Mon Sep 17 00:00:00 2001 From: "Zephaniah E. Hull" Date: Thu, 28 Sep 2000 04:32:55 +0000 Subject: [PATCH] If we use gcc, then we use -pipe, or we use -save-temps. Added *.i and *.s to the clean rule, for above -save-temps. --- configure.in | 9 +++++++++ source/.gitignore | 2 ++ source/Makefile.am | 3 +++ 3 files changed, 14 insertions(+) diff --git a/configure.in b/configure.in index f121b86..4cd1cb8 100644 --- a/configure.in +++ b/configure.in @@ -942,6 +942,15 @@ if test "x$profile" = xyes; then fi fi +if test "x$GCC" = xyes; then + dnl Check for -pipe vs -save-temps. + AC_MSG_CHECKING(for -pipe vs -save-temps) + AC_ARG_ENABLE(save-temps, + [ --enable-save-temps save temporay files], + AC_MSG_RESULT(-save-temps); CFLAGS="$CFLAGS -save-temps", + AC_MSG_RESULT(-pipe); CFLAGS="$CFLAGS -pipe") +fi + dnl QuakeForge uses lots of BCPL-style (//) comments, which can cause problems dnl with many compilers that don't support the latest ISO standards. Well, dnl that is our cover story -- the reality is that we like them and don't want diff --git a/source/.gitignore b/source/.gitignore index 3dbeeb1..8dfe5ac 100644 --- a/source/.gitignore +++ b/source/.gitignore @@ -1,3 +1,5 @@ +*.i +*.s *.d *.o *.obj diff --git a/source/Makefile.am b/source/Makefile.am index 22897c8..316b89a 100644 --- a/source/Makefile.am +++ b/source/Makefile.am @@ -269,3 +269,6 @@ EXTRA_DIST= makefile.win \ qf-server.mak qw_server.dsp \ qf-client-sdl.mak qf-client-win.mak qw_client.dsp \ qf-client-sgl.mak qf-client-wgl.mak qf-client-win.mak + +# Kill the temp files, hopefully. +CLEANFILES = *.i *.s