include $(SOPHYABASE)/include/sophyamake.inc
 
all: $(SOPHYALIBP)libXAstroPack.a
 
clean:
	 rm -f $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)tstmollweide.o $(SOPHYAOBJP)tstxastro.o $(SOPHYAOBJP)xastropack.o $(SOPHYAOBJP)magfield.o
	rm -f $(SOPHYALIBP)libXAstroPack.a
 
$(SOPHYALIBP)libXAstroPack.a : $(SOPHYAOBJP)magfield.o $(SOPHYAOBJP)mollweide.o $(SOPHYAOBJP)xastropack.o
	$(AR) $(ARFLAGS) $@ $? 
	touch $(SOPHYAINCP)/SophyaConfInfo/libextsophya.objlist
 
$(SOPHYAOBJP)mollweide.o: mollweide.cc $(SOPHYAINCP)sopnamsp.h \
  mollweide.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  mollweide.cc
 
$(SOPHYAOBJP)xastropack.o: xastropack.cc \
  $(SOPHYAINCP)sopnamsp.h xastropack.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)XAstro/astro.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  xastropack.cc
 
$(SOPHYAOBJP)magfield.o: magfield.c magfield.h
	$(CCOMPILE) -o $@  magfield.c
 
