Include the new TRD classes
[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 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
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)
32 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
33
34 # FORTRAN Objectrs
35
36 FOBJS         = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
37
38 # C Objects
39
40 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
41
42 # C++ Objects
43
44 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
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
58 SLIBRARY        = $(LIBDIR)/libTRD.$(SL)
59 ALIBRARY        = $(LIBDIR)/libTRD.a
60
61 default:        $(SLIBRARY)
62
63 $(LIBDIR)/libTRD.$(SL): $(OBJS)
64
65 TRDCint.cxx:                    $(HDRS)
66
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
77 -include tgt_$(ALICE_TARGET)/Make-depend 
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