17 #define EX_SOFTWARE 70 40 unsigned int verbosity=1;
58 debug() <<
"CodeWarrior mode" <<
eom;
65 compiler.object_file_extension=
"o";
100 compiler.output_file_object=
"";
101 compiler.output_file_executable=
"a.out";
106 const std::list<std::string> &values=
109 for(std::list<std::string>::const_iterator
118 const std::list<std::string> &values=
121 for(std::list<std::string>::const_iterator
130 std::list<std::string>::iterator it;
132 std::cout <<
"Defines:\n";
137 std::cout <<
" " << (*it) <<
'\n';
140 std::cout <<
"Undefines:\n";
145 std::cout <<
" " << (*it) <<
'\n';
148 std::cout <<
"Preprocessor Options:\n";
153 std::cout <<
" " << (*it) <<
'\n';
156 std::cout <<
"Include Paths:\n";
161 std::cout <<
" " << (*it) <<
'\n';
164 std::cout <<
"Library Paths:\n";
165 for(it=compiler.library_paths.begin();
166 it!=compiler.library_paths.end();
169 std::cout <<
" " << (*it) <<
'\n';
172 std::cout <<
"Output file (object): " 173 << compiler.output_file_object <<
'\n';
174 std::cout <<
"Output file (executable): " 175 << compiler.output_file_executable <<
'\n';
179 return compiler.doit() ? EX_USAGE : EX_OK;
185 std::cout <<
"goto-cw understands the options of " 186 <<
"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
unsigned unsafe_string2unsigned(const std::string &str, int base)
std::list< std::string > defines
std::string get_value(char option) const
std::list< std::string > undefines
static mstreamt & eom(mstreamt &m)
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.
message_handlert & get_message_handler()
Base class for command line interpretation.
virtual void help()
display command line help
void set_verbosity(unsigned _verbosity)
std::list< std::string > preprocessor_options
const std::string base_name
std::list< std::string > include_paths