70 if [ $OS = Darwin ]; then |
70 if [ $OS = Darwin ]; then |
71 CCONF=clang.mk |
71 CCONF=clang.mk |
72 PLATFORM=osx.mk |
72 PLATFORM=osx.mk |
73 fi |
73 fi |
74 |
74 |
|
75 ISBSD=`echo $OS | grep -c BSD` |
|
76 if [ $ISBSD = 1 ]; then |
|
77 if `type clang > /dev/null`; then |
|
78 CCONF=clang.mk |
|
79 else |
|
80 CCONF=gcc.mk |
|
81 fi |
|
82 PLATFORM=bsd.mk |
|
83 fi |
|
84 |
75 echo " |
85 echo " |
76 include \$(BUILD_ROOT)/make/$CCONF |
86 include \$(BUILD_ROOT)/make/$CCONF |
77 include \$(BUILD_ROOT)/make/$PLATFORM |
87 include \$(BUILD_ROOT)/make/$PLATFORM |
78 |
88 |
79 CFLAGS += $LIBS_CFLAGS |
89 CFLAGS += $LIBS_CFLAGS |