Latest version
[u/mrichter/AliRoot.git] / TRD / Makefile
CommitLineData
fe4da5cc 1############################### TRD Makefile ##################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8# Package name
9
10PACKAGE = TRD
11
12# C++ sources
13
67af833f 14SRCS = 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 58HDRS = $(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
66DICT = TRDCint.cxx
67DICTH = $(DICT:.cxx=.h)
4adb943a 68DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
fe4da5cc 69
70# FORTRAN Objectrs
71
4adb943a 72FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 73
74# C Objects
75
4adb943a 76COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
fe4da5cc 77
78# C++ Objects
79
4adb943a 80OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 81
82# C++ compilation flags
83
84CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include
85
86# FORTRAN compilation flags
87
88FFLAGS = $(FOPT)
89
90##### TARGETS #####
91
92# Target
93
cb342460 94SLIBRARY = $(LIBDIR)/libTRD.$(SL)
95ALIBRARY = $(LIBDIR)/libTRD.a
fe4da5cc 96
31ccd13b 97default: $(SLIBRARY)
fe4da5cc 98
cb342460 99$(LIBDIR)/libTRD.$(SL): $(OBJS)
fe4da5cc 100
101TRDCint.cxx: $(HDRS)
102
fe4da5cc 103depend: $(SRCS)
104
105TOCLEAN = $(OBJS) *Cint.h *Cint.cxx
106
e2fe4c02 107CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
108
fe4da5cc 109############################### General Macros ################################
110
111include $(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