]>
Commit | Line | Data |
---|---|---|
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 \ | |
3d402178 | 19 | AliPHOSCPVModule.cxx AliPHOSCPVDigit.cxx AliPHOSCPVHit.cxx \ |
cce428fe | 20 | AliPHOSDigit.cxx \ |
3d402178 | 21 | AliPHOSRecPoint.cxx AliPHOSEmcRecPoint.cxx \ |
22 | AliPHOSPpsdRecPoint.cxx AliPHOSCpvRecPoint.cxx \ | |
cce428fe | 23 | AliPHOSClusterizer.cxx AliPHOSClusterizerv1.cxx AliPHOSLink.cxx \ |
24 | AliPHOSReconstructioner.cxx AliPHOSTrackSegment.cxx \ | |
25 | AliPHOSTrackSegmentMaker.cxx AliPHOSTrackSegmentMakerv1.cxx \ | |
26 | AliPHOSRecParticle.cxx AliPHOSPID.cxx AliPHOSPIDv1.cxx \ | |
5f20d3fb | 27 | AliPHOSAnalyze.cxx AliPHOSFastRecParticle.cxx \ |
3d402178 | 28 | AliPHOSIndexToObject.cxx |
fe4da5cc | 29 | |
30 | # C++ Headers | |
31 | ||
94de3818 | 32 | HDRS = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h PHOSLinkDef.h |
fe4da5cc | 33 | |
34 | # Library dictionary | |
35 | ||
36 | DICT = PHOSCint.cxx | |
37 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 38 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 39 | |
fe4da5cc | 40 | # C++ Objects |
41 | ||
4adb943a | 42 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 43 | |
44 | # C++ compilation flags | |
45 | ||
46 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
fe4da5cc | 47 | |
d15a28e7 | 48 | ALSRCS = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c |
fe4da5cc | 49 | |
d15a28e7 | 50 | ALOBJS = $(SHOBJS) $(RCOBJS) $(DUOBJS) |
fe4da5cc | 51 | |
52 | ##### COMMANDS ##### | |
53 | ||
504139a0 | 54 | SLIBRARY = $(LIBDIR)/libPHOS.$(SL) |
fe4da5cc | 55 | |
56 | default: $(SLIBRARY) | |
57 | ||
504139a0 | 58 | $(LIBDIR)/libPHOS.$(SL): $(OBJS) $(FOBJS) |
fe4da5cc | 59 | |
60 | $(DICT): $(HDRS) | |
61 | ||
52005fc3 | 62 | depend: $(SRCS) |
fe4da5cc | 63 | |
d15a28e7 | 64 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
fe4da5cc | 65 | |
e2fe4c02 | 66 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
6b2a48af | 67 | REVENGS = $(patsubst %.cxx,check/%.ii,$(SRCS)) |
e2fe4c02 | 68 | |
6b2a48af | 69 | # IRST reverse engineering |
70 | reveng : $(REVENGS) | |
71 | @$(REV_ENG) $(REVENGS) | |
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 | |
41f6cf69 | 80 | |
81 | ||
82 | ||
83 | ||
84 | ||
85 |