diff options
Diffstat (limited to 'tmake')
-rw-r--r-- | tmake/lib/win32-g++/generic.t | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tmake/lib/win32-g++/generic.t b/tmake/lib/win32-g++/generic.t index 5f6289f..83fc890 100644 --- a/tmake/lib/win32-g++/generic.t +++ b/tmake/lib/win32-g++/generic.t @@ -80,13 +80,17 @@ $project{"TARGET_EXT"} = ".dll"; } } else { - Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); - Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); - if ( Project("TMAKE_APP_FLAG") ) { - $project{"TARGET_EXT"} = ".exe"; - } else { - $project{"TARGET_EXT"} = ".a"; - } + if ( Config("cgi") ) { + Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); + Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); + $project{"TARGET_EXT"} = ""; + } else { + if ( Project("TMAKE_APP_FLAG") ) { + $project{"TARGET_EXT"} = ".exe"; + } else { + $project{"TARGET_EXT"} = ".a"; + } + } } if ( Config("windows") ) { if ( Config("console") ) { |