]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/Makefile
Remove old example macros
[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                 AliTRDgeometryDetail.cxx                          \
19                 AliTRDgeometryHole.cxx AliTRDdigitizer.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                 AliTRDtrack.cxx AliTRDtracker.cxx                 \
30                 AliTRDcluster.cxx                                 \
31                 AliTRDpid.cxx AliTRDpidLQ.cxx                     \
32                 AliTRDmcTrack.cxx                                 \
33                 AliTRDsimple.cxx AliTRDsimpleMC.cxx               \
34                 AliTRDsimpleGen.cxx 
35
36 # C++ Headers
37
38 HDRS          = $(SRCS:.cxx=.h)                \
39                 $(ROOTSYS)/include/TF1.h       \
40                 $(ROOTSYS)/include/TFile.h     \
41                 $(ROOTSYS)/include/TObjArray.h \
42                 TRDLinkDef.h
43
44 # Library dictionary
45
46 DICT          = TRDCint.cxx
47 DICTH         = $(DICT:.cxx=.h)
48 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
49
50 # FORTRAN Objectrs
51
52 FOBJS         = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
53
54 # C Objects
55
56 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
57
58 # C++ Objects
59
60 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
61
62 # C++ compilation flags
63
64 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include
65  
66 # FORTRAN compilation flags
67
68 FFLAGS      = $(FOPT)
69
70 ##### TARGETS #####
71  
72 # Target
73
74 SLIBRARY        = $(LIBDIR)/libTRD.$(SL)
75 ALIBRARY        = $(LIBDIR)/libTRD.a
76
77 default:        $(SLIBRARY)
78
79 $(LIBDIR)/libTRD.$(SL): $(OBJS)
80
81 TRDCint.cxx:                    $(HDRS)
82
83 depend:                         $(SRCS)
84
85 TOCLEAN                 = $(OBJS) *Cint.h *Cint.cxx
86
87 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
88
89 ############################### General Macros ################################
90
91 include $(ALICE_ROOT)/conf/GeneralMacros
92
93 ############################ Dependencies #####################################
94
95 -include tgt_$(ALICE_TARGET)/Make-depend 
96
97
98
99
100
101
102
103