]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/Makefile
Modified for new AliITSgeom code.
[u/mrichter/AliRoot.git] / ITS / Makefile
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
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
17
18 # Fortran sources
19
20 FSRCS          = 
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)
30 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
31
32 # FORTRAN Objectrs
33
34 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
35
36 # C Objects
37
38 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
39
40 # C++ Objects
41
42 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
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
56 SLIBRARY        = $(LIBDIR)/libITS.$(SL)
57 ALIBRARY        = $(LIBDIR)/libITS.a
58
59 default:        $(SLIBRARY)
60
61
62 $(LIBDIR)/libITS.$(SL):         $(OBJS)
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
72 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
73
74 ############################### General Macros ################################
75
76 include $(ALICE_ROOT)/conf/GeneralMacros
77
78 ############################ Dependencies #####################################
79
80 -include tgt_$(ALICE_TARGET)/Make-depend