Is there an option to force the generated makefile read the CXXFLAGS and CFLAGS variables and use them as most of makefiles do?
Is there an option to force the generated makefile read the CXXFLAGS and CFLAGS
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Eclipse CDT generated makefiles have the following lines included:
-include ../makefile.init-include ../makefile.defsYou can create the file makefile.defs in which you define CFLAGS or CXXFLAGS and then go to project
Properties->C++ Build Properties->Settings-> GCC or G++ compiler ->Miscellaneous. Here you can add your $(CFLAGS) or $(CXXFLAGS) option in theOther flagsfield.This should add your additional options to the compiler command line.