# $Id: Makefile 1866 2007-09-01 17:26:57Z denneau $

MOPS_BIN = ${MOPS_HOME}/bin
MOPS_INCLUDE = ${MOPS_HOME}/include
MOPS_LIB = ${MOPS_HOME}/lib
CFLAGS = -g -I../libmopsephem
LDFLAGS = -L../lib -L../libmopsephem -lmopsephem
INSTALL = /usr/bin/install

all: coarseEphem

clean:
	rm -f *.o *.mod coarseEphem

coarseEphem: coarseEphem.c $(MOPS_INCLUDE)/mopsephem.h
	gcc $(CFLAGS) -c coarseEphem.c 
	lf95 $(LDFLAGS) --out coarseEphem coarseEphem.o

install: all
	$(INSTALL) coarseEphem $(MOPS_BIN)
	# scp coarseEphem poiserver0:MOPS/bin

test:
	perl -MTest::Harness -e 'runtests(@ARGV)' t/*.t    
