]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/Makefile
New version of TRD introduced
[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
17 # C++ Headers
18
19 HDRS          = $(SRCS:.cxx=.h) TRDLinkDef.h
20
21 # Library dictionary
22
23 DICT          = TRDCint.cxx
24 DICTH         = $(DICT:.cxx=.h)
25 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
26
27 # FORTRAN Objectrs
28
29 FOBJS         = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
30
31 # C Objects
32
33 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
34
35 # C++ Objects
36
37 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
38
39 # C++ compilation flags
40
41 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include
42  
43 # FORTRAN compilation flags
44
45 FFLAGS      = $(FOPT)
46
47 ##### TARGETS #####
48  
49 # Target
50
51 SLIBRARY        = $(LIBDIR)/libTRD.$(SL)
52 ALIBRARY        = $(LIBDIR)/libTRD.a
53
54 default:        $(SLIBRARY)
55
56 $(LIBDIR)/libTRD.$(SL): $(OBJS)
57
58 TRDCint.cxx:                    $(HDRS)
59
60 depend:                         $(SRCS)
61
62 TOCLEAN                 = $(OBJS) *Cint.h *Cint.cxx
63
64 ############################### General Macros ################################
65
66 include $(ALICE_ROOT)/conf/GeneralMacros
67
68 ############################ Dependencies #####################################
69
70 -include tgt_$(ALICE_TARGET)/Make-depend 
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
76 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
77
78 check:          $(CHECKS)
79
80
81
82
83
84
85