Changeset 2800
- Timestamp:
- 01/14/04 10:13:02 (21 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2799 r2800 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 2004/01/14: Thomas Bretz 8 9 * Makefile: 10 - replaced old style Makefile.depend by directory specific 11 dependancy files 12 13 * Makefile.rules: 14 - changed obsolete '.cc.o' style to newer style '%.o: %.c' 15 - added rule to make dependency files 16 - added rule to remove dependancy files. 17 - added rmdep as prerequisite to clean 18 - include dependency file 19 20 * mbase/Makefile, mcalib/Makefile, mcamera/Makefile, 21 mdata/Makefile, mfileio/Makefile, mfilter/Makefile, 22 mgeom/Makefile, mgui/Makefile, mhbase/Makefile, 23 mhist/Makefile, mhistmc/Makefile, mimage/Makefile, 24 mmain/Makefile, mmc/Makefile, mmontecarlo/Makefile, 25 mpointing/Makefile, mranforest/Makefile, mraw/Makefile, 26 mreflector/Makefile, mreport/Makefile, mtemp/Makefile, 27 mtools/Makefile: 28 - removed clean-rule, use the one in Makefile.rules instead 29 30 * mreport/Makefile, mreport/ReportLinkDef.h: 31 - added MReportHelp 32 33 * mreport/MReportFileRead.cc: 34 - moved code from MReportHelp to new file 35 - removed usage of MRepoort class completely 36 6 37 7 38 -
trunk/MagicSoft/Mars/Makefile
r2780 r2800 88 88 89 89 include Makefile.rules 90 include Makefile.depend91 90 92 91 # … … 103 102 $(CXX) $(CXXFLAGS) $(ROOTGLIBS) $(LIBS) $@.o $(MARS_LIB) -o $@ 104 103 104 # FOR CONVINIENCE CREATE Dep-file first! 105 105 $(LIBRARIES): 106 106 @echo " Creating lib$@:" … … 123 123 @echo 124 124 125 clean: rmmake rmcint rmobjsrmcore rmlib125 #clean: rmcint rmobjs rmdep rmcore rmlib 126 126 127 mrproper: $(MRPROPERS) rm make rmbin rmbak rmbakmac rmhtml clean127 mrproper: $(MRPROPERS) rmbin rmbak rmbakmac rmhtml clean 128 128 @echo " Done." 129 129 @echo " " … … 135 135 # @gzip -9 ../mars.tar 136 136 137 Makefile.depend:138 (! find ./ Makefile.depend -maxdepth 1 -empty 2> /dev/null && \139 echo " Generating dependancies into Makefile.depend" && \140 makedepend -- $(INCLUDES) -- $(PROGRAMS:=.cc) $(SRCS) $(SUBDIRS:=/*.cc) -w1024 -f- 2> /dev/null | grep -v Cint | grep -v "/usr/" > Makefile.depend && \141 echo " ") || find -maxdepth 0 -true > /dev/null142 143 depend: Makefile.depend137 #Makefile.depend: 138 # (! find ./ Makefile.depend -maxdepth 1 -empty 2> /dev/null && \ 139 # echo " Generating dependancies into Makefile.depend" && \ 140 # makedepend -- $(INCLUDES) -- $(PROGRAMS:=.cc) $(SRCS) $(SUBDIRS:=/*.cc) -w1024 -f- 2> /dev/null | grep -v Cint | grep -v "/usr/" > Makefile.depend && \ 141 # echo " ") || find -maxdepth 0 -true > /dev/null 142 # 143 #depend: Makefile.depend 144 144 145 145 # @endcode -
trunk/MagicSoft/Mars/Makefile.rules
r2711 r2800 1 include $(CINT)Dep.d 1 2 2 3 $(LIB): $(OBJS) $(CINT)Cint.o … … 11 12 -c $(INCLUDES) $(DEFINES) $(HEADERS) $(CINT)Incl.h $(CINT)LinkDef.h 12 13 13 .cxx.o: 14 %.d: 15 @echo " - Generating dependancies" $@ 16 $(ROOTSYS)/bin/rmkdepend -f- -Y -w 3000 -- $(INCLUDES) -- $(SRCFILES) 2> /dev/null | \ 17 sed 's/^\(.*\).o:/$@ \1.o:/' > $@ 18 19 %.o: %.cxx 14 20 @echo " - Compiling" $< 15 21 $(CXX) $(CXXFLAGS) -c $< -o $@ 16 22 17 .cc.o: 23 %.o: %.cc 18 24 @echo " - Compiling" $< 19 25 $(CXX) $(CXXFLAGS) -c $< -o $@ 20 26 21 .c.o: 27 %.o: %.c 22 28 @echo " - Compiling" $< 23 29 $(CC) $(CFLAGS) -c $< -o $@ … … 26 32 # The cleaning facility 27 33 # 28 29 rmmake:30 @echo " Removing Makefile.depend"31 @rm -f Makefile.depend32 34 33 35 rmcint: … … 43 45 @echo " Removing object files..." 44 46 @rm -f *.o 47 48 rmdep: 49 @echo " Removing dependency file..." 50 @rm -f *Dep.d 45 51 46 52 rmcore: … … 66 72 ls htmldoc/* | grep "htmldoc/" | grep -v images | grep -v CVS | xargs rm -f 67 73 74 clean: rmcint rmobjs rmdep rmcore rmlib 75 68 76 cflags: 69 77 @echo $(INCLUDES) $(CXXFLAGS) -
trunk/MagicSoft/Mars/manalysis/Makefile
r2777 r2800 24 24 INCLUDES = -I. -I../mbase -I../mmc -I../mraw -I../mgeom -I../mfilter \ 25 25 -I../mdata -I../mhbase -I../mhist -I../mgui -I../mimage \ 26 -I../mhistmc -I../mfileio -I../mmain -I../mcalib 26 -I../mhistmc -I../mfileio -I../mmain -I../mcalib \ 27 -I../mpointing 27 28 # mcalib: MGeomApply (MCalibrationCam) 28 29 … … 33 34 SRCFILES = MPedestalPix.cc \ 34 35 MPedestalCam.cc \ 36 MPedPhotPix.cc \ 37 MPedPhotCam.cc \ 35 38 MPedCalcPedRun.cc \ 36 39 MMcPedestalCopy.cc \ 37 40 MMcPedestalNSBAdd.cc \ 38 41 MGeomApply.cc \ 39 MCurrents.cc \40 42 MCameraData.cc \ 41 43 MEnergyEst.cc \ … … 82 84 MArrivalTimeCalc.cc \ 83 85 MMcCalibrationCalc.cc \ 84 MSimulatedAnnealing.cc \ 85 MPedPhotCam.cc \ 86 MPedPhotPix.cc 86 MSimulatedAnnealing.cc 87 87 88 88 SRCS = $(SRCFILES) -
trunk/MagicSoft/Mars/mbase/Makefile
r2784 r2800 77 77 include ../Makefile.rules 78 78 79 clean: rmcint rmobjs rmcore rmlib79 #clean: rmcint rmobjs rmcore rmlib 80 80 81 81 mrproper: clean rmbak 82 82 83 83 # @endcode 84 -
trunk/MagicSoft/Mars/mcalib/Makefile
r2736 r2800 55 55 include ../Makefile.rules 56 56 57 clean: rmcint rmobjs rmcore rmlib57 #clean: rmcint rmobjs rmcore rmlib 58 58 59 59 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mcamera/Makefile
r2632 r2800 49 49 include ../Makefile.rules 50 50 51 clean: rmcint rmobjs rmcore rmlib51 #clean: rmcint rmobjs rmcore rmlib 52 52 53 53 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mdata/Makefile
r2738 r2800 49 49 include ../Makefile.rules 50 50 51 clean: rmcint rmobjs rmcore rmlib51 #clean: rmcint rmobjs rmcore rmlib 52 52 53 53 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mfileio/Makefile
r2740 r2800 62 62 include ../Makefile.rules 63 63 64 clean: rmcint rmobjs rmcore rmlib64 #clean: rmcint rmobjs rmcore rmlib 65 65 66 66 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mfilter/Makefile
r2743 r2800 64 64 include ../Makefile.rules 65 65 66 clean: rmcint rmobjs rmcore rmlib66 #clean: rmcint rmobjs rmcore rmlib 67 67 68 68 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mgeom/Makefile
r2283 r2800 51 51 include ../Makefile.rules 52 52 53 clean: rmcint rmobjs rmcore rmlib53 #clean: rmcint rmobjs rmcore rmlib 54 54 55 55 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mgui/Makefile
r2264 r2800 41 41 include ../Makefile.rules 42 42 43 clean: rmcint rmobjs rmcore rmlib43 #clean: rmcint rmobjs rmcore rmlib 44 44 45 45 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mhbase/Makefile
r2738 r2800 46 46 include ../Makefile.rules 47 47 48 clean: rmcint rmobjs rmcore rmlib48 #clean: rmcint rmobjs rmcore rmlib 49 49 50 50 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mhist/Makefile
r2738 r2800 24 24 INCLUDES = -I. -I../mbase -I../mhbase -I../mraw -I../manalysis \ 25 25 -I../mgui -I../mgeom -I../mdata -I../mfilter -I../mimage \ 26 -I../mmain -I../mmc -I../mreflector 26 -I../mmain -I../mmc -I../mreflector -I../mpointing 27 27 28 28 #------------------------------------------------------------------------------ … … 74 74 include ../Makefile.rules 75 75 76 clean: rmcint rmobjs rmcore rmlib76 #clean: rmcint rmobjs rmcore rmlib 77 77 78 78 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mhistmc/Makefile
r2737 r2800 52 52 include ../Makefile.rules 53 53 54 clean: rmcint rmobjs rmcore rmlib54 #clean: rmcint rmobjs rmcore rmlib 55 55 56 56 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mimage/Makefile
r2737 r2800 54 54 include ../Makefile.rules 55 55 56 clean: rmcint rmobjs rmcore rmlib56 #clean: rmcint rmobjs rmcore rmlib 57 57 58 58 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mmain/Makefile
r2738 r2800 52 52 include ../Makefile.rules 53 53 54 clean: rmcint rmobjs rmcore rmlib54 #clean: rmcint rmobjs rmcore rmlib 55 55 56 56 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mmontecarlo/Makefile
r2738 r2800 47 47 include ../Makefile.rules 48 48 49 clean: rmcint rmobjs rmcore rmlib49 #clean: rmcint rmobjs rmcore rmlib 50 50 51 51 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mpointing/Makefile
r2600 r2800 41 41 include ../Makefile.rules 42 42 43 clean: rmcint rmobjs rmcore rmlib43 #clean: rmcint rmobjs rmcore rmlib 44 44 45 45 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mranforest/Makefile
r2739 r2800 47 47 include ../Makefile.rules 48 48 49 clean: rmcint rmobjs rmcore rmlib49 #clean: rmcint rmobjs rmcore rmlib 50 50 51 51 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mraw/Makefile
r2675 r2800 50 50 include ../Makefile.rules 51 51 52 clean: rmcint rmobjs rmcore rmlib52 #clean: rmcint rmobjs rmcore rmlib 53 53 54 54 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mreflector/Makefile
r2208 r2800 43 43 include ../Makefile.rules 44 44 45 clean: rmcint rmobjs rmcore rmlib45 #clean: rmcint rmobjs rmcore rmlib 46 46 47 47 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mreport/MReportFileRead.cc
r2711 r2800 42 42 #include <fstream> 43 43 44 #include <TClass.h>45 44 #include <TRegexp.h> 46 45 #include <THashTable.h> … … 49 48 #include "MLogManip.h" 50 49 51 #include "MReport.h"52 50 #include "MParList.h" 51 #include "MReportHelp.h" 53 52 54 53 ClassImp(MReportFileRead); … … 58 57 const TString MReportFileRead::gsReportHeader ="[CC Report File]"; 59 58 const TString MReportFileRead::gsVersionPrefix="Arehucas Version Number"; 60 61 class MReportHelp : public TObject62 {63 private:64 MReport *fReport;65 ULong_t fNumReports;66 67 public:68 MReportHelp(const char *name, MLog *fLog) : fReport(NULL), fNumReports(0)69 {70 TClass *cls = gROOT->GetClass(name);71 Int_t rc = 0;72 if (!cls)73 rc =1;74 else75 {76 if (!cls->Property())77 rc = 5;78 if (!cls->Size())79 rc = 4;80 if (!cls->IsLoaded())81 rc = 3;82 if (!cls->HasDefaultConstructor())83 rc = 2;84 }85 86 if (rc)87 {88 *fLog << err << dbginf << "Cannot create new instance of class '" << name << "': ";89 switch (rc)90 {91 case 1:92 *fLog << "gROOT->GetClass() returned NULL." << endl;93 return;94 case 2:95 *fLog << "no default constructor." << endl;96 return;97 case 3:98 *fLog << "not loaded." << endl;99 return;100 case 4:101 *fLog << "zero size." << endl;102 return;103 case 5:104 *fLog << "no property." << endl;105 return;106 }107 }108 109 //110 // create the parameter container of the the given class type111 //112 fReport = (MReport*)cls->New();113 }114 ~MReportHelp() { if (fReport) delete fReport; }115 116 const char *GetName() const { return fReport->GetIdentifier(); }117 ULong_t GetNumReports() const { return fNumReports; }118 ULong_t Hash() const { return fReport->GetIdentifier().Hash(); }119 MReport *GetReport() { return fReport; }120 //void SetTime(MTime *t) { fReport->SetTime(t); }121 Int_t Interprete(TString &str, const MTime &start, const MTime &stop)122 {123 const Int_t rc = fReport->Interprete(str, start, stop);124 125 if (rc==kFALSE)126 return kFALSE;127 128 fNumReports++;129 return rc;130 }131 Bool_t SetupReading(MParList &plist) { return fReport->SetupReading(plist); }132 void AddToList(MParList &plist) { plist.AddToList(fReport); }133 };134 59 135 60 // -------------------------------------------------------------------------- … … 183 108 MReportHelp *help = new MReportHelp(name, fLog); 184 109 185 MReport *rep = NULL; 186 if (!(rep=help->GetReport())) 187 return kFALSE; 188 189 if (GetReport(rep->GetIdentifier())) 110 if (!help->GetReport()) 111 return kFALSE; 112 113 if (GetReport(help->GetName())) 190 114 { 191 115 *fLog << warn << "WARNING - Report with Identifier '"; 192 *fLog << rep->GetIdentifier() << "' already added to the list... ";116 *fLog << help->GetName() << "' already added to the list... "; 193 117 *fLog << "ignored." << endl; 194 118 delete help; -
trunk/MagicSoft/Mars/mreport/Makefile
r2707 r2800 33 33 MReportRun.cc \ 34 34 MReportDAQ.cc \ 35 MReportHelp.cc \ 35 36 MReportDrive.cc \ 36 37 MReportCamera.cc \ … … 49 50 include ../Makefile.rules 50 51 51 clean: rmcint rmobjs rmcore rmlib52 #clean: rmcint rmobjs rmcore rmlib 52 53 53 54 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mreport/ReportLinkDef.h
r2707 r2800 15 15 #pragma link C++ class MReportCurrents+; 16 16 17 #pragma link C++ class MReportHelp+; 17 18 #pragma link C++ class MReportFileRead+; 18 19 -
trunk/MagicSoft/Mars/mtemp/Makefile
r1681 r2800 43 43 include ../Makefile.rules 44 44 45 clean: rmcint rmobjs rmcore rmlib45 #clean: rmcint rmobjs rmcore rmlib 46 46 47 47 mrproper: clean rmbak -
trunk/MagicSoft/Mars/mtools/Makefile
r2745 r2800 50 50 include ../Makefile.rules 51 51 52 clean: rmcint rmobjs rmcore rmlib52 #clean: rmcint rmobjs rmcore rmlib 53 53 54 54 mrproper: clean rmbak -
trunk/MagicSoft/include-Classes/MMcFormat/Makefile
r1619 r2800 52 52 include ../Makefile.rules 53 53 54 clean: rmcint rmobjs rmcore rmlib54 #clean: rmcint rmobjs rmcore rmlib 55 55 56 56 mrproper: clean rmbak
Note:
See TracChangeset
for help on using the changeset viewer.