fe4da5cc |
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 | |
9688c1dd |
12 | SRCS = AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx \ |
13 | AliPHOSvFast.cxx AliPHOSvImpacts.cxx \ |
f9f98839 |
14 | AliPHOSImpact.cxx \ |
7437a0f7 |
15 | AliPHOSHit.cxx AliPHOSTick.cxx\ |
cce428fe |
16 | AliPHOSGeometry.cxx \ |
3d402178 |
17 | AliPHOSEMCAGeometry.cxx \ |
0d90a31c |
18 | AliPHOSCPVGeometry.cxx AliPHOSCPVBaseGeometry.cxx \ |
9688c1dd |
19 | AliPHOSSupportGeometry.cxx \ |
5c617c31 |
20 | AliPHOSCPVDigit.cxx AliPHOSDigit.cxx \ |
3d402178 |
21 | AliPHOSRecPoint.cxx AliPHOSEmcRecPoint.cxx \ |
9688c1dd |
22 | AliPHOSCpvRecPoint.cxx \ |
990119d6 |
23 | AliPHOSClusterizer.cxx AliPHOSClusterizerv1.cxx \ |
24 | AliPHOSLink.cxx AliPHOSSDigitizer.cxx AliPHOSDigitizer.cxx\ |
cce428fe |
25 | AliPHOSReconstructioner.cxx AliPHOSTrackSegment.cxx \ |
26 | AliPHOSTrackSegmentMaker.cxx AliPHOSTrackSegmentMakerv1.cxx \ |
27 | AliPHOSRecParticle.cxx AliPHOSPID.cxx AliPHOSPIDv1.cxx \ |
5f20d3fb |
28 | AliPHOSAnalyze.cxx AliPHOSFastRecParticle.cxx \ |
7437a0f7 |
29 | AliPHOSGetter.cxx AliPHOSTick.cxx \ |
30 | AliPHOSQAVirtualCheckable.cxx AliPHOSQAIntCheckable.cxx \ |
31 | AliPHOSQAFloatCheckable.cxx\ |
7b326aac |
32 | AliPHOSQAObjectCheckable.cxx AliPHOSQAChecker.cxx AliPHOSQAMeanChecker.cxx AliPHOSQAAlarm.cxx |
fe4da5cc |
33 | |
34 | # C++ Headers |
35 | |
94de3818 |
36 | HDRS = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h PHOSLinkDef.h |
fe4da5cc |
37 | |
38 | # Library dictionary |
39 | |
40 | DICT = PHOSCint.cxx |
41 | DICTH = $(DICT:.cxx=.h) |
4adb943a |
42 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc |
43 | |
fe4da5cc |
44 | # C++ Objects |
45 | |
4adb943a |
46 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc |
47 | |
48 | # C++ compilation flags |
49 | |
50 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ |
fe4da5cc |
51 | |
d15a28e7 |
52 | ALSRCS = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c |
fe4da5cc |
53 | |
d15a28e7 |
54 | ALOBJS = $(SHOBJS) $(RCOBJS) $(DUOBJS) |
fe4da5cc |
55 | |
56 | ##### COMMANDS ##### |
57 | |
504139a0 |
58 | SLIBRARY = $(LIBDIR)/libPHOS.$(SL) |
fe4da5cc |
59 | |
60 | default: $(SLIBRARY) |
61 | |
504139a0 |
62 | $(LIBDIR)/libPHOS.$(SL): $(OBJS) $(FOBJS) |
fe4da5cc |
63 | |
64 | $(DICT): $(HDRS) |
65 | |
52005fc3 |
66 | depend: $(SRCS) |
fe4da5cc |
67 | |
d15a28e7 |
68 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
fe4da5cc |
69 | |
e2fe4c02 |
70 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
71 | |
fe4da5cc |
72 | ############################### General Macros ################################ |
73 | |
74 | include $(ALICE_ROOT)/conf/GeneralMacros |
75 | |
76 | ############################ Dependencies ##################################### |
77 | |
1207d6f2 |
78 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 |
79 | |
846bacec |
80 | |
cede0770 |
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 " ____________________________________________________________ " |
846bacec |
86 | @aliroot -b -q "testsim.C(100)" > out |
cede0770 |
87 | @aliroot -b -q testsimglobal.C > out |
88 | @rm out |
89 | @rm testPHOS.root |
9688c1dd |
90 | |
846bacec |
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 |
41f6cf69 |
100 | |
101 | |
102 | |