-MingwModuleHandler::GenerateMacros (\r
- const Module& module,\r
- const string& cflags_macro,\r
- const string& nasmflags_macro,\r
- const string& windresflags_macro,\r
- const string& linkerflags_macro,\r
- const string& objs_macro,\r
- const string& libs_macro,\r
- const string& linkdeps_macro )\r
-{\r
- GenerateMacros (\r
- module,\r
- "=",\r
- module.non_if_data,\r
- &module.compilerFlags,\r
- &module.linkerFlags,\r
- cflags_macro,\r
- nasmflags_macro,\r
- windresflags_macro,\r
- linkerflags_macro,\r
- objs_macro,\r
- libs_macro,\r
- linkdeps_macro );\r
-\r
- if ( module.importLibrary )\r
- {\r
- string s;\r
- const vector<File*>& files = module.non_if_data.files;\r
- for ( size_t i = 0; i < files.size (); i++ )\r
- {\r
- File& file = *files[i];\r
- string extension = GetExtension ( file.name );\r
- if ( extension == ".spec" || extension == ".SPEC" )\r
- {\r
- if ( s.length () > 0 )\r
- s += " ";\r
- s += GetSpecObjectDependencies ( file.name );\r
- }\r
- }\r
- if ( s.length () > 0 )\r
- {\r
- fprintf (\r
- fMakefile,\r
- "%s += %s\n",\r
- linkdeps_macro.c_str(),\r
- s.c_str() );\r
- }\r
- }\r
-\r
- fprintf (\r
- fMakefile,\r
- "%s += $(PROJECT_CFLAGS)\n",\r
- cflags_macro.c_str () );\r
-\r
- fprintf (\r
- fMakefile,\r
- "%s += $(PROJECT_RCFLAGS)\n",\r
- windresflags_macro.c_str () );\r
-\r
- fprintf (\r
- fMakefile,\r
- "%s_LFLAGS += $(PROJECT_LFLAGS)\n",\r
- module.name.c_str () );\r
-\r
- fprintf (\r
- fMakefile,\r
- "%s += $(%s)",\r
- linkdeps_macro.c_str (),\r
- libs_macro.c_str () );\r
-\r
- fprintf ( fMakefile, "\n" );\r
-}\r
-\r
-void\r
-MingwModuleHandler::GenerateGccCommand ( const Module& module,\r
- const string& sourceFilename,\r
- const string& cc,\r
- const string& cflagsMacro )\r