]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | ############################### ITS 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 = ITS | |
9 | ||
10 | # C++ sources | |
11 | ||
58005f18 | 12 | SRCS = AliITS.cxx AliITSv1.cxx AliITSv3.cxx AliITSv5.cxx AliITSdigit.cxx AliITSgeom.cxx AliITSgeomSPD.cxx AliITSgeomSDD.cxx AliITSgeomSSD.cxx AliITSmodule.cxx AliITSmoduleSPD.cxx AliITSmoduleSDD.cxx AliITSmoduleSSD.cxx AliITSdigitSSD.cxx AliITShit.cxx |
fe4da5cc | 13 | |
14 | # Fortran sources | |
15 | ||
766ac21b | 16 | FSRCS = |
fe4da5cc | 17 | |
18 | # C++ Headers | |
19 | ||
20 | HDRS = $(SRCS:.cxx=.h) ITSLinkDef.h | |
21 | ||
22 | # Library dictionary | |
23 | ||
24 | DICT = ITSCint.cxx | |
25 | DICTH = $(DICT:.cxx=.h) | |
4adb943a | 26 | DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT)) |
fe4da5cc | 27 | |
28 | # FORTRAN Objectrs | |
29 | ||
4adb943a | 30 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 31 | |
32 | # C Objects | |
33 | ||
4adb943a | 34 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 35 | |
36 | # C++ Objects | |
37 | ||
4adb943a | 38 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 39 | |
40 | # C++ compilation flags | |
41 | ||
42 | CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ | |
43 | ||
44 | # FORTRAN compilation flags | |
45 | ||
46 | FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321 | |
47 | ||
48 | ##### TARGETS ##### | |
49 | ||
50 | # Target | |
51 | ||
cb342460 | 52 | SLIBRARY = $(LIBDIR)/libITS.$(SL) |
53 | ALIBRARY = $(LIBDIR)/libITS.a | |
fe4da5cc | 54 | |
55 | default: $(SLIBRARY) | |
56 | ||
58005f18 | 57 | |
cb342460 | 58 | $(LIBDIR)/libITS.$(SL): $(OBJS) |
fe4da5cc | 59 | |
60 | $(DICT): $(HDRS) | |
61 | ||
62 | DEPINC += -I$(ALICE_ROOT)/GEANT321 | |
63 | ||
64 | depend: $(SRCS) $(FSRCS) | |
65 | ||
66 | TOCLEAN = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h | |
67 | ||
68 | ############################### General Macros ################################ | |
69 | ||
70 | include $(ALICE_ROOT)/conf/GeneralMacros | |
71 | ||
72 | ############################ Dependencies ##################################### | |
73 | ||
1207d6f2 | 74 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 75 | |
76 | ### Target check creates violation reports (.viol), which depend on | |
77 | ### stripped files (.ii), which in turn depend on preprocessed | |
78 | ### files (.i). Dependences are in conf/GeneralDef. | |
79 | ||
80 | CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS)) | |
81 | ||
82 | check: $(CHECKS) |