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