fe4da5cc |
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 | |
6edc06da |
12 | SRCS = AliPMD.cxx AliPMDv0.cxx AliPMDv1.cxx AliPMDv2.cxx |
fe4da5cc |
13 | |
14 | # C++ Headers |
15 | |
16 | HDRS = $(SRCS:.cxx=.h) PMDLinkDef.h |
17 | |
18 | # Library dictionary |
19 | |
20 | DICT = PMDCint.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 | |
cb342460 |
48 | SLIBRARY = $(LIBDIR)/libPMD.$(SL) |
49 | ALIBRARY = $(LIBDIR)/libPMD.a |
fe4da5cc |
50 | |
51 | default: $(SLIBRARY) |
52 | |
cb342460 |
53 | $(LIBDIR)/libPMD.$(SL): $(OBJS) |
fe4da5cc |
54 | |
55 | $(DICT): $(HDRS) |
56 | |
57 | depend: $(SRCS) |
58 | |
59 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h |
60 | |
61 | ############################### General Macros ################################ |
62 | |
63 | include $(ALICE_ROOT)/conf/GeneralMacros |
64 | |
65 | ############################ Dependencies ##################################### |
66 | |
1207d6f2 |
67 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 |
68 | |
69 | ### Target check creates violation reports (.viol), which depend on |
70 | ### stripped files (.ii), which in turn depend on preprocessed |
71 | ### files (.i). Dependences are in conf/GeneralDef. |
72 | |
73 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) |
74 | |
75 | check: $(CHECKS) |
76 | |
77 | |
78 | |
79 | |
80 | |
81 | |
82 | |