52 __EOF__ |
52 __EOF__ |
53 |
53 |
54 # platform |
54 # platform |
55 |
55 |
56 if [ $OS = SunOS ]; then |
56 if [ $OS = SunOS ]; then |
57 CCONF=suncc.mk |
57 CCONF=suncc.mk |
58 PLATFORM=solaris.mk |
58 PLATFORM=solaris.mk |
59 fi |
59 fi |
60 |
60 |
61 if [ $OS = Linux ]; then |
61 if [ $OS = Linux ]; then |
62 CCONF=gcc.mk |
62 if `type clang > /dev/null`; then |
63 PLATFORM=linux.mk |
63 CCONF=clang.mk |
|
64 else |
|
65 CCONF=gcc.mk |
|
66 fi |
|
67 PLATFORM=linux.mk |
64 fi |
68 fi |
65 |
69 |
66 if [ $OS = Darwin ]; then |
70 if [ $OS = Darwin ]; then |
67 CCONF=clang.mk |
71 CCONF=clang.mk |
68 PLATFORM=osx.mk |
72 PLATFORM=osx.mk |
69 fi |
73 fi |
70 |
74 |
71 echo " |
75 echo " |
72 include \$(BUILD_ROOT)/make/$CCONF |
76 include \$(BUILD_ROOT)/make/$CCONF |
73 include \$(BUILD_ROOT)/make/$PLATFORM |
77 include \$(BUILD_ROOT)/make/$PLATFORM |