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