include $(SOPHYABASE)/include/sophyamake.inc
 
PROGS = $(SOPHYAEXEP)skymixer $(SOPHYAEXEP)extractRS $(SOPHYAEXEP)tgrsr $(SOPHYAEXEP)tgsky $(SOPHYAEXEP)easyTest $(SOPHYAEXEP)Sph2Sph
 
all: $(PROGS)
 
clean:
	rm -f $(PROGS)
	rm -f $(SOPHYAOBJP)Sph2Sph.o $(SOPHYAOBJP)easyTest.o $(SOPHYAOBJP)tgsky.o $(SOPHYAOBJP)tgrsr.o $(SOPHYAOBJP)extractRS.o $(SOPHYAOBJP)skymixer.o
 
skymixer: $(SOPHYAEXEP)skymixer
	echo $@ " done"
$(SOPHYAEXEP)skymixer: $(SOPHYAOBJP)skymixer.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)skymixer.o $(SOPHYAEXTSLBLIST)
 
extractRS: $(SOPHYAEXEP)extractRS
	echo $@ " done"
$(SOPHYAEXEP)extractRS: $(SOPHYAOBJP)extractRS.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)extractRS.o $(SOPHYAEXTSLBLIST)
 
tgrsr: $(SOPHYAEXEP)tgrsr
	echo $@ " done"
$(SOPHYAEXEP)tgrsr: $(SOPHYAOBJP)tgrsr.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)tgrsr.o $(SOPHYAEXTSLBLIST)
 
tgsky: $(SOPHYAEXEP)tgsky
	echo $@ " done"
$(SOPHYAEXEP)tgsky: $(SOPHYAOBJP)tgsky.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)tgsky.o $(SOPHYAEXTSLBLIST)
 
easyTest: $(SOPHYAEXEP)easyTest
	echo $@ " done"
$(SOPHYAEXEP)easyTest: $(SOPHYAOBJP)easyTest.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)easyTest.o $(SOPHYAEXTSLBLIST)
 
Sph2Sph: $(SOPHYAEXEP)Sph2Sph
	echo $@ " done"
$(SOPHYAEXEP)Sph2Sph: $(SOPHYAOBJP)Sph2Sph.o
	$(CXXLINK) $(CXXTEMPFLG) -o $@ $(SOPHYAOBJP)Sph2Sph.o $(SOPHYAEXTSLBLIST)
 
$(SOPHYAOBJP)Sph2Sph.o: Sph2Sph.cc $(SOPHYAINCP)sopnamsp.h \
  pmixer.h $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)machdefs.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)randinterf.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)srandgen.h \
  $(SOPHYAINCP)timing.h \
  $(SOPHYAINCP)sambainit.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)ntoolsinit.h \
  $(SOPHYAINCP)tarrinit.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)datacards.h \
  $(SOPHYAINCP)ntuple.h \
  $(SOPHYAINCP)ntupintf.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h \
  $(SOPHYAINCP)fitstarray.h \
  $(SOPHYAINCP)cimage.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)radspecvector.h \
  $(SOPHYAINCP)radspec.h \
  $(SOPHYAINCP)specresp.h \
  $(SOPHYAINCP)blackbody.h \
  $(SOPHYAINCP)convtools.h \
  $(SOPHYAINCP)derivblackbody.h \
  $(SOPHYAINCP)nupower.h \
  $(SOPHYAINCP)squarefilt.h \
  $(SOPHYAINCP)trianglefilt.h \
  $(SOPHYAINCP)specrespvector.h \
  $(SOPHYAINCP)gaussfilt.h \
  $(SOPHYAINCP)bruit.h \
  $(SOPHYAINCP)mapoperation.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  Sph2Sph.cc
 
