b14f70e7151b76e041ce56802491f665501971d2
[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 AliTRDv2.cxx \
15                 AliTRDhit.cxx AliTRDdigit.cxx                     \
16                 AliTRDpixel.cxx AliTRDmatrix.cxx                  \
17                 AliTRDgeometry.cxx AliTRDgeometryFull.cxx         \
18                 AliTRDgeometryHole.cxx AliTRDdigitizer.cxx        \
19                 AliTRDgeometryDetail.cxx                          \
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                          \
29                 AliTRDtrackHits.cxx                               \
30                 AliTRDtrack.cxx AliTRDtracker.cxx                 \
31                 AliTRDcluster.cxx                                 \
32                 AliTRDpid.cxx AliTRDpidLQ.cxx                     \
33                 AliTRDmcTrack.cxx                                 \
34                 AliTRDsimple.cxx AliTRDsimpleMC.cxx               \
35                 AliTRDsimpleGen.cxx 
36
37 # C++ Headers
38
39 HDRS          = $(SRCS:.cxx=.h)                \
40                 $(ROOTSYS)/include/TF1.h       \
41                 $(ROOTSYS)/include/TFile.h     \
42                 $(ROOTSYS)/include/TObjArray.h \
43                 TRDLinkDef.h
44
45 # Library dictionary
46
47 DICT          = TRDCint.cxx
48 DICTH         = $(DICT:.cxx=.h)
49 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
50
51 # FORTRAN Objectrs
52
53 FOBJS         = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
54
55 # C Objects
56
57 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
58
59 # C++ Objects
60
61 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
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
75 SLIBRARY        = $(LIBDIR)/libTRD.$(SL)
76 ALIBRARY        = $(LIBDIR)/libTRD.a
77
78 default:        $(SLIBRARY)
79
80 $(LIBDIR)/libTRD.$(SL): $(OBJS)
81
82 TRDCint.cxx:                    $(HDRS)
83
84 depend:                         $(SRCS)
85
86 TOCLEAN                 = $(OBJS) *Cint.h *Cint.cxx
87
88 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
89
90 ############################### General Macros ################################
91
92 include $(ALICE_ROOT)/conf/GeneralMacros
93
94 ############################ Dependencies #####################################
95
96 -include tgt_$(ALICE_TARGET)/Make-depend 
97
98
99
100
101
102
103
104