]>
Commit | Line | Data |
---|---|---|
2012850d | 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 | ||
b13bbe81 | 12 | SRCS = AliEMCAL.cxx AliEMCALGeometry.cxx AliEMCALv0.cxx \ |
61e0abb5 | 13 | AliEMCALv1.cxx AliEMCALHit.cxx AliEMCALDigit.cxx \ |
471f69dc | 14 | AliEMCALSDigitizer.cxx AliEMCALDigitizer.cxx \ |
471f69dc | 15 | AliEMCALJetFinder.cxx AliEMCALJet.cxx AliEMCALFast.cxx \ |
55acd4fc | 16 | AliEMCALGetter.cxx AliEMCALTick.cxx \ |
483b0559 | 17 | AliEMCALRecPoint.cxx AliEMCALTowerRecPoint.cxx \ |
a58bb081 | 18 | AliEMCALClusterizer.cxx AliEMCALClusterizerv1.cxx \ |
e8f1e037 | 19 | AliEMCALHadronCorrection.cxx AliEMCALHadronCorrectionv0.cxx \ |
20 | AliEMCALJetMicroDst.cxx | |
471f69dc | 21 | |
22 | # FORTRAN sources | |
23 | ||
c3fc2536 | 24 | FSRCS = jet_finder_ua1.F sgpdge.F |
471f69dc | 25 | |
2012850d | 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 | ||
471f69dc | 40 | # FORTRAN Objects |
41 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) | |
2012850d | 42 | # C++ compilation flags |
43 | ||
44 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
45 | ||
471f69dc | 46 | |
47 | FFLAGS = $(FOPT) | |
48 | ||
2012850d | 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 | ||
471f69dc | 63 | depend: $(SRCS) |
2012850d | 64 | |
471f69dc | 65 | TOCLEAN = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h |
2012850d | 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 |