include ../BuildMgr/sophyamake.inc

all: libxastro.a

clean:
	rm -f libxastro.a *.o testxephem

OBJASTRO := $(addsuffix .o,$(basename $(wildcard *.c)))

libxastro.a : $(OBJASTRO)
	$(AR) $(ARFLAGS) $@ $?

%.o: %.c
	$(CCOMPILE) -o $@ $<

testxephem: testxephem.o
	$(CLINK) -o $@ testxephem.o -L./ -lxastro -lc -lm
