MODULECXXREPNAME :=  PrgUtil
include ../Mgr/Makefile.h
 
ifdef NOSHLIB
LIBF =  $(LIB)libTArray.a $(LIB)libSysTools.a $(LIB)libNTools.a $(LIB)libSkyMap.a $(LIB)libSamba.a $(LIB)libSkyT.a $(LIB)lib.a $(LIB)lib.a
LIBS = -L$(LIB) -lTArray -lSysTools -lNTools -lSkyMap -lSamba -lSkyT -l -l  -lm
ifeq ($(CXX),cxx)
# librairie des instances de templates cxx
LIBS := $(LIBS) -lertcxx
endif
else
LIBF =  $(SLB)libsophya.so $(SLB)libextsophya.so
LIBS = -L$(SLB) -lsophya -lextsophya  -lm
endif
LIBSORA := $(LIBS)
LDLIBS := $(LIBS) $(LDLIBS)
PROGS = $(EXE)runcxx $(EXE)scanppf $(EXE)scanfits $(EXE)cl2map $(EXE)map2cl
 
all: $(PROGS)

clean:
	rm -f $(PROGS)
	if [ -d $(OBJ)cxxrep_PrgUtil ] ; then cd $(OBJ)cxxrep_PrgUtil ; rm -f *.o ; fi

runcxx: $(EXE)runcxx
	
$(EXE)runcxx: $(OBJ)runcxx.o
	$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ 
  
scanppf: $(EXE)scanppf
	
$(EXE)scanppf: $(OBJ)scanppf.o
	$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ 
  
scanfits: $(EXE)scanfits
	
$(EXE)scanfits: $(OBJ)scanfits.o
	$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ 
  
cl2map: $(EXE)cl2map
	
$(EXE)cl2map: $(OBJ)cl2map.o
	$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ 
  
map2cl: $(EXE)map2cl
	
$(EXE)map2cl: $(OBJ)map2cl.o
	$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ 
  
: $(EXE)
	
