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