005df96785dc05077c56e7ac6728b37f2d1c9303
[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\
25                 AliStream.cxx AliMergeCombi.cxx \
26                 AliMagFMaps.cxx AliFieldMap.cxx \
27                 AliGausCorr.cxx AliTrackReference.cxx AliESD.cxx \
28                 AliTrackMap.cxx AliTrackMapper.cxx
29
30 # C++ Headers
31
32 HDRS          = $(SRCS:.cxx=.h) AliPDG.h $(ROOTSYS)/include/TH2.h \
33                                 $(ROOTSYS)/include/TRandom.h STEERLinkDef.h 
34
35 # Library dictionary
36
37 DICT          = STEERCint.cxx
38 DICTH         = $(DICT:.cxx=.h)
39 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
40
41 # FORTRAN Objectrs
42
43 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
44
45 # C Objects
46
47 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
48
49 # C++ Objects
50
51 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
52
53 # C++ compilation flags
54
55 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
56  
57 # FORTRAN compilation flags
58
59 FFLAGS      = $(FOPT)
60
61 ##### TARGETS #####
62  
63 # Target
64
65 SLIBRARY        = $(LIBDIR)/libSTEER.$(SL)
66 ALIBRARY        = $(LIBDIR)/lib/libSTEER.a
67
68 default:        $(SLIBRARY)
69
70 $(LIBDIR)/libSTEER.$(SL):               $(OBJS)
71
72 $(DICT):                                $(HDRS)
73
74 depend:                                 $(SRCS)
75
76 HEADERS         = $(SRCS:.cxx=.h) AliPDG.h AliConst.h AliCallf77.h AliMCProcess.h AliConfig.h AliGenEventHeader.h AliGausCorr.h
77
78 TOCLEAN         = $(OBJS) *Cint.cxx *Cint.h
79
80 CHECKS          = $(patsubst %.cxx,check/%.viol,$(SRCS))
81
82 ############################### General Macros ################################
83
84 include $(ALICE_ROOT)/conf/GeneralMacros
85
86 ############################ Dependencies #####################################
87
88 -include tgt_$(ALICE_TARGET)/Make-depend 
89
90
91
92
93
94
95