Home » Developing U++ » Releasing U++ » Makefiles warning!
Makefiles warning! [message #25134] |
Fri, 12 February 2010 02:12  |
|
Hello all,
In case you are using Makefiles generated by theide, please note following changes that I made to bring it closer to what I believe to be a standard behaviour.
- LINKOPTIONS:
This variable, was present in the Makefiles (but not set up, explicitly). Its proper name should be LDFLAGS. I renamed it and also added support for it (Linker options were introduced recently, but not in makefiles). If you used this option through environment variable or command line argument, you should use LDFLAGS now. The original LINKOPTIONS variable is still working, but please consider it deprecated.
- CPPFLAGS:
There was a little confused use of CFLAGS/CPPFLAGS/CXXFLAGS. More specifically CPPFLAGS was used where CXXFLAGS should be. Just for your info:
- CFLAGS = options for C compiler
- CXXFLAGS = options for C++ compiler
- CPPFLAGS = options for preprocessor
Unfortunately there was no way to keep backward compatibility, but I believe that most of the users used the defaults specified in Makefile, so it won't affect them. Build systems, which often use these variables are using them in correct way, so it helps there and definitely not hurts.
Everything else works the same way as it did before.
Best regards,
Honza
|
|
|
|
Re: Makefiles warning! [message #25143 is a reply to message #25141] |
Fri, 12 February 2010 13:26   |
|
mr_ped wrote on Fri, 12 February 2010 12:20 | When you are on it, can you make compiler name a variable, so I can switch from g++ to g++-4.1 by editing single line? 
I think right now it's spread over 2 places (1x compiling, 1x linking final binary).
|
Hi Ped,
No problem, it is in svn now. I was actually thinking about it too, just a few days ago So now you can change the compiler without editing anything, just invoke make with variable in option:Default is CC=c++.
Also, probably not very useful feature, but just in case someone wants to use it: If you want to use different program for linking, you can use LINKER variable. Default is LINKER=CC.
Best regards,
Honza
|
|
|
|
Goto Forum:
Current Time: Sun May 11 14:38:09 CEST 2025
Total time taken to generate the page: 0.03233 seconds
|