]>
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 | ||
237c933d | 12 | SRCS = AliRICH.cxx AliRICHv0.cxx AliRICHv1.cxx \ |
13 | AliRICHDisplay.cxx AliRICHPoints.cxx AliRICHGeometry.cxx\ | |
14 | AliRICHHitMap.cxx AliRICHHitMapA1.cxx AliRICHSegmentation.cxx \ | |
15 | AliRICHSegmentationV0.cxx \ | |
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 \ | |
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 | ||
e2fe4c02 | 73 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
74 | ||
fe4da5cc | 75 | ############################### General Macros ################################ |
76 | ||
77 | include $(ALICE_ROOT)/conf/GeneralMacros | |
78 | ||
79 | ############################ Dependencies ##################################### | |
80 | ||
1207d6f2 | 81 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 82 | |
41f6cf69 | 83 | |
84 | ||
85 | ||
86 | ||
87 | ||
88 |