]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/Makefile
Added the option to write objects into separate files and improved the cleaning
[u/mrichter/AliRoot.git] / EMCAL / Makefile
1 ############################### EMCAL 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 = EMCAL
9
10 # C++ sources
11
12 SRCS          =  AliEMCAL.cxx  AliEMCALGeometry.cxx AliEMCALv0.cxx \
13                  AliEMCALv1.cxx AliEMCALHit.cxx AliEMCALDigit.cxx \
14                  AliEMCALSDigitizer.cxx AliEMCALDigitizer.cxx \
15                  AliEMCALJetFinder.cxx AliEMCALJet.cxx AliEMCALFast.cxx \
16                  AliEMCALGetter.cxx AliEMCALTick.cxx \
17                  AliEMCALRecPoint.cxx AliEMCALTowerRecPoint.cxx \
18                  AliEMCALClusterizer.cxx AliEMCALClusterizerv1.cxx \
19                  AliEMCALHadronCorrection.cxx AliEMCALHadronCorrectionv0.cxx \
20                  AliEMCALJetMicroDst.cxx
21
22 # FORTRAN sources
23
24 FSRCS        = jet_finder_ua1.F sgpdge.F
25
26 # C++ Headers
27
28 HDRS          = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h EMCALLinkDef.h
29
30 # Library dictionary
31
32 DICT          = EMCALCint.cxx
33 DICTH         = $(DICT:.cxx=.h)
34 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
35
36 # C++ Objects
37
38 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
39
40 # FORTRAN Objects
41 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
42 # C++ compilation flags
43
44 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
45
46
47 FFLAGS        = $(FOPT)
48
49 ALSRCS  = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c
50
51 ALOBJS  = $(SHOBJS) $(RCOBJS) $(DUOBJS)
52
53 ##### COMMANDS ##### 
54
55 SLIBRARY        = $(LIBDIR)/libEMCAL.$(SL)
56
57 default:        $(SLIBRARY)
58
59 $(LIBDIR)/libEMCAL.$(SL):                       $(OBJS) $(FOBJS)
60
61 $(DICT):                                        $(HDRS)
62
63 depend:                  $(SRCS) 
64
65 TOCLEAN         =        $(OBJS) $(FOBJS) *Cint.cxx *Cint.h
66
67 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
68
69 ############################### General Macros ################################
70
71 include $(ALICE_ROOT)/conf/GeneralMacros
72
73 ############################ Dependencies #####################################
74
75 -include tgt_$(ALICE_TARGET)/Make-depend 
76