]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/Makefile
Added a test tag for the test suite
[u/mrichter/AliRoot.git] / PHOS / Makefile
index 531532206aa070bc58988832a89b8c25ed830813..4119e28fca1dd0b18b45e094d558005be24170ac 100644 (file)
@@ -9,52 +9,45 @@ PACKAGE = PHOS
 
 # C++ sources
 
-SRCS          =    AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx AliPHOSv2.cxx AliPHOSv3.cxx
+SRCS          =  AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx \
+                 AliPHOSvFast.cxx AliPHOSvImpacts.cxx \
+                 AliPHOSImpact.cxx \
+                 AliPHOSHit.cxx AliPHOSTick.cxx\
+                 AliPHOSGeometry.cxx \
+                AliPHOSEMCAGeometry.cxx \
+                AliPHOSCPVGeometry.cxx AliPHOSCPVBaseGeometry.cxx \
+                AliPHOSSupportGeometry.cxx \
+                AliPHOSCPVDigit.cxx AliPHOSDigit.cxx  \
+                 AliPHOSRecPoint.cxx AliPHOSEmcRecPoint.cxx \
+                AliPHOSCpvRecPoint.cxx \
+                AliPHOSClusterizer.cxx AliPHOSClusterizerv1.cxx  \
+                 AliPHOSLink.cxx AliPHOSSDigitizer.cxx AliPHOSDigitizer.cxx\
+                AliPHOSReconstructioner.cxx  AliPHOSTrackSegment.cxx \
+                 AliPHOSTrackSegmentMaker.cxx AliPHOSTrackSegmentMakerv1.cxx \
+                 AliPHOSRecParticle.cxx AliPHOSPID.cxx AliPHOSPIDv1.cxx \
+                 AliPHOSAnalyze.cxx AliPHOSFastRecParticle.cxx \
+                 AliPHOSGetter.cxx AliPHOSTick.cxx \
+                AliPHOSQAVirtualCheckable.cxx AliPHOSQAIntCheckable.cxx \
+                 AliPHOSQAFloatCheckable.cxx\
+                 AliPHOSQAObjectCheckable.cxx AliPHOSQAChecker.cxx AliPHOSQAMeanChecker.cxx AliPHOSQAAlarm.cxx
 
 # C++ Headers
 
-HDRS          = $(SRCS:.cxx=.h) PHOSLinkDef.h
+HDRS          = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h PHOSLinkDef.h
 
 # Library dictionary
 
 DICT          = PHOSCint.cxx
 DICTH         = $(DICT:.cxx=.h)
-DICTO         = $(DICT:.cxx=.o)
-
-# FORTRAN sources
-
-FSRCS = AliPHOSf.F AliPHOScommon.F
-
-# FORTRAN Objectrs
-
-FOBJS         = $(FSRCS:.F=.o)
-
-# C Objects
-
-COBJS         = $(CSRCS:.c=.o)
+DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
 
 # C++ Objects
 
-OBJS          = $(SRCS:.cxx=.o) $(DICTO)
+OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
 
 # C++ compilation flags
 
 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
-# FORTRAN compilation flags
-
-FFLAGS      = $(FOPT)
-
-##### Other Libraries #####
-
-SHSRCS  = $(wildcard shaker/*.f)
-SHOBJS  = $(SHSRCS:.f=.o)
-
-RCSRCS  = $(wildcard reconstruction/*.f) $(wildcard utils/*.cxx) $(wildcard utils/*.f) 
-RCOBJS  = $(patsubst %.f,%.o,$(patsubst %.cxx,%.o,$(RCSRCS))) 
-
-DUSRCS = libPHOSdummy.cxx
-DUOBJS = $(DUSRCS:.cxx=.o)
 
 ALSRCS  = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c
 
@@ -62,25 +55,19 @@ ALOBJS  = $(SHOBJS) $(RCOBJS) $(DUOBJS)
 
 ##### COMMANDS ##### 
 
-SLIBRARY       = $(ALICE_ROOT)/lib/libPHOSdummy.$(SL) $(ALICE_ROOT)/lib/libPHOSshaker.$(SL) \
-                  $(ALICE_ROOT)/lib/libPHOSreconstruction.$(SL) $(ALICE_ROOT)/lib/libPHOS.$(SL)
+SLIBRARY       = $(LIBDIR)/libPHOS.$(SL)
 
 default:       $(SLIBRARY)
 
-$(ALICE_ROOT)/lib/libPHOSdummy.$(SL):          $(DUOBJS)
-
-$(ALICE_ROOT)/lib/libPHOSshaker.$(SL):         $(SHOBJS)
-
-$(ALICE_ROOT)/lib/libPHOSreconstruction.$(SL): $(RCOBJS)
-
-$(ALICE_ROOT)/lib/libPHOS.$(SL):                       $(OBJS) $(FOBJS)
+$(LIBDIR)/libPHOS.$(SL):                       $(OBJS) $(FOBJS)
 
 $(DICT):                                       $(HDRS)
 
-depend:                                $(SRCS) $(DUSRCS) $(SHSRCS) $(RCSRCS)
+depend:                                $(SRCS) 
 
-TOCLEAN                =       $(DUOBJS) $(SHOBJS) $(RCOBJS) $(OBJS) $(FOBJS) \
-                        *Cint.cxx *Cint.h
+TOCLEAN                =        $(OBJS) *Cint.cxx *Cint.h
+
+CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
 
 ############################### General Macros ################################
 
@@ -88,4 +75,28 @@ include $(ALICE_ROOT)/conf/GeneralMacros
 
 ############################ Dependencies #####################################
 
--include Make-depend 
+-include tgt_$(ALICE_TARGET)/Make-depend 
+
+
+test:  
+               @echo " ____________________________________________________________ "
+               @echo " "
+               @echo " Starting the test of the simulation/reconstruction software. Please don't take the warning messages into account. "
+               @echo " ____________________________________________________________ "
+               @aliroot -b -q "testsim.C(100)" > out
+               @aliroot -b -q testsimglobal.C > out
+               @rm out
+               @rm testPHOS.root
+
+test10:        
+               @echo " ____________________________________________________________ "
+               @echo " "
+               @echo " Starting the test of the simulation/reconstruction software. Please don't take the warning messages into account. "
+               @echo " ____________________________________________________________ "
+               @aliroot -b -q "testsim.C(10)" > out
+               @aliroot -b -q testsimglobal.C > out
+               @rm out
+               @rm testPHOS.root
+
+
+