MODULECXXREPNAME := PrgUtil include ../Mgr/Makefile.h ifdef NOSHLIB LIBF = $(LIB)libFitsIOServer.a $(LIB)libSamba.a $(LIB)libSkyMap.a $(LIB)libSkyT.a $(LIB)libNTools.a $(LIB)libHiStats.a $(LIB)libTArray.a $(LIB)libSysTools.a LIBS = -L$(LIB) -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools -lHiStats -lTArray -lSysTools -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 PROBJS = $(OBJ)runcxx.o $(OBJ)scanppf.o $(OBJ)scanfits.o all: $(PROGS) clean: rm -f $(PROGS) rm -f $(PROBJS) if [ -d $(OBJ)cxxrep_PrgUtil ] ; then cd $(OBJ)cxxrep_PrgUtil ; rm -f *.o ; fi runcxx: $(EXE)runcxx @ echo runcxx done $(EXE)runcxx: $(OBJ)runcxx.o $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ scanppf: $(EXE)scanppf @ echo scanppf done $(EXE)scanppf: $(OBJ)scanppf.o $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ scanfits: $(EXE)scanfits @ echo scanfits done $(EXE)scanfits: $(OBJ)scanfits.o $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(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