]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/Makefile
New files for compilation are added
[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 AliPHOSv2.cxx \
13                  AliPHOSv3.cxx AliPHOSv4.cxx \
14                  AliPHOSHit.cxx \
15                  AliPHOSGeometry.cxx \
16                  AliEMCAGeometry.cxx \
17                  AliCPVGeometry.cxx AliCPVBaseGeometry.cxx AliPPSDGeometry.cxx \
18                  AliPHOSCPV.cxx \
19                  AliPHOSDigit.cxx  \
20                  AliPHOSRecPoint.cxx AliPHOSEmcRecPoint.cxx AliPHOSPpsdRecPoint.cxx \
21                  AliPHOSClusterizer.cxx AliPHOSClusterizerv1.cxx  AliPHOSLink.cxx \
22                  AliPHOSReconstructioner.cxx  AliPHOSTrackSegment.cxx \
23                  AliPHOSTrackSegmentMaker.cxx AliPHOSTrackSegmentMakerv1.cxx \
24                  AliPHOSRecParticle.cxx AliPHOSPID.cxx AliPHOSPIDv1.cxx \
25                  AliPHOSAnalyze.cxx AliPHOSFastRecParticle.cxx \
26                  AliPHOSIndexToObject.cxx \
27
28 # C++ Headers
29
30 HDRS          = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TTree.h PHOSLinkDef.h
31
32 # Library dictionary
33
34 DICT          = PHOSCint.cxx
35 DICTH         = $(DICT:.cxx=.h)
36 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
37
38 # C++ Objects
39
40 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
41
42 # C++ compilation flags
43
44 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
45
46 ALSRCS  = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c
47
48 ALOBJS  = $(SHOBJS) $(RCOBJS) $(DUOBJS)
49
50 ##### COMMANDS ##### 
51
52 SLIBRARY        = $(LIBDIR)/libPHOS.$(SL)
53
54 default:        $(SLIBRARY)
55
56 $(LIBDIR)/libPHOS.$(SL):                        $(OBJS) $(FOBJS)
57
58 $(DICT):                                        $(HDRS)
59
60 depend:                         $(SRCS) 
61
62 TOCLEAN         =        $(OBJS) *Cint.cxx *Cint.h
63
64 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
65 REVENGS       = $(patsubst %.cxx,check/%.ii,$(SRCS))
66
67 # IRST reverse engineering
68 reveng : $(REVENGS)
69         @$(REV_ENG) $(REVENGS)
70 ############################### General Macros ################################
71
72 include $(ALICE_ROOT)/conf/GeneralMacros
73
74 ############################ Dependencies #####################################
75
76 -include tgt_$(ALICE_TARGET)/Make-depend 
77
78
79
80
81
82
83