New Clusterization by IHEP (yuri)
[u/mrichter/AliRoot.git] / PHOS / Makefile
1 ############################### PHOS Makefile #################################
2
3 # Include machine specific definitions
4
5 include $(ALICE_ROOT)/conf/GeneralDef
6 include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8 PACKAGE = PHOS
9
10 # C++ sources
11
12 SRCS          =  AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx \
13                  AliPHOSvFast.cxx AliPHOSvImpacts.cxx \
14                  AliPHOSImpact.cxx \
15                  AliPHOSHit.cxx AliPHOSTick.cxx\
16                  AliPHOSGeometry.cxx \
17                  AliPHOSEMCAGeometry.cxx \
18                  AliPHOSCPVGeometry.cxx AliPHOSCPVBaseGeometry.cxx \
19                  AliPHOSSupportGeometry.cxx \
20                  AliPHOSCPVDigit.cxx AliPHOSDigit.cxx  \
21                  AliPHOSRecPoint.cxx AliPHOSEmcRecPoint.cxx \
22                  AliPHOSCpvRecPoint.cxx \
23                  AliPHOSClusterizer.cxx AliPHOSClusterizerv1.cxx  \
24                  AliPHOSLink.cxx AliPHOSSDigitizer.cxx AliPHOSDigitizer.cxx\
25                  AliPHOSReconstructioner.cxx  AliPHOSTrackSegment.cxx \
26                  AliPHOSTrackSegmentMaker.cxx AliPHOSTrackSegmentMakerv1.cxx \
27                  AliPHOSRecParticle.cxx AliPHOSPID.cxx AliPHOSPIDv1.cxx \
28                  AliPHOSAnalyze.cxx AliPHOSFastRecParticle.cxx \
29                  AliPHOSGetter.cxx AliPHOSTick.cxx \
30                  AliPHOSQAVirtualCheckable.cxx AliPHOSQAIntCheckable.cxx \
31                  AliPHOSQAFloatCheckable.cxx\
32                  AliPHOSQAObjectCheckable.cxx AliPHOSQAChecker.cxx AliPHOSQAMeanChecker.cxx AliPHOSQAAlarm.cxx \
33                  AliPHOSIhepAnalyze.cxx AliPHOSEvalRecPoint.cxx \
34                  AliPHOSRecManager.cxx AliPHOSRecCpvManager.cxx AliPHOSRecEmcManager.cxx \
35                  AliPHOSClusterizerv2.cxx
36
37 # C++ Headers
38
39 HDRS          = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h PHOSLinkDef.h
40
41 # Library dictionary
42
43 DICT          = PHOSCint.cxx
44 DICTH         = $(DICT:.cxx=.h)
45 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
46
47 # C++ Objects
48
49 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
50
51 # C++ compilation flags
52
53 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
54
55 ALSRCS  = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c
56
57 ALOBJS  = $(SHOBJS) $(RCOBJS) $(DUOBJS)
58
59 ##### COMMANDS ##### 
60
61 SLIBRARY        = $(LIBDIR)/libPHOS.$(SL)
62
63 default:        $(SLIBRARY)
64
65 $(LIBDIR)/libPHOS.$(SL):                        $(OBJS) $(FOBJS)
66
67 $(DICT):                                        $(HDRS)
68
69 depend:                         $(SRCS) 
70
71 TOCLEAN         =        $(OBJS) *Cint.cxx *Cint.h
72
73 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
74
75 ############################### General Macros ################################
76
77 include $(ALICE_ROOT)/conf/GeneralMacros
78
79 ############################ Dependencies #####################################
80
81 -include tgt_$(ALICE_TARGET)/Make-depend 
82
83 test:   
84                 @echo " ____________________________________________________________ "
85                 @echo " "
86                 @echo " Starting the test of the simulation/reconstruction software. Please don't take the warning messages into account. "
87                 @echo " ____________________________________________________________ "
88                 @aliroot -b -q testsim.C > out
89                 @aliroot -b -q testsimglobal.C > out
90                 @rm out
91                 @rm testPHOS.root
92
93
94
95
96
97