4119e28fca1dd0b18b45e094d558005be24170ac
[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
34 # C++ Headers
35
36 HDRS          = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h PHOSLinkDef.h
37
38 # Library dictionary
39
40 DICT          = PHOSCint.cxx
41 DICTH         = $(DICT:.cxx=.h)
42 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
43
44 # C++ Objects
45
46 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
47
48 # C++ compilation flags
49
50 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
51
52 ALSRCS  = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c
53
54 ALOBJS  = $(SHOBJS) $(RCOBJS) $(DUOBJS)
55
56 ##### COMMANDS ##### 
57
58 SLIBRARY        = $(LIBDIR)/libPHOS.$(SL)
59
60 default:        $(SLIBRARY)
61
62 $(LIBDIR)/libPHOS.$(SL):                        $(OBJS) $(FOBJS)
63
64 $(DICT):                                        $(HDRS)
65
66 depend:                         $(SRCS) 
67
68 TOCLEAN         =        $(OBJS) *Cint.cxx *Cint.h
69
70 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
71
72 ############################### General Macros ################################
73
74 include $(ALICE_ROOT)/conf/GeneralMacros
75
76 ############################ Dependencies #####################################
77
78 -include tgt_$(ALICE_TARGET)/Make-depend 
79
80
81 test:   
82                 @echo " ____________________________________________________________ "
83                 @echo " "
84                 @echo " Starting the test of the simulation/reconstruction software. Please don't take the warning messages into account. "
85                 @echo " ____________________________________________________________ "
86                 @aliroot -b -q "testsim.C(100)" > out
87                 @aliroot -b -q testsimglobal.C > out
88                 @rm out
89                 @rm testPHOS.root
90
91 test10: 
92                 @echo " ____________________________________________________________ "
93                 @echo " "
94                 @echo " Starting the test of the simulation/reconstruction software. Please don't take the warning messages into account. "
95                 @echo " ____________________________________________________________ "
96                 @aliroot -b -q "testsim.C(10)" > out
97                 @aliroot -b -q testsimglobal.C > out
98                 @rm out
99                 @rm testPHOS.root
100
101
102