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