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