#!/bin/sh

#
# Compilation Examples
#

# for GRAPE-9 G6PIPE
echo building for GRAPE-9 G6PIPE...
cc -DG6API=1 -O3 -I../../include -L../../lib -o pairwise_g96 pairwise.c -lg96 -lhib -lm
echo done.

# for GRAPE-9 G5PIPE
echo building for GRAPE-9 G5PIPE...
cc -O3 -I../../include -L../../lib -o pairwise_g95 pairwise.c -lg95 -lhib -lm
echo done.

# for GRAPE-DR
echo building for GRAPE-DR...
cc -O3 -I../../include -L../../lib -o pairwise_gdr pairwise.c -lgdr5 -lhib -lm
echo done.

# for GRAPE-7
echo building for GRAPE-7...
cc -O3 -I../../include -L../../lib -o pairwise_g7 pairwise.c -lg75 -lhib -lm
echo done.

# for GRAPE-6BX
echo building for GRAPE-6BX...
cc -O3 -I../../include -L../../lib -o pairwise_g6bx pairwise.c -lg6bx5 -lg6bxhib -lm
echo done.

# for Phantom-GRAPE-5
echo building for Phantom-GRAPE-5...
cc -O3 -I../../include -L../../lib -o pairwise_pg5 pairwise.c -lpg55 -lm -fopenmp
echo done.

# for CUDA G5
echo building for CUDA G5...
cc -pthread -O3 -I../../include -L../../lib -L/usr/local/cuda/lib64 -o pairwise_cuda pairwise.c -lcuda5 -lcudart -lm -lstdc++
echo done.
