Introduce parameter class
[u/mrichter/AliRoot.git] / TRD / Makefile
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
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               
55
56 # C++ Headers
57
58 HDRS          = $(SRCS:.cxx=.h)                \
59                 $(ROOTSYS)/include/TF1.h       \
60                 $(ROOTSYS)/include/TFile.h     \
61                 $(ROOTSYS)/include/TObjArray.h \
62                 TRDLinkDef.h
63
64 # Library dictionary
65
66 DICT          = TRDCint.cxx
67 DICTH         = $(DICT:.cxx=.h)
68 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
69
70 # FORTRAN Objectrs
71
72 FOBJS         = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
73
74 # C Objects
75
76 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
77
78 # C++ Objects
79
80 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
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
94 SLIBRARY        = $(LIBDIR)/libTRD.$(SL)
95 ALIBRARY        = $(LIBDIR)/libTRD.a
96
97 default:        $(SLIBRARY)
98
99 $(LIBDIR)/libTRD.$(SL): $(OBJS)
100
101 TRDCint.cxx:                    $(HDRS)
102
103 depend:                         $(SRCS)
104
105 TOCLEAN                 = $(OBJS) *Cint.h *Cint.cxx
106
107 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
108
109 ############################### General Macros ################################
110
111 include $(ALICE_ROOT)/conf/GeneralMacros
112
113 ############################ Dependencies #####################################
114
115 -include tgt_$(ALICE_TARGET)/Make-depend 
116
117
118
119
120
121
122
123