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