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 \ |
42 | AliTRDtimeBin.cxx \ |
43 | AliTRDtrackingSector.cxx \ |
44 | AliTRDtrackHits.cxx \ |
45 | AliTRDtrack.cxx \ |
46 | AliTRDtracker.cxx \ |
47 | AliTRDcluster.cxx \ |
48 | AliTRDpid.cxx \ |
49 | AliTRDpidLQ.cxx \ |
50 | AliTRDmcTrack.cxx \ |
51 | AliTRDsimple.cxx \ |
52 | AliTRDsimpleMC.cxx \ |
53 | AliTRDsimpleGen.cxx \ |
54 | AliTRDparameter.cxx |
fe4da5cc |
55 | |
56 | # C++ Headers |
57 | |
793ff80c |
58 | HDRS = $(SRCS:.cxx=.h) \ |
59 | $(ROOTSYS)/include/TF1.h \ |
60 | $(ROOTSYS)/include/TFile.h \ |
61 | $(ROOTSYS)/include/TObjArray.h \ |
62 | TRDLinkDef.h |
fe4da5cc |
63 | |
64 | # Library dictionary |
65 | |
66 | DICT = TRDCint.cxx |
67 | DICTH = $(DICT:.cxx=.h) |
4adb943a |
68 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc |
69 | |
70 | # FORTRAN Objectrs |
71 | |
4adb943a |
72 | FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc |
73 | |
74 | # C Objects |
75 | |
4adb943a |
76 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc |
77 | |
78 | # C++ Objects |
79 | |
4adb943a |
80 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc |
81 | |
82 | # C++ compilation flags |
83 | |
84 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include |
85 | |
86 | # FORTRAN compilation flags |
87 | |
88 | FFLAGS = $(FOPT) |
89 | |
90 | ##### TARGETS ##### |
91 | |
92 | # Target |
93 | |
cb342460 |
94 | SLIBRARY = $(LIBDIR)/libTRD.$(SL) |
95 | ALIBRARY = $(LIBDIR)/libTRD.a |
fe4da5cc |
96 | |
31ccd13b |
97 | default: $(SLIBRARY) |
fe4da5cc |
98 | |
cb342460 |
99 | $(LIBDIR)/libTRD.$(SL): $(OBJS) |
fe4da5cc |
100 | |
101 | TRDCint.cxx: $(HDRS) |
102 | |
fe4da5cc |
103 | depend: $(SRCS) |
104 | |
105 | TOCLEAN = $(OBJS) *Cint.h *Cint.cxx |
106 | |
e2fe4c02 |
107 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
108 | |
fe4da5cc |
109 | ############################### General Macros ################################ |
110 | |
111 | include $(ALICE_ROOT)/conf/GeneralMacros |
112 | |
113 | ############################ Dependencies ##################################### |
114 | |
1207d6f2 |
115 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 |
116 | |
41f6cf69 |
117 | |
118 | |
119 | |
120 | |
121 | |
122 | |
123 | |