695003442c89fa36511c2aa33be47a23eceacbba
[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 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                  AliPHOSIndexToObject.cxx \
22
23 # C++ Headers
24
25 HDRS          = $(SRCS:.cxx=.h) PHOSLinkDef.h
26
27 # Library dictionary
28
29 DICT          = PHOSCint.cxx
30 DICTH         = $(DICT:.cxx=.h)
31 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
32
33 # C++ Objects
34
35 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
36
37 # C++ compilation flags
38
39 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
40
41 ALSRCS  = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c
42
43 ALOBJS  = $(SHOBJS) $(RCOBJS) $(DUOBJS)
44
45 ##### COMMANDS ##### 
46
47 SLIBRARY        = $(LIBDIR)/libPHOS.$(SL)
48
49 default:        $(SLIBRARY)
50
51 $(LIBDIR)/libPHOS.$(SL):                        $(OBJS) $(FOBJS)
52
53 $(DICT):                                        $(HDRS)
54
55 depend:                         $(SRCS) 
56
57 TOCLEAN         =        $(OBJS) *Cint.cxx *Cint.h
58
59 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
60 REVENGS       = $(patsubst %.cxx,check/%.ii,$(SRCS))
61
62 # IRST reverse engineering
63 reveng : $(REVENGS)
64         @$(REV_ENG) $(REVENGS)
65 ############################### General Macros ################################
66
67 include $(ALICE_ROOT)/conf/GeneralMacros
68
69 ############################ Dependencies #####################################
70
71 -include tgt_$(ALICE_TARGET)/Make-depend 
72
73
74
75
76
77
78