Home » Community » Coffee corner » The power of Makefile
Re: The power of Makefile [message #25841 is a reply to message #24947] |
Mon, 15 March 2010 08:57 |
|
Hello all!
After a long time I finally got to back to the Makefile... and I finally finished everything I wanted to.
So the file I present you here is rewritten from scratch. It is faster and smarter. New features are:
- Compiles multiple packages at once
- Reads and uses most of the options from .upp in the same way as theide
- Verbosity switches
- Simulation mode
- Help target
- Commented code (a bit)
- Several bugs fixed
- Little ASCII Art bonus
The last thing I miss is blitz
BTW: There are even some options that can not be set in theide Or at least I couldn't find how... E.g. optimize file/package for size.
To get started, just copy the file into upp directory. I advise you to start with typing Both show you a help text, that contains a description and default values for variables that can controll the build process.
If you want to try something more elaborated, you can test something like this: make "PKG=ide usvn `ls examples reference tutorial |sed 's/[^ ]*://g' |tr '\n' ' '`" USEMAINCFG=y BINDIR=bin/ BINEXT= JOBS=3 This will compile theide, usvn and all the packages in mentioned folders, using flags from first line in mainconfig and put the binaries into a bin subdirectory. All the compiling will use 3 parallel jobs to speed the things up. Expect some error messages, as some of the packages are win only, have errors in code or have non-working mainconfig.
I tested the makefile by building more than 200 applications with various flags and randomly running many of them, without any encountering any errors in the makefile. So I believe that it should work in most cases. If anyone tries this, please let me know about your experiences Also, if you have any questions, feel free to ask (on forum or IRC).
Best regards,
Honza
-
Attachment: Makefile
(Size: 19.07KB, Downloaded 321 times)
|
|
|
|
|
The power of Makefile
|
|
|
Re: The power of Makefile
By: mirek on Fri, 05 February 2010 16:04
|
|
|
Re: The power of Makefile
By: masu on Fri, 05 February 2010 16:32
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Sat, 06 February 2010 22:46
|
|
|
Re: The power of Makefile
By: masu on Sat, 06 February 2010 22:55
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: mr_ped on Sun, 07 February 2010 01:42
|
|
|
Re: The power of Makefile
By: masu on Sun, 14 February 2010 21:08
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Mon, 15 February 2010 16:24
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Tue, 16 February 2010 23:24
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: chickenk on Mon, 15 March 2010 11:38
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: koldo on Mon, 15 March 2010 12:13
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Mon, 15 March 2010 12:31
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Thu, 18 March 2010 10:57
|
|
|
Re: The power of Makefile
By: Reini on Fri, 19 March 2010 17:53
|
|
|
Re: The power of Makefile
|
|
|
Re: The power of Makefile
By: masu on Mon, 22 March 2010 11:05
|
|
|
Re: The power of Makefile
By: Reini on Mon, 22 March 2010 20:32
|
|
|
Re: The power of Makefile
By: masu on Tue, 23 March 2010 10:45
|
|
|
Re: The power of Makefile
|
|
|
Universal Makefile
|
|
|
Re: Universal Makefile
By: chickenk on Sat, 28 August 2010 09:22
|
|
|
Re: Universal Makefile
|
|
|
Re: Universal Makefile
By: masu on Mon, 29 November 2010 20:57
|
|
|
Re: Universal Makefile
|
|
|
Re: Universal Makefile
By: masu on Mon, 29 November 2010 23:33
|
Goto Forum:
Current Time: Thu Apr 18 22:03:16 CEST 2024
Total time taken to generate the page: 0.02352 seconds
|