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