]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### TRD 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 name | |
9 | ||
10 | PACKAGE = TRD | |
11 | ||
12 | # C++ sources | |
13 | ||
67af833f | 14 | SRCS = AliTRD.cxx \ |
15 | AliTRDv0.cxx \ | |
16 | AliTRDv1.cxx \ | |
17 | AliTRDv2.cxx \ | |
18 | AliTRDhit.cxx \ | |
19 | AliTRDdigit.cxx \ | |
20 | AliTRDpixel.cxx \ | |
21 | AliTRDmatrix.cxx \ | |
22 | AliTRDgeometry.cxx \ | |
23 | AliTRDgeometryFull.cxx \ | |
24 | AliTRDgeometryHole.cxx \ | |
25 | AliTRDdigitizer.cxx \ | |
26 | AliTRDgeometryDetail.cxx \ | |
27 | AliTRDclusterizer.cxx \ | |
28 | AliTRDclusterizerV0.cxx \ | |
29 | AliTRDclusterizerV1.cxx \ | |
30 | AliTRDrecPoint.cxx \ | |
31 | AliTRDsegmentArray.cxx \ | |
32 | AliTRDdataArray.cxx \ | |
33 | AliTRDdataArrayI.cxx \ | |
34 | AliTRDdataArrayF.cxx \ | |
35 | AliTRDdigitsManager.cxx \ | |
36 | AliTRDsim.cxx \ | |
37 | AliTRDsegmentID.cxx \ | |
38 | AliTRDsegmentArrayBase.cxx \ | |
39 | AliTRDarrayI.cxx \ | |
40 | AliTRDarrayF.cxx \ | |
41 | AliTRDpoints.cxx \ | |
67af833f | 42 | AliTRDtrackHits.cxx \ |
43 | AliTRDtrack.cxx \ | |
44 | AliTRDtracker.cxx \ | |
45 | AliTRDcluster.cxx \ | |
46 | AliTRDpid.cxx \ | |
47 | AliTRDpidLQ.cxx \ | |
48 | AliTRDmcTrack.cxx \ | |
49 | AliTRDsimple.cxx \ | |
50 | AliTRDsimpleMC.cxx \ | |
51 | AliTRDsimpleGen.cxx \ | |
52 | AliTRDparameter.cxx | |
fe4da5cc | 53 | |
54 | # C++ Headers | |
55 | ||
793ff80c | 56 | HDRS = $(SRCS:.cxx=.h) \ |
57 | $(ROOTSYS)/include/TF1.h \ | |
58 | $(ROOTSYS)/include/TFile.h \ | |
59 | $(ROOTSYS)/include/TObjArray.h \ | |
60 | TRDLinkDef.h | |
fe4da5cc | 61 | |
62 | # Library dictionary | |
63 | ||
64 | DICT = TRDCint.cxx | |
65 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 66 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 67 | |
68 | # FORTRAN Objectrs | |
69 | ||
4adb943a | 70 | FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 71 | |
72 | # C Objects | |
73 | ||
4adb943a | 74 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 75 | |
76 | # C++ Objects | |
77 | ||
4adb943a | 78 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 79 | |
80 | # C++ compilation flags | |
81 | ||
82 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include | |
83 | ||
84 | # FORTRAN compilation flags | |
85 | ||
86 | FFLAGS = $(FOPT) | |
87 | ||
88 | ##### TARGETS ##### | |
89 | ||
90 | # Target | |
91 | ||
cb342460 | 92 | SLIBRARY = $(LIBDIR)/libTRD.$(SL) |
93 | ALIBRARY = $(LIBDIR)/libTRD.a | |
fe4da5cc | 94 | |
31ccd13b | 95 | default: $(SLIBRARY) |
fe4da5cc | 96 | |
cb342460 | 97 | $(LIBDIR)/libTRD.$(SL): $(OBJS) |
fe4da5cc | 98 | |
99 | TRDCint.cxx: $(HDRS) | |
100 | ||
fe4da5cc | 101 | depend: $(SRCS) |
102 | ||
103 | TOCLEAN = $(OBJS) *Cint.h *Cint.cxx | |
104 | ||
e2fe4c02 | 105 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
106 | ||
fe4da5cc | 107 | ############################### General Macros ################################ |
108 | ||
109 | include $(ALICE_ROOT)/conf/GeneralMacros | |
110 | ||
111 | ############################ Dependencies ##################################### | |
112 | ||
1207d6f2 | 113 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 114 | |
41f6cf69 | 115 | |
116 | ||
117 | ||
118 | ||
119 | ||
120 | ||
121 |