You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
372 B

#!/bin/sh
case `uname -s` in
Darwin)
echo 'CXX = clang++' > Makefile.rules
echo 'CXXFLAGS_PLATFORM = -march=native -msse4.2' >> Makefile.rules
echo 'LFLAGS = -flto' >> Makefile.rules
;;
Linux)
echo 'CXX = g++' > Makefile.rules
echo 'CXXFLAGS_PLATFORM = -mssse3 -msse4.2' >> Makefile.rules
echo 'LFLAGS = ' >> Makefile.rules
;;
esac