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