Hi Xaver,
I would have approved your email to the list, but I didn't see it in the
admin list of emails to approve, so I'm replying by proxy. If you join
the mailing list, you will be able to post.
There are several kinds of EDE projects. For the case of using the
"Makefile" project type, created if you use 'ede-new', and choose
'Makefile'.
To start with, you can choose 'customize target' from the menu to use
the Emacs customization interface to edit parts of your project. There
are 'configuration variables' you can add on a per target basis. The
entire project can then have multiple 'configuration' settings with
'debug' and 'release' being available by default. You just need to add
variables associated with those names to switch between them.
This particular feature has not undergone extensive use testing, so if
you run into trouble, I'd advise consulting this mailing list to work
through the issues.
When using Automake, I'm don't remember if those features were hooked up
into Automake or not. Automake is a rather complex system and EDE can
wrap it in two ways. It can create the Makefile.am files for you, or
you can write them yourself, and EDE will just observe them, and provide
a simple way to add files into them.
If you have extensive Automake experience, it would be great if you
could help make the EDE project that creates those files better by
providing suggestions on how to handle some of these situations.
Good Luck
Eric
cedet-devel-owner@... wrote:
> As list administrator, your authorization is requested for the
> following mailing list posting:
>
> List: Cedet-devel@...
> From: torreeger@...
> Subject: setting compiler flags
> Reason: Post by non-member to a members-only list
> Subject:
> setting compiler flags
> From:
> Xaver Gerster <torreeger@...>
> Date:
> Sat, 9 Jan 2010 10:06:15 -0800 (PST)
> To:
> cedet-devel@...
>
> To:
> cedet-devel@...
>
>
> Hi,
>
> I new to cedet and have a (probably trivial) problem in getting compiler flags set.
>
> When designing projects I frequently have a situation with several sub-projects which contain several targets which are compiled using different types of compiler Flags. Say, for eg., there are 'debug' and 'release' sub-projects and targets with different optimization flags.
>
> Is there a place in cedet where I can customize 'per target' or 'per sub project' compiler flags? Hopefully I don't have to go back and edit the Makefiles by hand?
>
> To be specific, I'd like to set CXXFLAGS="-march=blablabla -O3" for a particular target. I tried several sub-menus under Project->Customize which finally lead to entries "Environment Variables for configurations". Now, some of them don't do anything for me, some of them complain with
>
> debug/Makefile.am:8: `CXXFLAGS' is a user variable, you should not override it;
> debug/Makefile.am:8: use `AM_CXXFLAGS' instead.
>
> How should I do this properly?
>
> Thanks wbwb
>
|