include ../BuildMgr/sophyamake.inc
 
PROGS = $(SOPHYAEXEP)cl2map $(SOPHYAEXEP)map2cl $(SOPHYAEXEP)prjsmap $(SOPHYAEXEP)cremskfrsph $(SOPHYAEXEP)extrapsph $(SOPHYAEXEP)extrap2sph
 
all: $(PROGS)
 
clean:
	rm -f $(PROGS)
	rm -f $(SOPHYAOBJP)extrap2sph.o $(SOPHYAOBJP)extrapsph.o $(SOPHYAOBJP)cremskfrsph.o $(SOPHYAOBJP)prjsmap.o $(SOPHYAOBJP)map2cl.o $(SOPHYAOBJP)cl2map.o
 
cl2map: $(SOPHYAEXEP)cl2map
	echo $@ " done"
$(SOPHYAEXEP)cl2map: $(SOPHYAOBJP)cl2map.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)cl2map.o $(SOPHYAEXTSLBLIST)
 
map2cl: $(SOPHYAEXEP)map2cl
	echo $@ " done"
$(SOPHYAEXEP)map2cl: $(SOPHYAOBJP)map2cl.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)map2cl.o $(SOPHYAEXTSLBLIST)
 
prjsmap: $(SOPHYAEXEP)prjsmap
	echo $@ " done"
$(SOPHYAEXEP)prjsmap: $(SOPHYAOBJP)prjsmap.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)prjsmap.o $(SOPHYAEXTSLBLIST)
 
cremskfrsph: $(SOPHYAEXEP)cremskfrsph
	echo $@ " done"
$(SOPHYAEXEP)cremskfrsph: $(SOPHYAOBJP)cremskfrsph.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)cremskfrsph.o $(SOPHYAEXTSLBLIST)
 
extrapsph: $(SOPHYAEXEP)extrapsph
	echo $@ " done"
$(SOPHYAEXEP)extrapsph: $(SOPHYAOBJP)extrapsph.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)extrapsph.o $(SOPHYAEXTSLBLIST)
 
extrap2sph: $(SOPHYAEXEP)extrap2sph
	echo $@ " done"
$(SOPHYAEXEP)extrap2sph: $(SOPHYAOBJP)extrap2sph.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)extrap2sph.o $(SOPHYAEXTSLBLIST)
 
$(SOPHYAOBJP)cl2map.o: cl2map.cc $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)nbmath.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)timing.h \
  $(SOPHYAINCP)array.h \
  $(SOPHYAINCP)tarray.h \
  $(SOPHYAINCP)basarr.h \
  $(SOPHYAINCP)anydataobj.h \
  $(SOPHYAINCP)mutyv.h \
  $(SOPHYAINCP)timestamp.h \
  $(SOPHYAINCP)objfio.h \
  $(SOPHYAINCP)ppersist.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)gnumd5.h \
  $(SOPHYAINCP)ppfbinstream.h \
  $(SOPHYAINCP)rawstream.h \
  $(SOPHYAINCP)ppfnametag.h \
  $(SOPHYAINCP)dvlist.h \
  $(SOPHYAINCP)ndatablock.h \
  $(SOPHYAINCP)utilarr.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)matharr.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)sopemtx.h \
  $(SOPHYAINCP)skymap.h \
  $(SOPHYAINCP)spherethetaphi.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)localmap.h \
  $(SOPHYAINCP)sphereecp.h \
  $(SOPHYAINCP)fiospherethetaphi.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)fiolocalmap.h \
  $(SOPHYAINCP)fiosphereecp.h \
  $(SOPHYAINCP)samba.h \
  $(SOPHYAINCP)alm.h \
  $(SOPHYAINCP)srandgen.h \
  $(SOPHYAINCP)nbmath.h \
  $(SOPHYAINCP)triangmtx.h \
  $(SOPHYAINCP)bruit.h \
  $(SOPHYAINCP)circle.h \
  $(SOPHYAINCP)geometry.h \
  $(SOPHYAINCP)lambdaBuilder.h \
  $(SOPHYAINCP)misstime.h \
  $(SOPHYAINCP)mlobe.h \
  $(SOPHYAINCP)prefcount.h \
  $(SOPHYAINCP)scan.h \
  $(SOPHYAINCP)sphericaltransformserver.h \
  $(SOPHYAINCP)fftservintf.h \
  $(SOPHYAINCP)fftpserver.h \
  $(SOPHYAINCP)tod.h \
  $(SOPHYAINCP)sambainit.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)ntoolsinit.h \
  $(SOPHYAINCP)tarrinit.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h \
  $(SOPHYAINCP)fitstarray.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  cl2map.cc
 
