]>
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 | ||
12 | SRCS = AliEMCAL.cxx AliEMCALGeometry.cxx AliEMCALv0.cxx | |
13 | ||
14 | # C++ Headers | |
15 | ||
16 | HDRS = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h EMCALLinkDef.h | |
17 | ||
18 | # Library dictionary | |
19 | ||
20 | DICT = EMCALCint.cxx | |
21 | DICTH = $(DICT:.cxx=.h) | |
22 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) | |
23 | ||
24 | # C++ Objects | |
25 | ||
26 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) | |
27 | ||
28 | # C++ compilation flags | |
29 | ||
30 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
31 | ||
32 | ALSRCS = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c | |
33 | ||
34 | ALOBJS = $(SHOBJS) $(RCOBJS) $(DUOBJS) | |
35 | ||
36 | ##### COMMANDS ##### | |
37 | ||
38 | SLIBRARY = $(LIBDIR)/libEMCAL.$(SL) | |
39 | ||
40 | default: $(SLIBRARY) | |
41 | ||
42 | $(LIBDIR)/libEMCAL.$(SL): $(OBJS) $(FOBJS) | |
43 | ||
44 | $(DICT): $(HDRS) | |
45 | ||
46 | depend: $(SRCS) | |
47 | ||
48 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
49 | ||
50 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
51 | ||
52 | ############################### General Macros ################################ | |
53 | ||
54 | include $(ALICE_ROOT)/conf/GeneralMacros | |
55 | ||
56 | ############################ Dependencies ##################################### | |
57 | ||
58 | -include tgt_$(ALICE_TARGET)/Make-depend | |
59 | ||
60 | ||
61 | ||
62 | ||
63 | ||
64 | ||
65 |