2014-07-27 18:01:41 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
case `uname -s` in
|
|
|
|
|
|
|
|
Darwin)
|
|
|
|
echo 'CXX = clang++' > Makefile.rules
|
2014-07-27 22:40:03 +02:00
|
|
|
echo 'CXXFLAGS_PLATFORM = ' >> Makefile.rules
|
|
|
|
echo 'LFLAGS = -flto' >> Makefile.rules
|
2014-07-27 18:01:41 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
Linux)
|
|
|
|
echo 'CXX = g++' > Makefile.rules
|
2014-07-28 19:47:51 +02:00
|
|
|
echo 'CXXFLAGS_PLATFORM = -mssse3 -msse4.2' >> Makefile.rules
|
2014-07-27 22:40:03 +02:00
|
|
|
echo 'LFLAGS = ' >> Makefile.rules
|
2014-07-27 18:01:41 +02:00
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|