$(SOPHYAOBJP)cremskfrsph.o: cremskfrsph.cc \
  $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)skymap.h \
  $(SOPHYAINCP)spherethetaphi.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)ppersist.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)gnumd5.h \
  $(SOPHYAINCP)ppfbinstream.h \
  $(SOPHYAINCP)rawstream.h \
  $(SOPHYAINCP)ppfnametag.h \
  $(SOPHYAINCP)dvlist.h \
  $(SOPHYAINCP)objfio.h \
  $(SOPHYAINCP)anydataobj.h \
  $(SOPHYAINCP)mutyv.h \
  $(SOPHYAINCP)timestamp.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tarray.h \
  $(SOPHYAINCP)basarr.h \
  $(SOPHYAINCP)ndatablock.h \
  $(SOPHYAINCP)utilarr.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)localmap.h \
  $(SOPHYAINCP)sphereecp.h \
  $(SOPHYAINCP)fiospherethetaphi.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)fiolocalmap.h \
  $(SOPHYAINCP)fiosphereecp.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  cremskfrsph.cc
 
$(SOPHYAOBJP)extrap2sph.o: extrap2sph.cc \
  $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)skymap.h \
  $(SOPHYAINCP)spherethetaphi.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)ppersist.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)gnumd5.h \
  $(SOPHYAINCP)ppfbinstream.h \
  $(SOPHYAINCP)rawstream.h \
  $(SOPHYAINCP)ppfnametag.h \
  $(SOPHYAINCP)dvlist.h \
  $(SOPHYAINCP)objfio.h \
  $(SOPHYAINCP)anydataobj.h \
  $(SOPHYAINCP)mutyv.h \
  $(SOPHYAINCP)timestamp.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tarray.h \
  $(SOPHYAINCP)basarr.h \
  $(SOPHYAINCP)ndatablock.h \
  $(SOPHYAINCP)utilarr.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)localmap.h \
  $(SOPHYAINCP)sphereecp.h \
  $(SOPHYAINCP)fiospherethetaphi.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)fiolocalmap.h \
  $(SOPHYAINCP)fiosphereecp.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  extrap2sph.cc
 
$(SOPHYAOBJP)extrapsph.o: extrapsph.cc $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)skymap.h \
  $(SOPHYAINCP)spherethetaphi.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)ppersist.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)gnumd5.h \
  $(SOPHYAINCP)ppfbinstream.h \
  $(SOPHYAINCP)rawstream.h \
  $(SOPHYAINCP)ppfnametag.h \
  $(SOPHYAINCP)dvlist.h \
  $(SOPHYAINCP)objfio.h \
  $(SOPHYAINCP)anydataobj.h \
  $(SOPHYAINCP)mutyv.h \
  $(SOPHYAINCP)timestamp.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tarray.h \
  $(SOPHYAINCP)basarr.h \
  $(SOPHYAINCP)ndatablock.h \
  $(SOPHYAINCP)utilarr.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)localmap.h \
  $(SOPHYAINCP)sphereecp.h \
  $(SOPHYAINCP)fiospherethetaphi.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)fiolocalmap.h \
  $(SOPHYAINCP)fiosphereecp.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  extrapsph.cc
 
