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