diff options
author | Herbert Dürr <hdu@apache.org> | 2014-01-02 15:45:55 +0000 |
---|---|---|
committer | Herbert Dürr <hdu@apache.org> | 2014-01-02 15:45:55 +0000 |
commit | 4e347ce072f2d48ab5e96306632cd6b7b2f145b6 (patch) | |
tree | 3fd276ecc4c7d21237be210f3c0b5a723dc5ba3a /set_soenv.in | |
parent | afbfecb781a7113274e5538475137af59a9d29c1 (diff) |
#i122301# add Makefiles for XCode>=4 on Mac
Notes
Notes:
ignore: obsolete
Diffstat (limited to 'set_soenv.in')
-rw-r--r-- | set_soenv.in | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/set_soenv.in b/set_soenv.in index 1e797ad3b32e..1df1e807b17c 100644 --- a/set_soenv.in +++ b/set_soenv.in @@ -753,29 +753,41 @@ elsif ( $platform =~ m/os2/ ) elsif ( $platform =~ m/darwin/ ) { print "Setting Mac OS X/Darwin specific values... "; $BIG_SVX = "TRUE"; - $COM = "GCC"; $COMPATH = '@COMPATH@'; - if ($platform =~ m/^i[3456]86/) + print "Darwin platform = " . $platform ." "; + if( $CC =~ "gcc" ) { - print "Setting values for Mac OS X/Darwin on x86... "; + print "Setting values for MacOSX/Darwin for Xcode<=3"; + $COM = "GCC"; $outfile = "MacOSXX86Env.Set"; $CPU = "I"; $CPUNAME = "INTEL"; $OUTPATH = "unxmacxi"; } - elsif ($platform =~ m/^powerpc/) + elsif ($platform =~ m/^i[3456]86/) { - print "Setting values for Mac OS X/Darwin on PowerPC... "; - $outfile = "MacOSXPPCEnv.Set"; - $CPU = "P"; - $CPUNAME = "POWERPC"; - $OUTPATH = "unxmacxp"; + print "Setting values for MacOSX/Darwin on x86_32... "; + $COM = "CLANG"; + $outfile = "MacOSXX32Env.Set"; + $CPU = "I"; + $CPUNAME = "INTEL"; + $OUTPATH = "unxmacci"; } - if (@GCCVER@ >= 30401) { - $CVER = "C341"; - } else { - $CVER = "C300"; + elsif ($platform =~ m/^x86_64/) + { + print "Setting values for MacOSX/Darwin on x86_64... "; + $COM = "CLANG"; + $outfile = "MacOSXX64Env.Set"; + $CPU = "X"; + $CPUNAME = "X86_64"; + $OUTPATH = "unxmaccx"; + } + else + { + print "\nset_soenv: Unknown MacOSX/Darwin platform: $platform\n"; + exit 1; } + $CVER = "DUMMY_CVER"; $GUI = "UNX"; $GVER = "VCL"; $INPATH = $OUTPATH.$PROEXT; |