$(SOPHYAOBJP)map2cl.o: map2cl.cc $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)nbmath.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)timing.h \
  $(SOPHYAINCP)array.h \
  $(SOPHYAINCP)tarray.h \
  $(SOPHYAINCP)basarr.h \
  $(SOPHYAINCP)anydataobj.h \
  $(SOPHYAINCP)mutyv.h \
  $(SOPHYAINCP)timestamp.h \
  $(SOPHYAINCP)objfio.h \
  $(SOPHYAINCP)ppersist.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)gnumd5.h \
  $(SOPHYAINCP)ppfbinstream.h \
  $(SOPHYAINCP)rawstream.h \
  $(SOPHYAINCP)ppfnametag.h \
  $(SOPHYAINCP)dvlist.h \
  $(SOPHYAINCP)ndatablock.h \
  $(SOPHYAINCP)utilarr.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)matharr.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)sopemtx.h \
  $(SOPHYAINCP)skymap.h \
  $(SOPHYAINCP)spherethetaphi.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)localmap.h \
  $(SOPHYAINCP)sphereecp.h \
  $(SOPHYAINCP)fiospherethetaphi.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)fiolocalmap.h \
  $(SOPHYAINCP)fiosphereecp.h \
  $(SOPHYAINCP)samba.h \
  $(SOPHYAINCP)alm.h \
  $(SOPHYAINCP)srandgen.h \
  $(SOPHYAINCP)nbmath.h \
  $(SOPHYAINCP)triangmtx.h \
  $(SOPHYAINCP)bruit.h \
  $(SOPHYAINCP)circle.h \
  $(SOPHYAINCP)geometry.h \
  $(SOPHYAINCP)lambdaBuilder.h \
  $(SOPHYAINCP)misstime.h \
  $(SOPHYAINCP)mlobe.h \
  $(SOPHYAINCP)prefcount.h \
  $(SOPHYAINCP)scan.h \
  $(SOPHYAINCP)sphericaltransformserver.h \
  $(SOPHYAINCP)fftservintf.h \
  $(SOPHYAINCP)fftpserver.h \
  $(SOPHYAINCP)tod.h \
  $(SOPHYAINCP)sambainit.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)ntoolsinit.h \
  $(SOPHYAINCP)tarrinit.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h \
  $(SOPHYAINCP)fitstarray.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  map2cl.cc
 
$(SOPHYAOBJP)prjsmap.o: prjsmap.cc $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)nbmath.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)timing.h \
  $(SOPHYAINCP)array.h \
  $(SOPHYAINCP)tarray.h \
  $(SOPHYAINCP)basarr.h \
  $(SOPHYAINCP)anydataobj.h \
  $(SOPHYAINCP)mutyv.h \
  $(SOPHYAINCP)timestamp.h \
  $(SOPHYAINCP)objfio.h \
  $(SOPHYAINCP)ppersist.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)gnumd5.h \
  $(SOPHYAINCP)ppfbinstream.h \
  $(SOPHYAINCP)rawstream.h \
  $(SOPHYAINCP)ppfnametag.h \
  $(SOPHYAINCP)dvlist.h \
  $(SOPHYAINCP)ndatablock.h \
  $(SOPHYAINCP)utilarr.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)matharr.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)sopemtx.h \
  $(SOPHYAINCP)skymap.h \
  $(SOPHYAINCP)spherethetaphi.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)localmap.h \
  $(SOPHYAINCP)sphereecp.h \
  $(SOPHYAINCP)fiospherethetaphi.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)fiolocalmap.h \
  $(SOPHYAINCP)fiosphereecp.h \
  $(SOPHYAINCP)samba.h \
  $(SOPHYAINCP)alm.h \
  $(SOPHYAINCP)srandgen.h \
  $(SOPHYAINCP)nbmath.h \
  $(SOPHYAINCP)triangmtx.h \
  $(SOPHYAINCP)bruit.h \
  $(SOPHYAINCP)circle.h \
  $(SOPHYAINCP)geometry.h \
  $(SOPHYAINCP)lambdaBuilder.h \
  $(SOPHYAINCP)misstime.h \
  $(SOPHYAINCP)mlobe.h \
  $(SOPHYAINCP)prefcount.h \
  $(SOPHYAINCP)scan.h \
  $(SOPHYAINCP)sphericaltransformserver.h \
  $(SOPHYAINCP)fftservintf.h \
  $(SOPHYAINCP)fftpserver.h \
  $(SOPHYAINCP)tod.h \
  $(SOPHYAINCP)sambainit.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)ntoolsinit.h \
  $(SOPHYAINCP)tarrinit.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h \
  $(SOPHYAINCP)fitstarray.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  prjsmap.cc
 
