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