$(SOPHYAOBJP)easyTest.o: easyTest.cc $(SOPHYAINCP)sopnamsp.h \
  $(SOPHYAINCP)blackbody.h \
  $(SOPHYAINCP)radspec.h \
  $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)specresp.h \
  $(SOPHYAINCP)anydataobj.h \
  $(SOPHYAINCP)objfio.h \
  $(SOPHYAINCP)ppersist.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)gnumd5.h \
  $(SOPHYAINCP)ppfbinstream.h \
  $(SOPHYAINCP)rawstream.h \
  $(SOPHYAINCP)ppfnametag.h \
  $(SOPHYAINCP)convtools.h \
  $(SOPHYAINCP)radspecvector.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tarray.h \
  $(SOPHYAINCP)basarr.h \
  $(SOPHYAINCP)mutyv.h \
  $(SOPHYAINCP)timestamp.h \
  $(SOPHYAINCP)dvlist.h \
  $(SOPHYAINCP)ndatablock.h \
  $(SOPHYAINCP)utilarr.h \
  $(SOPHYAINCP)randinterf.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)specrespvector.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)squarefilt.h \
  $(SOPHYAINCP)gaussfilt.h \
  $(SOPHYAINCP)trianglefilt.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  easyTest.cc
 
$(SOPHYAOBJP)extractRS.o: extractRS.cc $(SOPHYAINCP)sopnamsp.h \
  pmixer.h $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)machdefs.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)randinterf.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)srandgen.h \
  $(SOPHYAINCP)timing.h \
  $(SOPHYAINCP)sambainit.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)ntoolsinit.h \
  $(SOPHYAINCP)tarrinit.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)datacards.h \
  $(SOPHYAINCP)ntuple.h \
  $(SOPHYAINCP)ntupintf.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h \
  $(SOPHYAINCP)fitstarray.h \
  $(SOPHYAINCP)cimage.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)radspecvector.h \
  $(SOPHYAINCP)radspec.h \
  $(SOPHYAINCP)specresp.h \
  $(SOPHYAINCP)blackbody.h \
  $(SOPHYAINCP)convtools.h \
  $(SOPHYAINCP)derivblackbody.h \
  $(SOPHYAINCP)nupower.h \
  $(SOPHYAINCP)squarefilt.h \
  $(SOPHYAINCP)trianglefilt.h \
  $(SOPHYAINCP)specrespvector.h \
  $(SOPHYAINCP)gaussfilt.h \
  $(SOPHYAINCP)bruit.h \
  $(SOPHYAINCP)mapoperation.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  extractRS.cc
 
$(SOPHYAOBJP)skymixer.o: skymixer.cc $(SOPHYAINCP)sopnamsp.h \
  pmixer.h $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)machdefs.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)randinterf.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)srandgen.h \
  $(SOPHYAINCP)timing.h \
  $(SOPHYAINCP)sambainit.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)ntoolsinit.h \
  $(SOPHYAINCP)tarrinit.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)datacards.h \
  $(SOPHYAINCP)ntuple.h \
  $(SOPHYAINCP)ntupintf.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h \
  $(SOPHYAINCP)fitstarray.h \
  $(SOPHYAINCP)cimage.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)radspecvector.h \
  $(SOPHYAINCP)radspec.h \
  $(SOPHYAINCP)specresp.h \
  $(SOPHYAINCP)blackbody.h \
  $(SOPHYAINCP)convtools.h \
  $(SOPHYAINCP)derivblackbody.h \
  $(SOPHYAINCP)nupower.h \
  $(SOPHYAINCP)squarefilt.h \
  $(SOPHYAINCP)trianglefilt.h \
  $(SOPHYAINCP)specrespvector.h \
  $(SOPHYAINCP)gaussfilt.h \
  $(SOPHYAINCP)bruit.h \
  $(SOPHYAINCP)mapoperation.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  skymixer.cc
 
