| 1 | #! /bin/sh |
| 2 | |
| 3 | case "$OSTYPE" in |
| 4 | darwin*) |
| 5 | echo "Compiling for Darwin" |
| 6 | clang++ --std=c++14 -pipe -O3 -ffast-math -fomit-frame-pointer -DNDEBUG -I. -I../.. -I../../util -D_REENTRANT=1 -compatibility_version 1 -current_version 1 -dynamiclib libkingsley.cpp -o libkingsley.dylib;; |
| 7 | [Ll]inux*) |
| 8 | echo "Compiling for Linux" |
| 9 | g++ --std=c++14 -pipe -march=pentiumpro -O3 -finline-limit=65000 -fkeep-inline-functions -finline-functions -ffast-math -fomit-frame-pointer -DNDEBUG -I. -I../.. -I../../util -D_REENTRANT=1 -shared libkingsley.cpp -o libkingsley.so -ldl -lpthread;; |
| 10 | solaris) |
| 11 | echo "Compiling for Solaris" |
| 12 | #CC -xildoff -native -noex -xipo=2 -xO5 -mt -DNDEBUG -I. -I.. -D_REENTRANT=1 -G -PIC libkingsley.cpp -o libkingsley.so;; |
| 13 | # g++ -pipe -DNDEBUG -I. -I.. -D_REENTRANT=1 -fPIC -shared libkingsley.cpp -o libkingsley.so;; |
| 14 | g++ --std=c++14 -fPIC -pipe -march=ultrasparc -O3 -finline-limit=5000 -fkeep-inline-functions -finline-functions -ffast-math -fomit-frame-pointer -DNDEBUG -I. -I.. -I../.. -I../../util -D_REENTRANT=1 -shared libkingsley.cpp -o libkingsley.so;; |
| 15 | # g++ -pipe -march=ultrasparc -O3 -finline-limit=65000 -fkeep-inline-functions -finline-functions -ffast-math -fomit-frame-pointer -DNDEBUG -I. -I.. -D_REENTRANT=1 -shared libkingsley.cpp -o libkingsley.so;; |
| 16 | *) |
| 17 | echo "hmmm" |
| 18 | esac |
| 19 | |
| 20 | |
| 21 |