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