]>
Commit | Line | Data |
---|---|---|
1 | ############################### PMD 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 = PMD | |
9 | ||
10 | # C++ sources | |
11 | ||
12 | SRCS = AliPMD.cxx AliPMDv0.cxx AliPMDv1.cxx AliPMDv2.cxx AliPMDRecPoint.cxx | |
13 | ||
14 | # C++ Headers | |
15 | ||
16 | HDRS = $(SRCS:.cxx=.h) \ | |
17 | $(ROOTSYS)/include/TClonesArray.h \ | |
18 | PMDLinkDef.h | |
19 | ||
20 | # Library dictionary | |
21 | ||
22 | DICT = PMDCint.cxx | |
23 | DICTH = $(DICT:.cxx=.h) | |
24 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) | |
25 | ||
26 | # FORTRAN Objectrs | |
27 | ||
28 | FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) | |
29 | ||
30 | # C Objects | |
31 | ||
32 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) | |
33 | ||
34 | # C++ Objects | |
35 | ||
36 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) | |
37 | ||
38 | # C++ compilation flags | |
39 | ||
40 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
41 | ||
42 | # FORTRAN compilation flags | |
43 | ||
44 | FFLAGS = $(FOPT) | |
45 | ||
46 | ##### TARGETS ##### | |
47 | ||
48 | # Target | |
49 | ||
50 | SLIBRARY = $(LIBDIR)/libPMD.$(SL) | |
51 | ALIBRARY = $(LIBDIR)/libPMD.a | |
52 | ||
53 | default: $(SLIBRARY) | |
54 | ||
55 | $(LIBDIR)/libPMD.$(SL): $(OBJS) | |
56 | ||
57 | $(DICT): $(HDRS) | |
58 | ||
59 | depend: $(SRCS) | |
60 | ||
61 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
62 | ||
63 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
64 | ||
65 | ############################### General Macros ################################ | |
66 | ||
67 | include $(ALICE_ROOT)/conf/GeneralMacros | |
68 | ||
69 | ############################ Dependencies ##################################### | |
70 | ||
71 | -include tgt_$(ALICE_TARGET)/Make-depend | |
72 | ||
73 | ||
74 | ||
75 | ||
76 | ||
77 | ||
78 |