Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Changing Make(generated from Eclipse) to get a .text file as option (How do I give a .text file in Eclipse as gcc flag ?)
Changing Make(generated from Eclipse) to get a .text file as option [message #843690] Fri, 13 April 2012 09:22
Missing name Missing nameFriend
Messages: 7
Registered: December 2011
Junior Member
Dear All,

I generated a make file (dir.mk) using Eclipse. This is called from another make file which is in turn called from a .bat.
Anyway, in the dir.mk file I want to give a number of Defines as flags which are generated as a text file (opt.tmp) during each cmpile.

Now I use this:
FLAGS= ../../opt.tmp
gcc -O0 -g3 -Wall -fpack-struct -c -$(FLAGS)

This seems to not work. If I give all the defines from opt.tmp as follows:
gcc -O0 -g3 -Wall -fpack-struct -c -DDefine1 -DDEFINE2
then it works.

I have used some other variation for -$(FLAGS), but seem to not work.

My question is, is there a way to give this .tmp file as FLAGS/Defines to the gcc make,or do I have to give the Defines manually ?

Thank you.



Previous Topic:<terminated, exit value: -1>gdb
Next Topic:Beginner Help
Goto Forum:
  


Current Time: Thu Apr 25 07:06:37 GMT 2024

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

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

Back to the top