From: earnie_boyd@yahoo.com (Earnie Boyd)
Subject: Re: gcc produces foo.exe, not foo
28 Sep 1998 05:46:35 -0700
Message-ID: <19980928020425.1865.rocketmail.cygnus.gnu-win32@send103.yahoomail.com>
Reply-To: earnie_boyd@yahoo.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
To: Arne Glenstrup <panic@diku.dk>, gnu-win32@cygnus.com

---Arne Glenstrup <panic@diku.dk> wrote:
>
> Now that we have established that we need some (in my opinion) dirty
> $(EXEEXT)-stuff, what is the consensus on how to use it with regards
to
> makefile targets and -o switches to compilers? Should a makefile look
> like this:
> 
>   EXEEXT = @EXEEXT@
> 
>   goal$(EXEEXT): goal.c
>                  $(CC) -o goal$(EXEEXT) goal.c
>                  cp goal$(EXEEXT) anothergoal$(EXEEXT)
>                  mv goal$(EXEEXT) yet.another.goal
> 

This one would be most portable.

> or should it look like this:
> 
>   EXEEXT = @EXEEXT@
> 
>   goal:          goal.c
>                  $(CC) -o goal goal.c
>                  cp goal$(EXEEXT) anothergoal$(EXEEXT)
>                  mv goal$(EXEEXT) yet.another.goal
> 

This one make would have to add the .exe.


==
-                \\||//
-----------o0O0--Earnie--0O0o------------
--        earnie_boyd@yahoo.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@cygnus.com" with one line of text: "help".
