Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Add flags to the makefile
Add flags to the makefile [message #1766452] Wed, 21 June 2017 14:47 Go to next message
Naum Spaseski is currently offline Naum SpaseskiFriend
Messages: 81
Registered: February 2016
Location: Sophia Antipolis
Member

Hello everyone,

This is short and simple question. I searched in the docs, but didn't find a solution.

For example, If I want to use newer standard of C++, for example, C++11, how can I specify it without modifying manually the makefile?

In this case, the change I want to make is simple, from this:
# Flags for the C++ compiler:
CXXFLAGS = -Wall


to this:
# Flags for the C++ compiler:
CXXFLAGS = -Wall -std=c++11


Thanks in advance.

Best regards,
Naum
Re: Add flags to the makefile [message #1766466 is a reply to message #1766452] Wed, 21 June 2017 16:29 Go to previous messageGo to next message
Kristof Szabados is currently offline Kristof SzabadosFriend
Messages: 32
Registered: July 2015
Member
Hi,

Assuming it is about the makefile used to build Titan:

We use the Makefile.cfg to fine tune the build options.
If you wish to create some personal modifications, or platform dependent setting you can put them in the Makefile.personal file.
That file is included into the Makefile.cfg right after the basic setting are done.
There you could just extend CXXFLAGS using +=

If it is about the generated makefiles used to buil TTCN-3 projects, I can imagine 3 options:
- if you work in eclipse using the built in makefile generator, you can configure additional flags on the projects settings page
- if you generate your makefile from TPD files, there you can also describe such extension
- or the manual modification.

BR.
Kristof
Re: Add flags to the makefile [message #1766467 is a reply to message #1766466] Wed, 21 June 2017 16:32 Go to previous messageGo to next message
Kristof Szabados is currently offline Kristof SzabadosFriend
Messages: 32
Registered: July 2015
Member
At the same time a word of caution.

C/C++ is not really offering binary compatibility.
This means that if you use flags that change the way the binary is generated, it may or may not link together with titan's runtime libraries (or worse they link together but does not work correctly)
Re: Add flags to the makefile [message #1766570 is a reply to message #1766467] Fri, 23 June 2017 08:09 Go to previous message
Naum Spaseski is currently offline Naum SpaseskiFriend
Messages: 81
Registered: February 2016
Location: Sophia Antipolis
Member

Hello Kristof,

Thank you for the suggestions. In my case I went with a .TPD file, because it is resistant to manual changes :)

Best regards,
Naum
Previous Topic:Eclipse Titan available in Debian 9 and Ubuntu 17.04
Next Topic:Matching Floating-Point Numbers
Goto Forum:
  


Current Time: Sat Nov 17 09:07:04 GMT 2018

Powered by FUDForum. Page generated in 0.01963 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top