Merge TRD-develop
[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
6f1e466d 14SRCS = AliTRD.cxx AliTRDv0.cxx AliTRDv1.cxx \
15 AliTRDhit.cxx AliTRDdigit.cxx \
16 AliTRDpixel.cxx AliTRDmatrix.cxx \
17 AliTRDgeometry.cxx AliTRDgeometryFull.cxx \
18 AliTRDgeometryHole.cxx AliTRDdigitizer.cxx \
19 AliTRDclusterizer.cxx AliTRDclusterizerV0.cxx \
20 AliTRDclusterizerV1.cxx AliTRDrecPoint.cxx \
21 AliTRDsegmentArray.cxx AliTRDdataArray.cxx \
22 AliTRDdataArrayI.cxx AliTRDdataArrayF.cxx \
23 AliTRDdigitsManager.cxx \
24 AliTRDsegmentID.cxx AliTRDsegmentArrayBase.cxx \
25 AliTRDarrayI.cxx AliTRDarrayF.cxx
fe4da5cc 26
27# C++ Headers
28
29HDRS = $(SRCS:.cxx=.h) TRDLinkDef.h
30
31# Library dictionary
32
33DICT = TRDCint.cxx
34DICTH = $(DICT:.cxx=.h)
4adb943a 35DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
fe4da5cc 36
37# FORTRAN Objectrs
38
4adb943a 39FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 40
41# C Objects
42
4adb943a 43COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
fe4da5cc 44
45# C++ Objects
46
4adb943a 47OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 48
49# C++ compilation flags
50
51CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include
52
53# FORTRAN compilation flags
54
55FFLAGS = $(FOPT)
56
57##### TARGETS #####
58
59# Target
60
cb342460 61SLIBRARY = $(LIBDIR)/libTRD.$(SL)
62ALIBRARY = $(LIBDIR)/libTRD.a
fe4da5cc 63
31ccd13b 64default: $(SLIBRARY)
fe4da5cc 65
cb342460 66$(LIBDIR)/libTRD.$(SL): $(OBJS)
fe4da5cc 67
68TRDCint.cxx: $(HDRS)
69
fe4da5cc 70depend: $(SRCS)
71
72TOCLEAN = $(OBJS) *Cint.h *Cint.cxx
73
74############################### General Macros ################################
75
76include $(ALICE_ROOT)/conf/GeneralMacros
77
78############################ Dependencies #####################################
79
1207d6f2 80-include tgt_$(ALICE_TARGET)/Make-depend
41f6cf69 81
82### Target check creates violation reports (.viol), which depend on
83### stripped files (.ii), which in turn depend on preprocessed
84### files (.i). Dependences are in conf/GeneralDef.
85
86CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
87
88check: $(CHECKS)
89
90
91
92
93
94
95