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