$(EXE):
	$(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ 
  
$(OBJ)cl2map.o: cl2map.cc $(INC)machdefs.h \
 $(INC)nbmath.h \
 $(INC)smathconst.h \
 $(INC)timing.h \
 $(INC)array.h \
 $(INC)tarray.h \
 $(INC)basarr.h \
 $(INC)anydataobj.h \
 $(INC)mutyv.h \
 $(INC)dvlist.h \
 $(INC)objfio.h \
 $(INC)ppersist.h \
 $(INC)pexceptions.h \
 $(INC)gnumd5.h \
 $(INC)ndatablock.h \
 $(INC)utilarr.h \
 $(INC)tmatrix.h \
 $(INC)tvector.h \
 $(INC)matharr.h \
 $(INC)fioarr.h \
 $(INC)sopemtx.h \
 $(INC)skymap.h \
 $(INC)spherethetaphi.h \
 $(INC)sphericalmap.h \
 $(INC)pixelmap.h \
 $(INC)spherepos.h \
 $(INC)unitvector.h \
 $(INC)vector3d.h \
 $(INC)longlat.h \
 $(INC)utilgeom.h \
 $(INC)spherehealpix.h \
 $(INC)HEALPixUtils.h \
 $(INC)localmap.h \
 $(INC)fiospherethetaphi.h \
 $(INC)fiospherehealpix.h \
 $(INC)fiolocalmap.h \
 $(INC)samba.h \
 $(INC)alm.h \
 $(INC)nbrandom.h \
 $(INC)srandgen.h \
 $(INC)triangmtx.h \
 $(INC)bruit.h \
 $(INC)circle.h \
 $(INC)geometry.h \
 $(INC)lambdaBuilder.h \
 $(INC)misstime.h \
 $(INC)mlobe.h \
 $(INC)prefcount.h \
 $(INC)scan.h \
 $(INC)sphericaltransformserver.h \
 $(INC)fftservintf.h \
 $(INC)fftpserver.h \
 $(INC)tod.h \
 $(INC)sambainit.h \
 $(INC)skymapinit.h \
 $(INC)sophyainit.h \
 $(INC)ntoolsinit.h \
 $(INC)tarrinit.h \
 $(INC)fitsspherehealpix.h \
 $(INC)fitsfile.h \
 $(INC)fitstarray.h
$(OBJ)map2cl.o: map2cl.cc $(INC)machdefs.h \
 $(INC)nbmath.h \
 $(INC)smathconst.h \
 $(INC)timing.h \
 $(INC)array.h \
 $(INC)tarray.h \
 $(INC)basarr.h \
 $(INC)anydataobj.h \
 $(INC)mutyv.h \
 $(INC)dvlist.h \
 $(INC)objfio.h \
 $(INC)ppersist.h \
 $(INC)pexceptions.h \
 $(INC)gnumd5.h \
 $(INC)ndatablock.h \
 $(INC)utilarr.h \
 $(INC)tmatrix.h \
 $(INC)tvector.h \
 $(INC)matharr.h \
 $(INC)fioarr.h \
 $(INC)sopemtx.h \
 $(INC)skymap.h \
 $(INC)spherethetaphi.h \
 $(INC)sphericalmap.h \
 $(INC)pixelmap.h \
 $(INC)spherepos.h \
 $(INC)unitvector.h \
 $(INC)vector3d.h \
 $(INC)longlat.h \
 $(INC)utilgeom.h \
 $(INC)spherehealpix.h \
 $(INC)HEALPixUtils.h \
 $(INC)localmap.h \
 $(INC)fiospherethetaphi.h \
 $(INC)fiospherehealpix.h \
 $(INC)fiolocalmap.h \
 $(INC)samba.h \
 $(INC)alm.h \
 $(INC)nbrandom.h \
 $(INC)srandgen.h \
 $(INC)triangmtx.h \
 $(INC)bruit.h \
 $(INC)circle.h \
 $(INC)geometry.h \
 $(INC)lambdaBuilder.h \
 $(INC)misstime.h \
 $(INC)mlobe.h \
 $(INC)prefcount.h \
 $(INC)scan.h \
 $(INC)sphericaltransformserver.h \
 $(INC)fftservintf.h \
 $(INC)fftpserver.h \
 $(INC)tod.h \
 $(INC)sambainit.h \
 $(INC)skymapinit.h \
 $(INC)sophyainit.h \
 $(INC)ntoolsinit.h \
 $(INC)tarrinit.h \
 $(INC)fitsspherehealpix.h \
 $(INC)fitsfile.h \
 $(INC)fitstarray.h
$(OBJ)runcxx.o: runcxx.cc $(INC)sambainit.h \
 $(INC)skymapinit.h \
 $(INC)sophyainit.h \
 $(INC)machdefs.h \
 $(INC)ntoolsinit.h \
 $(INC)tarrinit.h \
 $(INC)skyinit.h \
 $(INC)pexceptions.h \
 $(INC)cxxcmplnk.h \
 $(INC)pdlmgr.h \
 $(INC)timing.h
$(OBJ)scanfits.o: scanfits.cc $(INC)histinit.h \
 $(INC)ntoolsinit.h \
 $(INC)tarrinit.h \
 $(INC)sophyainit.h \
 $(INC)machdefs.h \
 $(INC)dvlist.h \
 $(INC)objfio.h \
 $(INC)anydataobj.h \
 $(INC)ppersist.h \
 $(INC)pexceptions.h \
 $(INC)gnumd5.h \
 $(INC)mutyv.h \
 $(INC)ntuple.h \
 $(INC)ntupintf.h \
 $(INC)xntuple.h \
 $(INC)fitsxntuple.h \
 $(INC)fitsfile.h \
 $(INC)ndatablock.h \
 $(INC)fitsntuple.h
$(OBJ)scanppf.o: scanppf.cc $(INC)ppersist.h \
 $(INC)machdefs.h \
 $(INC)pexceptions.h \
 $(INC)gnumd5.h \
 $(INC)anydataobj.h \
 $(INC)sambainit.h \
 $(INC)skymapinit.h \
 $(INC)sophyainit.h \
 $(INC)ntoolsinit.h \
 $(INC)tarrinit.h
