]>
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) | |
24 | DICTO = $(DICT:.cxx=.o) | |
25 | ||
26 | # FORTRAN Objectrs | |
27 | ||
28 | FOBJS = $(FSRCS:.f=.o) | |
29 | ||
30 | # C Objects | |
31 | ||
32 | COBJS = $(CSRCS:.c=.o) | |
33 | ||
34 | # C++ Objects | |
35 | ||
36 | OBJS = $(SRCS:.cxx=.o) $(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 = $(ALICE_ROOT)/lib/libTRD.$(SL) | |
51 | ALIBRARY = $(ALICE_ROOT)/lib/libTRD.a | |
52 | ||
b97eee11 | 53 | default: headers $(SLIBRARY) |
fe4da5cc | 54 | |
55 | $(ALICE_ROOT)/lib/libTRD.$(SL): $(OBJS) | |
56 | ||
57 | TRDCint.cxx: $(HDRS) | |
58 | ||
59 | HEADERS = $(filter-out LinkDef,$(HDRS)) | |
60 | ||
61 | depend: $(SRCS) | |
62 | ||
63 | TOCLEAN = $(OBJS) *Cint.h *Cint.cxx | |
64 | ||
65 | ############################### General Macros ################################ | |
66 | ||
67 | include $(ALICE_ROOT)/conf/GeneralMacros | |
68 | ||
69 | ############################ Dependencies ##################################### | |
70 | ||
71 | include Make-depend |