Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » Releasing U++ » Makefiles warning!
Makefiles warning! [message #25134] Fri, 12 February 2010 02:12 Go to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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.

  1. 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.
  2. 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 #25141 is a reply to message #25134] Fri, 12 February 2010 12:20 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
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? Smile

I think right now it's spread over 2 places (1x compiling, 1x linking final binary).
Re: Makefiles warning! [message #25143 is a reply to message #25141] Fri, 12 February 2010 13:26 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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? Smile

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 Smile So now you can change the compiler without editing anything, just invoke make with variable in option:
make CC=g++-4.1
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
Re: Makefiles warning! [message #25144 is a reply to message #25143] Fri, 12 February 2010 13:33 Go to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Hi Honza,

I will upload a generic Makefile for building TheIDE soon.
It is based on your tests in this topic:
http://www.ultimatepp.org/forum/index.php?t=msg&th=4942& amp; amp;start=0&

I can already compile TheIDE with it.
What is still missing is the link step generation which should also collect regarding link libraries from *.upp files.
For now, it has ~100 lines Smile.

Maybe we can take this one then for source release builds, since it is much smaller and more versatile (you can also build a single package only etc.).

Matthias

[Updated on: Fri, 12 February 2010 13:34]

Report message to a moderator

Previous Topic: Mac OS X porting
Next Topic: Final release
Goto Forum:
  


Current Time: Tue Apr 16 08:05:13 CEST 2024

Total time taken to generate the page: 0.02320 seconds