Thank you very much Chris,

After putting the "all : <module_1> ... <module_x>", the GNU make utility do
the work correctly.

It is really strange that there was no explaination about this feature on
the GNU make utility document
(http://www.gnu.org/software/make/manual/make.html).  Maybe, I missed it
when I read the document.

Thank you again.
Claude


----- Original Message ----- 
From: <mspgcc-users-requ...@lists.sourceforge.net>
To: <mspgcc-users@lists.sourceforge.net>
Sent: Sunday, December 21, 2003 11:11 PM
Subject: Mspgcc-users digest, Vol 1 #542 - 2 msgs


> Send Mspgcc-users mailing list submissions to
> mspgcc-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> or, via email, send a message with subject or body 'help' to
> mspgcc-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
> mspgcc-users-ad...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Mspgcc-users digest..."
>
>
> Today's Topics:
>
>    1. Problem with GNU make utility. (Claude Sylvain)
>    2. Re: Problem with GNU make utility. (Chris Liechti)
>
> --__--__--
>
> Message: 1
> From: "Claude Sylvain" <claudesylv...@sympatico.ca>
> To: <mspgcc-users@lists.sourceforge.net>
> Date: Sun, 21 Dec 2003 13:05:25 -0500
> Subject: [Mspgcc-users] Problem with GNU make utility.
> Reply-To: mspgcc-users@lists.sourceforge.net
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_000B_01C3C7C3.191FCB10
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hello all,
>
> My setup:
> --------------
> OS:                                       Windows XP
> MSPGCC installer release:        030506
> MSPGCC version:                    3.2.3
> GNU make version:                3.79.1
> MCU:                                     MSP430F149
>
> The problem is that GNU make utility "make" only the first command, and =
> skip all the other one.
> In the following make command (see below), only the first command is =
> executed.
> Notes: Before I call the make file, I always delete the 2 objects files =
> (main.0 and utl.o), to force GNU make to make the 2 object files.
>
> -------------------------------------------------------------------------=
> ------
> main.o : main.c
>  msp430-gcc -mmcu=3Dmsp430x149 -g -O2 -c main.c
> utl.o : utl.c
>  msp430-gcc -mmcu=3Dmsp430x149 -g -O2 -c utl.c
> -------------------------------------------------------------------------=
> ------
>
> Is there something to do to make the GNU make utility execute all the =
> commands ?
>
> Claude.
>
> ------=_NextPart_000_000B_01C3C7C3.191FCB10
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=3DContent-Type content=3D"text/html; =
> charset=3Diso-8859-1">
> <META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV>
> <DIV><FONT face=3DArial size=3D2>Hello all,</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
> <DIV><FONT face=3DArial size=3D2>My setup:</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>--------------</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>OS:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
>
> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Windows XP</FONT></DIV><FONT =
> face=3DArial size=3D2>
> <DIV><FONT face=3DArial size=3D2>MSPGCC installer =
> release:&nbsp;&nbsp;&nbsp;=20
> &nbsp;&nbsp;&nbsp; 030506</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>MSPGCC version:&nbsp;&nbsp;&nbsp;=20
> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
> &nbsp;&nbsp;&nbsp;=20
> 3.2.3</FONT></DIV>
> <DIV>GNU make version:&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
> &nbsp;&nbsp;&nbsp;=20
> &nbsp;&nbsp;&nbsp; 3.79.1</DIV>
> <DIV>MCU:&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=20
> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
> &nbsp;&nbsp;&nbsp;=20
> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; MSP430F149</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>The problem is that GNU make utility "make" only the first command, =
> and=20
> skip all the other one.</DIV>
> <DIV>In the following make command (see below), only the first command =
> is=20
> executed.</DIV>
> <DIV>Notes: Before I call the make file, I always delete the 2 objects =
> files=20
> (main.0 and utl.o), to force GNU make to make the 2 object files.</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>--------------------------------------------------------------------=
> -----------<BR>main.o=20
> : main.c<BR>&nbsp;msp430-gcc -mmcu=3Dmsp430x149 -g -O2 -c =
> main.c<BR>utl.o :=20
> utl.c<BR>&nbsp;msp430-gcc -mmcu=3Dmsp430x149 -g -O2 -c=20
> utl.c<BR>----------------------------------------------------------------=
> ---------------<BR></DIV>
> <DIV>Is there something to do to make the GNU make utility execute all =
> the=20
> commands ?</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>Claude.</DIV>
> <DIV>&nbsp;</DIV></FONT></DIV></BODY></HTML>
>
> ------=_NextPart_000_000B_01C3C7C3.191FCB10--
>
>
>
>
> --__--__--
>
> Message: 2
> Date: Sun, 21 Dec 2003 20:53:49 +0100
> From: Chris Liechti <cliec...@gmx.net>
> To: mspgcc-users@lists.sourceforge.net
> Subject: Re: [Mspgcc-users] Problem with GNU make utility.
> Reply-To: mspgcc-users@lists.sourceforge.net
>
> Claude Sylvain wrote:
> > Notes: Before I call the make file, I always delete the 2 objects files
> > (main.0 and utl.o), to force GNU make to make the 2 object files.
>
> its common to have a "clean" target that does this
>
>
> --------------------------------------------------------------------------
-----
> > main.o : main.c
> >  msp430-gcc -mmcu=msp430x149 -g -O2 -c main.c
> > utl.o : utl.c
> >  msp430-gcc -mmcu=msp430x149 -g -O2 -c utl.c
>
> --------------------------------------------------------------------------
-----
> > Is there something to do to make the GNU make utility execute all the
> > commands ?
>
> yes, add a target that requires all files to build:
>
> all: main.o utl.o
>
> add this as the first target, because that is build when you run "make".
> others can be built with "make utl.o" etc
> (what is still missing in the above example is that you should link the
> objects together...)
>
> there are different styles for make files, you may want to look at the
> examples on mspgcc.sf.net either in the CVS or in the download section.
>
> chris
>
>
>
>
> --__--__--
>
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
>
> End of Mspgcc-users Digest



Reply via email to