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