fe4da5cc |
1 | ############################### FMD 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 = FMD |
9 | |
10 | # C++ sources |
11 | |
63a8fec1 |
12 | SRCS = AliFMD.cxx AliFMDv0.cxx AliFMDv1.cxx AliFMDhit.cxx\ |
13 | AliFMDdigit.cxx AliFMDSDigitizer.cxx |
fe4da5cc |
14 | |
15 | # C++ Headers |
16 | |
17 | HDRS = $(SRCS:.cxx=.h) FMDLinkDef.h |
18 | |
19 | # Library dictionary |
20 | |
21 | DICT = FMDCint.cxx |
22 | DICTH = $(DICT:.cxx=.h) |
4adb943a |
23 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc |
24 | |
25 | # FORTRAN Objectrs |
26 | |
4adb943a |
27 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc |
28 | |
29 | # C Objects |
30 | |
4adb943a |
31 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc |
32 | |
33 | # C++ Objects |
34 | |
4adb943a |
35 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc |
36 | |
37 | # C++ compilation flags |
38 | |
39 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ |
40 | |
41 | # FORTRAN compilation flags |
42 | |
43 | FFLAGS = $(FOPT) |
44 | |
45 | ##### TARGETS ##### |
46 | |
47 | # Target |
48 | |
2908c594 |
49 | SLIBRARY = $(LIBDIR)/libFMD.$(SL) |
50 | ALIBRARY = $(LIBDIR)/libFMD.a |
fe4da5cc |
51 | |
52 | default: $(SLIBRARY) |
53 | |
2908c594 |
54 | $(LIBDIR)/libFMD.$(SL): $(OBJS) |
fe4da5cc |
55 | |
56 | $(DICT): $(HDRS) |
57 | |
58 | depend: $(SRCS) |
59 | |
54217642 |
60 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
fe4da5cc |
61 | |
900f952a |
62 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
63 | |
fe4da5cc |
64 | ############################### General Macros ################################ |
65 | |
66 | include $(ALICE_ROOT)/conf/GeneralMacros |
67 | |
68 | ############################ Dependencies ##################################### |
69 | |
1207d6f2 |
70 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 |
71 | |
41f6cf69 |
72 | |
73 | |
74 | |
75 | |
76 | |
77 | |