#!/bin/sh

# for GRAPE-9
echo building for GRAPE-9 G5PIPE...
cc -O0 -g -I../../include -L../../lib -o s9_g9 sticky9.c force.c  cpu.c -lg95 -lhib -lm
echo done.

echo building for GRAPE-9 G6PIPE...
cc -DG6API=1 -O0 -g -I../../include -L../../lib -o s9_g96 sticky9.c force.c  cpu.c -lg96 -lhib -lm
echo done.

# for GRAPE-DR
echo building for GRAPE-DR...
cc -O0 -g -I../../include -L../../lib -o s9_gdr sticky9.c force.c  cpu.c -lgdr5 -lhib -lm
echo done.

# for GRAPE-7
echo building for GRAPE-7...
cc -O0 -g -I../../include -L../../lib -o s9_g7 sticky9.c force.c  cpu.c -lg75 -lhib -lm
echo done.

# for GRAPE-6A
echo building for GRAPE-6A...
cc -O0 -g -I../../include -L../../lib -o s9_g6a sticky9.c force.c  cpu.c -lg6a5 -lm
echo done.

# for GRAPE-6BX
echo building for GRAPE-6BX...
cc -O0 -g -I../../include -L../../lib -o s9_g6bx sticky9.c force.c  cpu.c -lg6bx5 -lg6bxhib -lm
echo done.

# for Phantom-GRAPE-5
echo building for Phantom-GRAPE-5...
cc -O0 -g -I../../include -L../../lib -o s9_pg5 sticky9.c force.c  cpu.c -lpg55 -lm -fopenmp
echo done.

# for CUDA G5
echo building for CUDA G5...
cc -pthread -O0 -g -I../../include -L../../lib -L/usr/local/cuda/lib64 -o s9_cuda sticky9.c force.c  cpu.c -lcuda5 -lcudart -lm -lstdc++
echo done.
