#
# makefile for binary called by sohoephem.pro - Linux version
# 
#  %H% %W%
#
# Written by D. Wang, NRL/Interferometrics, 11/9/01
# 
# Used for einstein:
# ld -fPIC -shared -o ephem_linux.so ephem.o sohoprin.o sohoephem.o sohobase.o -lc -lm -lgcc -lg2c -L/usr/lib/gcc/x86_64-redhat-linux/3.4.3 -e ephem -cref -Map ephem_linux.map
#
# 10/1/10, nbr - compiled static linked binary on themis
#

all : ephem.o sohoprin.o sohoephem.o sohobase.o
	ld -fPIC -shared -static -o ephem_linux.so ephem.o sohoprin.o sohoephem.o sohobase.o -lc -lm -lgcc -lg2c -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.3 -e ephem -cref -Map ephem_linux.map --verbose

sohobase.o : sohobase.f
	g77 -fPIC -g -shared -c sohobase.f

sohoephem.o : sohoephem.f
	g77 -fPIC -g -shared -c sohoephem.f

sohoprin.o : sohoprin.f
	g77 -fPIC -g -shared -c sohoprin.f

ephem.o : ephem.c
	gcc -fPIC -g -shared -c ephem.c

clean :
	rm *.o *.map
