ae5a436a3c3a9253919d8a8c44ab7b8fea06ef02
[u/mrichter/AliRoot.git] / HBTAN / Makefile
1 ############################### HBTAnalysis Makefile ##################################
2
3 # Include machine specific definitions
4
5 include $(ALICE_ROOT)/conf/GeneralDef
6 include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8
9 OPT = -g
10 PACKAGE = HBTAnalysis
11
12 # C++ sources
13
14 SRCS          = AliHBTAnalysis.cxx AliHBTFunction.cxx \
15                 AliHBTEvent.cxx AliHBTRun.cxx \
16                 AliHBTParticle.cxx AliHBTParticleCut.cxx \
17                 AliHBTPair.cxx AliHBTPairCut.cxx\
18                 AliHBTCorrelFctn.cxx \
19                 AliHBTReader.cxx AliHBTReaderTPC.cxx\
20                 AliHBTQResolutionFctns.cxx AliHBTReaderPPprod.cxx\
21                 AliHBTReaderITSv1.cxx AliHBTReaderITSv2.cxx\
22                 AliHBTReaderKineTree.cxx\
23                 AliTwoTrackEff.cxx
24
25 # Fortran sources
26
27 FSRCS          = 
28
29 # C++ Headers
30
31 HDRS          = $(SRCS:.cxx=.h) HBTAnalysisLinkDef.h
32
33 # Library dictionary
34
35 DICT          = HBTAnalysisCint.cxx
36 DICTH         = $(DICT:.cxx=.h)
37 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
38
39 # FORTRAN Objectrs
40
41 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
42
43 # C Objects
44
45 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
46
47 # C++ Objects
48
49 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
50
51 # C++ compilation flags
52
53 INCLUDES      = -I$(ALICE_ROOT)/TPC/ -I$(ALICE_ROOT)/CONTAINERS/ -I$(ALICE_ROOT)/ITS/
54
55 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ $(INCLUDES)
56  
57 # FORTRAN compilation flags
58
59 FFLAGS      = $(FOPT) -I$(ALICE_ROOT)/GEANT321
60
61 ##### TARGETS #####
62  
63 # Target
64
65 SLIBRARY        = $(LIBDIR)/libHBTAN.$(SL)
66 ALIBRARY        = $(LIBDIR)/libHBTAN.a
67
68 default:        $(SLIBRARY)
69
70
71 $(LIBDIR)/libHBTAN.$(SL):               $(OBJS)
72
73 $(DICT):                        $(HDRS)
74
75 DEPINC += -I$(ALICE_ROOT)/GEANT321
76
77 depend:                         $(SRCS) $(FSRCS)
78
79 TOCLEAN         = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h
80
81 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
82
83 ############################### General Macros ################################
84
85 include $(ALICE_ROOT)/conf/GeneralMacros
86
87 ############################ Dependencies #####################################
88
89 -include tgt_$(ALICE_TARGET)/Make-depend 
90
91