]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### TRD 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 name | |
9 | ||
10 | PACKAGE = TRD | |
11 | ||
12 | # C++ sources | |
13 | ||
14 | SRCS = AliTRD.cxx AliTRDv0.cxx AliTRDv1.cxx AliTRDv2.cxx | |
15 | ||
16 | # C++ Headers | |
17 | ||
18 | HDRS = $(SRCS:.cxx=.h) TRDLinkDef.h | |
19 | ||
20 | # Library dictionary | |
21 | ||
22 | DICT = TRDCint.cxx | |
23 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 24 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 25 | |
26 | # FORTRAN Objectrs | |
27 | ||
4adb943a | 28 | FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 29 | |
30 | # C Objects | |
31 | ||
4adb943a | 32 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 33 | |
34 | # C++ Objects | |
35 | ||
4adb943a | 36 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 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 | ||
cb342460 | 50 | SLIBRARY = $(LIBDIR)/libTRD.$(SL) |
51 | ALIBRARY = $(LIBDIR)/libTRD.a | |
fe4da5cc | 52 | |
31ccd13b | 53 | default: $(SLIBRARY) |
fe4da5cc | 54 | |
cb342460 | 55 | $(LIBDIR)/libTRD.$(SL): $(OBJS) |
fe4da5cc | 56 | |
57 | TRDCint.cxx: $(HDRS) | |
58 | ||
fe4da5cc | 59 | depend: $(SRCS) |
60 | ||
61 | TOCLEAN = $(OBJS) *Cint.h *Cint.cxx | |
62 | ||
63 | ############################### General Macros ################################ | |
64 | ||
65 | include $(ALICE_ROOT)/conf/GeneralMacros | |
66 | ||
67 | ############################ Dependencies ##################################### | |
68 | ||
1207d6f2 | 69 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 70 | |
71 | ### Target check creates violation reports (.viol), which depend on | |
72 | ### stripped files (.ii), which in turn depend on preprocessed | |
73 | ### files (.i). Dependences are in conf/GeneralDef. | |
74 | ||
75 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
76 | ||
77 | check: $(CHECKS) | |
78 | ||
79 | ||
80 | ||
81 | ||
82 | ||
83 | ||
84 |