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