From: earnie_boyd AT yahoo DOT com (Earnie Boyd) Subject: Re: gcc produces foo.exe, not foo 23 Sep 1998 23:56:45 -0700 Message-ID: <19980923170605.29412.rocketmail.cygnus.gnu-win32@send1e.yahoomail.com> Reply-To: earnie_boyd AT yahoo DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Arne Glenstrup , gnu-win32 AT cygnus DOT com ---Arne Glenstrup wrote: > > Hello, > > > Apologies if this question has been answered many times before, but I > didn't seem to be able to find it in the mailing list archives via the > search function. > > The problem is that it seems that when running > > gcc -o foo foo.c > > it produces not a file named foo, but a file named foo.exe. This has > caused me problems when writing a Makefile somewhat like > > bar: foo.c > gcc -o foo foo.c > mv foo bar > > because it complains when trying to mv file foo. > > What is the standard way of circumventing this problem? Simply writing > Create a variable SUFFIX just like the variable PREFIX. SUFFIX should not contain a value by default. Then do: mv foo$(SUFFIX) bar$(SUFFIX) == - \\||// -----------o0O0--Earnie--0O0o------------ -- earnie_boyd AT yahoo DOT com -- -- http://freeyellow.com/members5/gw32 -- --------------ooo0O--O0ooo--------------- PS: Newbie's, you should visit my page. _________________________________________________________ DO YOU YAHOO!? Get your free @yahoo.com address at http://mail.yahoo.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".