$(SOPHYAOBJP)tgrsr.o: tgrsr.cc $(SOPHYAINCP)sopnamsp.h \
  pmixer.h $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)machdefs.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)randinterf.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)srandgen.h \
  $(SOPHYAINCP)timing.h \
  $(SOPHYAINCP)sambainit.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)ntoolsinit.h \
  $(SOPHYAINCP)tarrinit.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)datacards.h \
  $(SOPHYAINCP)ntuple.h \
  $(SOPHYAINCP)ntupintf.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h \
  $(SOPHYAINCP)fitstarray.h \
  $(SOPHYAINCP)cimage.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)radspecvector.h \
  $(SOPHYAINCP)radspec.h \
  $(SOPHYAINCP)specresp.h \
  $(SOPHYAINCP)blackbody.h \
  $(SOPHYAINCP)convtools.h \
  $(SOPHYAINCP)derivblackbody.h \
  $(SOPHYAINCP)nupower.h \
  $(SOPHYAINCP)squarefilt.h \
  $(SOPHYAINCP)trianglefilt.h \
  $(SOPHYAINCP)specrespvector.h \
  $(SOPHYAINCP)gaussfilt.h \
  $(SOPHYAINCP)bruit.h \
  $(SOPHYAINCP)mapoperation.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  tgrsr.cc
 
$(SOPHYAOBJP)tgsky.o: tgsky.cc $(SOPHYAINCP)sopnamsp.h \
  pmixer.h $(SOPHYAINCP)machdefs.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)machdefs.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)randinterf.h \
  $(SOPHYAINCP)tmatrix_tsnl.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)tmatrix.h \
  $(SOPHYAINCP)tvector_tsnl.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)tvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)longlat.h \
  $(SOPHYAINCP)utilgeom.h \
  $(SOPHYAINCP)srandgen.h \
  $(SOPHYAINCP)timing.h \
  $(SOPHYAINCP)sambainit.h \
  $(SOPHYAINCP)skymapinit.h \
  $(SOPHYAINCP)sophyainit.h \
  $(SOPHYAINCP)ntoolsinit.h \
  $(SOPHYAINCP)tarrinit.h \
  $(SOPHYAINCP)pexceptions.h \
  $(SOPHYAINCP)datacards.h \
  $(SOPHYAINCP)ntuple.h \
  $(SOPHYAINCP)ntupintf.h \
  $(SOPHYAINCP)fiospherehealpix.h \
  $(SOPHYAINCP)sphericalmap.h \
  $(SOPHYAINCP)smathconst.h \
  $(SOPHYAINCP)pixelmap.h \
  $(SOPHYAINCP)spherepos.h \
  $(SOPHYAINCP)unitvector.h \
  $(SOPHYAINCP)vector3d.h \
  $(SOPHYAINCP)datatype.h \
  $(SOPHYAINCP)spherehealpix.h \
  $(SOPHYAINCP)HEALPixUtils.h \
  $(SOPHYAINCP)fitsspherehealpix.h \
  $(SOPHYAINCP)fitsfile.h \
  $(SOPHYAINCP)fitsinoutfile.h \
  $(SOPHYAINCP)FitsIO/fitsio.h \
  $(SOPHYAINCP)FitsIO/longnam.h \
  $(SOPHYAINCP)fitshandler.h \
  $(SOPHYAINCP)fitstarray.h \
  $(SOPHYAINCP)cimage.h \
  $(SOPHYAINCP)fioarr.h \
  $(SOPHYAINCP)radspecvector.h \
  $(SOPHYAINCP)radspec.h \
  $(SOPHYAINCP)specresp.h \
  $(SOPHYAINCP)blackbody.h \
  $(SOPHYAINCP)convtools.h \
  $(SOPHYAINCP)derivblackbody.h \
  $(SOPHYAINCP)nupower.h \
  $(SOPHYAINCP)squarefilt.h \
  $(SOPHYAINCP)trianglefilt.h \
  $(SOPHYAINCP)specrespvector.h \
  $(SOPHYAINCP)gaussfilt.h \
  $(SOPHYAINCP)bruit.h \
  $(SOPHYAINCP)mapoperation.h
	$(CXXCOMPILE) $(CXXTEMPFLG) -o $@  tgsky.cc
 
