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