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 05:22
Missing name Missing name
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:[SOLVED] "Unresolved inclusion: <stdio.h>" in C project!!
Next Topic:Beginner Help
Goto Forum:
  


Current Time: Sat Jul 26 01:28:16 EDT 2014

Powered by FUDForum. Page generated in 0.02094 seconds