include $(SOPHYABASEREP)/Include/MakefileUser.h all: libxastro.a clean: rm -f libxastro.a rm -f *.o testxephem install: if [ ! -d $(EXTINCPATH)/XAstro ] ; then mkdir $(EXTINCPATH)/XAstro ; fi rm -f $(EXTINCPATH)/XAstro/astro.h rm -f $(EXTINCPATH)/XAstro/bdl.h rm -f $(EXTINCPATH)/XAstro/P_.h rm -f $(EXTLIBPATH)/libxastro.a cp *.h $(EXTINCPATH)/XAstro/. cp libxastro.a $(EXTLIBPATH)/. OBJASTRO := $(addsuffix .o,$(basename $(wildcard *.c))) libxastro.a : $(OBJASTRO) $(AR) $(ARFLAGS) $@ $(OBJASTRO) %.o: %.c $(COMPILE.c) -o $@ $< testxephem: testxephem.o $(LINK.c) -o $@ $^ -L$(EXTLIBPATH) -lxastro -lc -lm