]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### ZDC 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 = ZDC | |
9 | ||
10 | # FORTRAN sources | |
11 | ||
68ca986e | 12 | FSRCS = |
fe4da5cc | 13 | |
14 | # C++ sources | |
15 | ||
359cdddc | 16 | SRCS = AliZDC.cxx AliZDCv1.cxx AliZDCv2.cxx AliZDCHit.cxx AliZDCDigit.cxx \ |
1b98d9ae | 17 | AliGenZDC.cxx AliZDCFragment.cxx AliZDCMerger.cxx AliZDCMergedHit.cxx \ |
18 | AliZDCReco.cxx | |
fe4da5cc | 19 | |
20 | # C++ Headers | |
21 | ||
ced9217f | 22 | HDRS = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TClonesArray.h ZDCLinkDef.h |
fe4da5cc | 23 | |
24 | # Library dictionary | |
25 | ||
26 | DICT = ZDCCint.cxx | |
27 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 28 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 29 | |
30 | # FORTRAN Objectrs | |
31 | ||
4adb943a | 32 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 33 | |
34 | # C Objects | |
35 | ||
4adb943a | 36 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS) |
fe4da5cc | 37 | |
38 | # C++ Objects | |
39 | ||
4adb943a | 40 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 41 | |
42 | # Global Macros | |
43 | ||
44 | ALLOBJS = $(OBJS) $(FOBJS) | |
45 | ||
46 | # C++ compilation flags | |
47 | ||
68ca986e | 48 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \ |
49 | -I$(ALICE_ROOT)/RALICE | |
fe4da5cc | 50 | |
51 | # FORTRAN compilation flags | |
52 | ||
53 | FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321 | |
54 | ||
55 | ##### TARGETS ##### | |
56 | ||
57 | # Target | |
58 | ||
cb342460 | 59 | SLIBRARY = $(LIBDIR)/libZDC.$(SL) |
60 | ALIBRARY = $(LIBDIR)/libZDC.a | |
fe4da5cc | 61 | |
62 | default: $(SLIBRARY) | |
63 | ||
cb342460 | 64 | $(LIBDIR)/libZDC.$(SL): $(OBJS) $(FOBJS) |
fe4da5cc | 65 | |
66 | $(DICT): $(HDRS) | |
67 | ||
68 | DEPINC += -I$(ALICE_ROOT)/GEANT321 | |
69 | ||
70 | depend: $(SRCS) $(FSRCS) | |
71 | ||
72 | TOCLEAN = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h | |
73 | ||
e2fe4c02 | 74 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
75 | ||
fe4da5cc | 76 | ############################### General Macros ################################ |
77 | ||
78 | include $(ALICE_ROOT)/conf/GeneralMacros | |
79 | ||
80 | ############################ Dependencies ##################################### | |
81 | ||
1207d6f2 | 82 | -include tgt_$(ALICE_TARGET)/Make-depend |
fe4da5cc | 83 | |
41f6cf69 | 84 | |
41f6cf69 | 85 | |
86 | ||
87 | ||
88 | ||
89 |