926 ^ 'lccmake'. "/ compilerFlag := '-DUSELCC' |
926 ^ 'lccmake'. "/ compilerFlag := '-DUSELCC' |
927 ]. |
927 ]. |
928 usedCompiler = 'tcc' ifTrue:[ |
928 usedCompiler = 'tcc' ifTrue:[ |
929 ^ 'tccmake'. "/ compilerFlag := '-DUSELCC' |
929 ^ 'tccmake'. "/ compilerFlag := '-DUSELCC' |
930 ]. |
930 ]. |
931 usedCompiler = 'gcc' ifTrue:[ |
|
932 ^ 'make'. "/ compilerFlag := '-DUSEGCC' |
|
933 ]. |
|
934 usedCompiler = 'mingw' ifTrue:[ |
931 usedCompiler = 'mingw' ifTrue:[ |
935 ^ 'mingwmake'. "/ compilerFlag := '-DUSEMINGW' |
932 ^ 'mingwmake'. "/ compilerFlag := '-DUSEMINGW' |
|
933 ]. |
|
934 true "usedCompiler = 'gcc'" ifTrue:[ |
|
935 ^ 'make'. "/ compilerFlag := '-DUSEGCC' |
936 ]. |
936 ]. |
937 self error:'unknown compiler specified'. |
937 self error:'unknown compiler specified'. |
938 |
938 |
939 "Created: / 03-09-2012 / 19:46:07 / cg" |
939 "Created: / 03-09-2012 / 19:46:07 / cg" |
940 ! |
940 ! |
969 |
969 |
970 projectDefinitionClass isLibraryDefinition ifTrue:[ |
970 projectDefinitionClass isLibraryDefinition ifTrue:[ |
971 "/ generate the library |
971 "/ generate the library |
972 self activityNotification:(makeCommand,' classLibRule'). |
972 self activityNotification:(makeCommand,' classLibRule'). |
973 OperatingSystem |
973 OperatingSystem |
974 executeCommand:(makeCommand,' classLibRule') |
974 executeCommand:(makeCommand,' classLibRule FORCE=') |
975 inputFrom:nil |
975 inputFrom:nil |
976 outputTo:stdOut |
976 outputTo:stdOut |
977 errorTo:stdErr |
977 errorTo:stdErr |
978 inDirectory:(buildDirectory / module / directory) |
978 inDirectory:(buildDirectory / module / directory) |
979 onError:[:status | self error:'make failed']. |
979 onError:[:status | self error:'make failed']. |
980 ] ifFalse:[ |
980 ] ifFalse:[ |
981 (self makeExeOnly) ifTrue:[ |
981 (self makeExeOnly) ifTrue:[ |
982 self activityNotification:(makeCommand,' exe'). |
982 self activityNotification:(makeCommand,' exe'). |
983 OperatingSystem |
983 OperatingSystem |
984 "/ generate the executable |
984 "/ generate the executable |
985 executeCommand:(makeCommand,' exe') |
985 executeCommand:(makeCommand,' exe FORCE=') |
986 inputFrom:nil |
986 inputFrom:nil |
987 outputTo:stdOut |
987 outputTo:stdOut |
988 errorTo:stdErr |
988 errorTo:stdErr |
989 inDirectory:(buildDirectory / module / directory) |
989 inDirectory:(buildDirectory / module / directory) |
990 onError:[:status | self error:'make failed']. |
990 onError:[:status | self error:'make failed']. |