]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### RICH 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 = RICH | |
9 | ||
10 | # C++ sources | |
11 | ||
435fcc02 | 12 | SRCS = AliRICH.cxx AliRICHv0.cxx AliRICHv1.cxx AliRICHv2.cxx\ |
237c933d | 13 | AliRICHDisplay.cxx AliRICHPoints.cxx AliRICHGeometry.cxx\ |
14 | AliRICHHitMap.cxx AliRICHHitMapA1.cxx AliRICHSegmentation.cxx \ | |
435fcc02 | 15 | AliRICHSegmentationV0.cxx AliRICHTresholdMap.cxx\ |
237c933d | 16 | AliRICHSegmentationV1.cxx AliRICHResponse.cxx AliRICHResponseV0.cxx \ |
17 | AliRICHClusterFinder.cxx \ | |
18 | AliRICHChamber.cxx AliRICHDetect.cxx AliRICHPatRec.cxx \ | |
19 | AliRICHHit.cxx AliRICHCerenkov.cxx AliRICHPadHit.cxx \ | |
20 | AliRICHDigit.cxx AliRICHTransientDigit.cxx \ | |
435fcc02 | 21 | AliRICHRawCluster.cxx AliRICHRecHit.cxx AliRICHEllipse.cxx |
fe4da5cc | 22 | |
23 | # C++ Headers | |
24 | ||
25 | HDRS = $(SRCS:.cxx=.h) RICHLinkDef.h | |
26 | ||
27 | # Library dictionary | |
28 | ||
29 | DICT = RICHCint.cxx | |
30 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 31 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 32 | |
33 | # FORTRAN Objectrs | |
34 | ||
4adb943a | 35 | FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 36 | |
37 | # C Objects | |
38 | ||
4adb943a | 39 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 40 | |
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/ | |
cb342460 | 48 | |
49 | CXXFLAGS += -I$(ALICE_ROOT)/TGeant3 | |
50 | DEPINC += -I$(ALICE_ROOT)/TGeant3 | |
fe4da5cc | 51 | |
52 | # FORTRAN compilation flags | |
53 | ||
54 | FFLAGS = $(FOPT) | |
55 | ||
56 | ##### TARGETS ##### | |
57 | ||
58 | # Target | |
59 | ||
cb342460 | 60 | SLIBRARY = $(LIBDIR)/libRICH.$(SL) |
61 | ALIBRARY = $(LIBDIR)/libRICH.a | |
fe4da5cc | 62 | |
63 | default: $(SLIBRARY) | |
64 | ||
cb342460 | 65 | $(LIBDIR)/libRICH.$(SL): $(OBJS) |
fe4da5cc | 66 | |
67 | $(DICT): $(HDRS) | |
68 | ||
69 | depend: $(SRCS) | |
70 | ||
71 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
72 | ||
73 | ############################### General Macros ################################ | |
74 | ||
75 | include $(ALICE_ROOT)/conf/GeneralMacros | |
76 | ||
77 | ############################ Dependencies ##################################### | |
78 | ||
1207d6f2 | 79 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 80 | |
c568011f | 81 | ### Target check creates violation reports (.viol), which depend on |
82 | ### stripped files (.ii), which in turn depend on preprocessed | |
83 | ### files (.i). Dependences are in conf/GeneralDef. | |
84 | ||
85 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
86 | ||
87 | check: $(CHECKS) | |
41f6cf69 | 88 | |
89 | ||
90 | ||
91 | ||
92 | ||
93 |