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