#
# makefile for binary called by sohoephem*.pro - Linux version
# 
# Written by D. Wang, NRL/Interferometrics, 11/9/01
# 
#  11/13/01 @(#)makefile.linux	1.1
#
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

all : ephem.o sohoprin.o sohoephem.o sohobase.o
	ld -fPIC -shared -o ephem_linux.so ephem.o sohoprin.o sohoephem.o sohobase.o -lc -lm -lgcc -lg2c -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.0.1 -e ephem -cref -Map ephem_linux.map --verbose

clean :
	rm *.o *.map
