]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/Makefile
Modified AddTracks. Should be backward compatible
[u/mrichter/AliRoot.git] / STEER / Makefile
1 ############################### STEER 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 = STEER
9
10 # C++ sources
11
12 SRCS          = AliDetector.cxx AliHeader.cxx   AliMagF.cxx \
13                 AliDigit.cxx    AliHit.cxx      AliPoints.cxx \
14                 AliDisplay.cxx  AliMC.cxx       AliRun.cxx AliGenerator.cxx \
15                 AliLego.cxx     AliModule.cxx   AliDigitNew.cxx \
16                 AliGeometry.cxx AliRecPoint.cxx AliSegmentation.cxx \
17                 AliHitMap.cxx   AliMagFC.cxx    AliMagFCM.cxx \
18                 AliMagFDM.cxx   AliLegoGenerator.cxx AliLegoGeneratorXYZ.cxx\
19                 AliLegoGeneratorPhiZ.cxx AliLegoGeneratorEta.cxx \
20                 AliRndm.cxx \
21                 AliKalmanTrack.cxx AliCluster.cxx AliTracker.cxx\
22                 AliMCQA.cxx AliPDG.cxx AliDebugVolume.cxx \
23                 AliGenEventHeader.cxx AliStack.cxx AliConfig.cxx \
24                 AliRunDigitizer.cxx AliDigitizer.cxx AliStream.cxx \
25                 AliMergeCombi.cxx
26
27 # C++ Headers
28
29 HDRS          = $(SRCS:.cxx=.h) AliPDG.h $(ROOTSYS)/include/TH2.h \
30                                 $(ROOTSYS)/include/TRandom.h STEERLinkDef.h 
31
32 # Library dictionary
33
34 DICT          = STEERCint.cxx
35 DICTH         = $(DICT:.cxx=.h)
36 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
37
38 # FORTRAN Objectrs
39
40 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
41
42 # C Objects
43
44 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
45
46 # C++ Objects
47
48 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
49
50 # C++ compilation flags
51
52 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
53  
54 # FORTRAN compilation flags
55
56 FFLAGS      = $(FOPT)
57
58 ##### TARGETS #####
59  
60 # Target
61
62 SLIBRARY        = $(LIBDIR)/libSTEER.$(SL)
63 ALIBRARY        = $(LIBDIR)/lib/libSTEER.a
64
65 default:        $(SLIBRARY)
66
67 $(LIBDIR)/libSTEER.$(SL):               $(OBJS)
68
69 $(DICT):                                $(HDRS)
70
71 depend:                                 $(SRCS)
72
73 HEADERS         = $(SRCS:.cxx=.h) AliPDG.h AliConst.h AliCallf77.h AliMCProcess.h AliConfig.h AliGenEventHeader.h
74
75 TOCLEAN         = $(OBJS) *Cint.cxx *Cint.h
76
77 CHECKS          = $(patsubst %.cxx,check/%.viol,$(SRCS))
78
79 ############################### General Macros ################################
80
81 include $(ALICE_ROOT)/conf/GeneralMacros
82
83 ############################ Dependencies #####################################
84
85 -include tgt_$(ALICE_TARGET)/Make-depend 
86
87
88
89
90
91
92