]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### RICH 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 = RICH | |
9 | ||
10 | # C++ sources | |
11 | ||
018d117f | 12 | SRCS = AliRICH.cxx AliRICHv0.cxx AliRICHDisplay.cxx AliRICHPoints.cxx AliRICHHitMap.cxx AliRICHSegResV0.cxx AliRICHSegResV1.cxx AliRICHClusterFinder.cxx \ |
13 | DataStructures.cxx AliRICHChamber.cxx AliRICHDetect.cxx | |
fe4da5cc | 14 | |
15 | # C++ Headers | |
16 | ||
17 | HDRS = $(SRCS:.cxx=.h) RICHLinkDef.h | |
18 | ||
19 | # Library dictionary | |
20 | ||
21 | DICT = RICHCint.cxx | |
22 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 23 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 24 | |
25 | # FORTRAN Objectrs | |
26 | ||
4adb943a | 27 | FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 28 | |
29 | # C Objects | |
30 | ||
4adb943a | 31 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 32 | |
33 | # C++ Objects | |
34 | ||
4adb943a | 35 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 36 | |
37 | # C++ compilation flags | |
38 | ||
39 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
cb342460 | 40 | |
41 | CXXFLAGS += -I$(ALICE_ROOT)/TGeant3 | |
42 | DEPINC += -I$(ALICE_ROOT)/TGeant3 | |
fe4da5cc | 43 | |
44 | # FORTRAN compilation flags | |
45 | ||
46 | FFLAGS = $(FOPT) | |
47 | ||
48 | ##### TARGETS ##### | |
49 | ||
50 | # Target | |
51 | ||
cb342460 | 52 | SLIBRARY = $(LIBDIR)/libRICH.$(SL) |
53 | ALIBRARY = $(LIBDIR)/libRICH.a | |
fe4da5cc | 54 | |
55 | default: $(SLIBRARY) | |
56 | ||
cb342460 | 57 | $(LIBDIR)/libRICH.$(SL): $(OBJS) |
fe4da5cc | 58 | |
59 | $(DICT): $(HDRS) | |
60 | ||
61 | depend: $(SRCS) | |
62 | ||
63 | TOCLEAN = $(OBJS) *Cint.cxx *Cint.h | |
64 | ||
65 | ############################### General Macros ################################ | |
66 | ||
67 | include $(ALICE_ROOT)/conf/GeneralMacros | |
68 | ||
69 | ############################ Dependencies ##################################### | |
70 | ||
1207d6f2 | 71 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 72 | |
73 | ### Target check creates violation reports (.viol), which depend on | |
74 | ### stripped files (.ii), which in turn depend on preprocessed | |
75 | ### files (.i). Dependences are in conf/GeneralDef. | |
76 | ||
77 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
78 | ||
79 | check: $(CHECKS) | |
80 | ||
81 | ||
82 | ||
83 | ||
84 | ||
85 | ||
86 |