17 #define EX_SOFTWARE 70 52 debug() <<
"CodeWarrior mode" <<
eom;
59 compiler.object_file_extension=
"o";
94 compiler.output_file_object=
"";
95 compiler.output_file_executable=
"a.out";
100 const std::list<std::string> &values=
103 for(std::list<std::string>::const_iterator
112 const std::list<std::string> &values=
115 for(std::list<std::string>::const_iterator
124 std::list<std::string>::iterator it;
126 std::cout <<
"Defines:\n";
131 std::cout <<
" " << (*it) <<
'\n';
134 std::cout <<
"Undefines:\n";
139 std::cout <<
" " << (*it) <<
'\n';
142 std::cout <<
"Preprocessor Options:\n";
147 std::cout <<
" " << (*it) <<
'\n';
150 std::cout <<
"Include Paths:\n";
155 std::cout <<
" " << (*it) <<
'\n';
158 std::cout <<
"Library Paths:\n";
159 for(it=compiler.library_paths.begin();
160 it!=compiler.library_paths.end();
163 std::cout <<
" " << (*it) <<
'\n';
166 std::cout <<
"Output file (object): " 167 << compiler.output_file_object <<
'\n';
168 std::cout <<
"Output file (executable): " 169 << compiler.output_file_executable <<
'\n';
173 return compiler.doit() ? EX_USAGE : EX_OK;
179 std::cout <<
"goto-cw understands the options of " 180 <<
"gcc (mwcc mode) plus the following.\n\n";
const std::list< std::string > & get_values(const std::string &option) const
struct configt::ansi_ct ansi_c
static unsigned eval_verbosity(const std::string &user_input, const message_levelt default_verbosity, message_handlert &dest)
Parse a (user-)provided string as a verbosity level and set it as the verbosity of dest...
std::list< std::string > defines
std::string get_value(char option) const
std::list< std::string > undefines
virtual int doit()
does it.
bool set(const cmdlinet &cmdline)
virtual bool isset(char option) const
virtual void help_mode()
display command line help
bool has_prefix(const std::string &s, const std::string &prefix)
console_message_handlert message_handler
Compile and link source and object files.
Base class for command line interpretation.
virtual void help()
display command line help
std::list< std::string > preprocessor_options
const std::string base_name
std::list< std::string > include_paths