]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/Makefile
Improve documentation
[u/mrichter/AliRoot.git] / PHOS / Makefile
1 ############################### PHOS 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 = PHOS
9
10 # C++ sources
11
12 SRCS          =    AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx AliPHOSHit.cxx \
13                    AliPHOSGeometry.cxx \
14                    AliPHOSDigit.cxx  \
15                    AliPHOSRecPoint.cxx AliPHOSEmcRecPoint.cxx AliPHOSPpsdRecPoint.cxx \
16                    AliPHOSClusterizer.cxx AliPHOSClusterizerv1.cxx  AliPHOSLink.cxx \
17                    AliPHOSReconstructioner.cxx  AliPHOSTrackSegment.cxx \
18                    AliPHOSTrackSegmentMaker.cxx AliPHOSTrackSegmentMakerv1.cxx \
19                    AliPHOSRecParticle.cxx AliPHOSPID.cxx AliPHOSPIDv1.cxx \
20                    AliPHOSAnalyze.cxx  AliPHOSvFast.cxx AliPHOSFastRecParticle.cxx \
21                    AliPHOSArray.cxx
22
23
24 # C++ Headers
25
26 HDRS          = $(SRCS:.cxx=.h) PHOSLinkDef.h
27
28 # Library dictionary
29
30 DICT          = PHOSCint.cxx
31 DICTH         = $(DICT:.cxx=.h)
32 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
33
34 # C++ Objects
35
36 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
37
38 # C++ compilation flags
39
40 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
41
42 ALSRCS  = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c
43
44 ALOBJS  = $(SHOBJS) $(RCOBJS) $(DUOBJS)
45
46 ##### COMMANDS ##### 
47
48 SLIBRARY        = $(LIBDIR)/libPHOS.$(SL)
49
50 default:        $(SLIBRARY)
51
52 $(LIBDIR)/libPHOS.$(SL):                        $(OBJS) $(FOBJS)
53
54 $(DICT):                                        $(HDRS)
55
56 depend:                         $(SRCS) 
57
58 TOCLEAN         =        $(OBJS) *Cint.cxx *Cint.h
59
60 ############################### General Macros ################################
61
62 include $(ALICE_ROOT)/conf/GeneralMacros
63
64 ############################ Dependencies #####################################
65
66 -include tgt_$(ALICE_TARGET)/Make-depend 
67
68 ### Target check creates violation reports (.viol), which depend on
69 ### stripped files (.ii), which in turn depend on preprocessed
70 ### files (.i). Dependences are in conf/GeneralDef.
71
72 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
73
74 check:          $(CHECKS)
75
76
77
78
79
80
81