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 | |
5f20d3fb |
12 | SRCS = AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx AliPHOSv2.cxx \ |
13 | AliPHOSv3.cxx AliPHOSv4.cxx \ |
14 | AliPHOSHit.cxx \ |
cce428fe |
15 | AliPHOSGeometry.cxx \ |
3d402178 |
16 | AliPHOSEMCAGeometry.cxx \ |
0d90a31c |
17 | AliPHOSCPVGeometry.cxx AliPHOSCPVBaseGeometry.cxx \ |
18 | AliPHOSPPSDGeometry.cxx AliPHOSSupportGeometry.cxx \ |
5c617c31 |
19 | AliPHOSCPVDigit.cxx AliPHOSDigit.cxx \ |
3d402178 |
20 | AliPHOSRecPoint.cxx AliPHOSEmcRecPoint.cxx \ |
21 | AliPHOSPpsdRecPoint.cxx AliPHOSCpvRecPoint.cxx \ |
990119d6 |
22 | AliPHOSClusterizer.cxx AliPHOSClusterizerv1.cxx \ |
23 | AliPHOSLink.cxx AliPHOSSDigitizer.cxx AliPHOSDigitizer.cxx\ |
cce428fe |
24 | AliPHOSReconstructioner.cxx AliPHOSTrackSegment.cxx \ |
25 | AliPHOSTrackSegmentMaker.cxx AliPHOSTrackSegmentMakerv1.cxx \ |
26 | AliPHOSRecParticle.cxx AliPHOSPID.cxx AliPHOSPIDv1.cxx \ |
5f20d3fb |
27 | AliPHOSAnalyze.cxx AliPHOSFastRecParticle.cxx \ |
ba230b91 |
28 | AliPHOSIndexToObject.cxx \ |
29 | AliDBPPR.cxx AliDBPPRS.cxx |
fe4da5cc |
30 | |
31 | # C++ Headers |
32 | |
94de3818 |
33 | HDRS = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h PHOSLinkDef.h |
fe4da5cc |
34 | |
35 | # Library dictionary |
36 | |
37 | DICT = PHOSCint.cxx |
38 | DICTH = $(DICT:.cxx=.h) |
4adb943a |
39 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc |
40 | |
fe4da5cc |
41 | # C++ Objects |
42 | |
4adb943a |
43 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc |
44 | |
45 | # C++ compilation flags |
46 | |
47 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ |
fe4da5cc |
48 | |
d15a28e7 |
49 | ALSRCS = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c |
fe4da5cc |
50 | |
d15a28e7 |
51 | ALOBJS = $(SHOBJS) $(RCOBJS) $(DUOBJS) |
fe4da5cc |
52 | |
53 | ##### COMMANDS ##### |
54 | |
504139a0 |
55 | SLIBRARY = $(LIBDIR)/libPHOS.$(SL) |
fe4da5cc |
56 | |
57 | default: $(SLIBRARY) |
58 | |
504139a0 |
59 | $(LIBDIR)/libPHOS.$(SL): $(OBJS) $(FOBJS) |
fe4da5cc |
60 | |
61 | $(DICT): $(HDRS) |
62 | |
52005fc3 |
63 | depend: $(SRCS) |
fe4da5cc |
64 | |
d15a28e7 |
65 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
fe4da5cc |
66 | |
e2fe4c02 |
67 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
68 | |
fe4da5cc |
69 | ############################### General Macros ################################ |
70 | |
71 | include $(ALICE_ROOT)/conf/GeneralMacros |
72 | |
73 | ############################ Dependencies ##################################### |
74 | |
1207d6f2 |
75 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 |
76 | |
41f6cf69 |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | |