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