Re: Can gcc show status of a compilation?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tony Wetmore <tony.wetmore@xxxxxxxxxxxx> wrote in
news:4D0F8010.9060506@xxxxxxxxxxxx: 

> 
> You can easily write a rule for make to perform a rebuild.  For
> example, most makefiles I've used include a "clean" target, which
> deletes all generated files (.o, .exe, etc), as well as an "all"
> target that builds everything that needs to be built.  Combining those
> two to implement "rebuild" is as easy as:
> 
>    rebuild: clean all
> 
> At least, I think that's the proper syntax.  It's been a while since I
> created a makefile from scratch.
>
> Another big benefit of using make is that it can perform multiple
> tasks (compiles) in parallel, to speed up builds.  Naturally, this can
> be especially helpful on multiprocessor/core machines.
> 
> Here are a few links to tutorials about make (and GNU make):
> 
>    http://www.cs.umd.edu/class/fall2002/cmsc214/Tutorial/makefile.html
>    http://frank.mtsu.edu/~csdept/FacilitiesAndResources/make.htm
>    http://developers.sun.com/solaris/articles/make_utility.html
>    http://developers.sun.com/solaris/articles/parallel_make.html
> 
> Good luck!
> 
> -Tony
> 
 

Thank you, I will definitely take this under advisement. I'm no stranger 
to working with makefiles. I've used makefiles before with borland's 
make.exe, even written a makefile generator for convenience, albeit the 
dilect is slightly different from gnu.

I was looking at this primarily because I use an IDE nowadays on the 
platform I'm developing. Unfortunately, adding an extra echo commandline 
before the compile isn't all that straightforward. And to add to that, 
I'd have to do it for each of the build descriptions of the rules for the 
previous projects, which I'd rather not do.

However, all the IDE's I've worked with has some way to allow you to add 
extra custom switches or options to pass to the compiler and linker 
during the build. That why I was asking about this here in the newsgroup, 
because at the time that seemed like the most straightforward to go about 
it.

Though I'll probably go with Taylor's suggestion of -Q option; it seems 
to work well enough for what I'm looking for.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux