Back to previus version
[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
24 # Fortran sources
25
26 FSRCS          = 
27
28 # C++ Headers
29
30 HDRS          = $(SRCS:.cxx=.h) HBTAnalysisLinkDef.h
31
32 # Library dictionary
33
34 DICT          = HBTAnalysisCint.cxx
35 DICTH         = $(DICT:.cxx=.h)
36 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
37
38 # FORTRAN Objectrs
39
40 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
41
42 # C Objects
43
44 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
45
46 # C++ Objects
47
48 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
49
50 # C++ compilation flags
51
52 INCLUDES      = -I$(ALICE_ROOT)/TPC/ -I$(ALICE_ROOT)/CONTAINERS/ -I$(ALICE_ROOT)/ITS/
53
54 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ $(INCLUDES)
55  
56 # FORTRAN compilation flags
57
58 FFLAGS      = $(FOPT) -I$(ALICE_ROOT)/GEANT321
59
60 ##### TARGETS #####
61  
62 # Target
63
64 SLIBRARY        = $(LIBDIR)/libHBTAN.$(SL)
65 ALIBRARY        = $(LIBDIR)/libHBTAN.a
66
67 default:        $(SLIBRARY)
68
69
70 $(LIBDIR)/libHBTAN.$(SL):               $(OBJS)
71
72 $(DICT):                        $(HDRS)
73
74 DEPINC += -I$(ALICE_ROOT)/GEANT321
75
76 depend:                         $(SRCS) $(FSRCS)
77
78 TOCLEAN         = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h
79
80 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
81
82 ############################### General Macros ################################
83
84 include $(ALICE_ROOT)/conf/GeneralMacros
85
86 ############################ Dependencies #####################################
87
88 -include tgt_$(ALICE_TARGET)/Make-depend 
89
90