Removal of old PHOS reconstruction routines
[u/mrichter/AliRoot.git] / PHOS / Makefile
CommitLineData
fe4da5cc 1############################### PHOS Makefile #################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = PHOS
9
10# C++ sources
11
7f8f914c 12SRCS = AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx AliPHOSv2.cxx
fe4da5cc 13
14# C++ Headers
15
16HDRS = $(SRCS:.cxx=.h) PHOSLinkDef.h
17
18# Library dictionary
19
20DICT = PHOSCint.cxx
21DICTH = $(DICT:.cxx=.h)
4adb943a 22DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
fe4da5cc 23
24# FORTRAN sources
25
26FSRCS = AliPHOSf.F AliPHOScommon.F
27
28# FORTRAN Objectrs
29
4adb943a 30FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 31
32# C Objects
33
4adb943a 34COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
fe4da5cc 35
36# C++ Objects
37
4adb943a 38OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 39
40# C++ compilation flags
41
42CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
43
44# FORTRAN compilation flags
45
46FFLAGS = $(FOPT)
47
48##### Other Libraries #####
49
50SHSRCS = $(wildcard shaker/*.f)
4adb943a 51SHOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(SHSRCS))
fe4da5cc 52
cb342460 53RCSRCS = $(wildcard reconstruction/*.f)
4adb943a 54RCOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(RCSRCS))
fe4da5cc 55
56DUSRCS = libPHOSdummy.cxx
4adb943a 57DUOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DUSRCS))
fe4da5cc 58
59ALSRCS = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c
60
61ALOBJS = $(SHOBJS) $(RCOBJS) $(DUOBJS)
62
63##### COMMANDS #####
64
cb342460 65SLIBRARY = $(LIBDIR)/libPHOSdummy.$(SL) $(LIBDIR)/libPHOSshaker.$(SL) \
66 $(LIBDIR)/libPHOSreconstruction.$(SL) $(LIBDIR)/libPHOS.$(SL)
fe4da5cc 67
68default: $(SLIBRARY)
69
cb342460 70$(LIBDIR)/libPHOSdummy.$(SL): $(DUOBJS)
fe4da5cc 71
cb342460 72$(LIBDIR)/libPHOSshaker.$(SL): $(SHOBJS)
fe4da5cc 73
cb342460 74$(LIBDIR)/libPHOSreconstruction.$(SL): $(RCOBJS)
fe4da5cc 75
cb342460 76$(LIBDIR)/libPHOS.$(SL): $(OBJS) $(FOBJS)
fe4da5cc 77
78$(DICT): $(HDRS)
79
80depend: $(SRCS) $(DUSRCS) $(SHSRCS) $(RCSRCS)
81
82TOCLEAN = $(DUOBJS) $(SHOBJS) $(RCOBJS) $(OBJS) $(FOBJS) \
83 *Cint.cxx *Cint.h
84
85############################### General Macros ################################
86
87include $(ALICE_ROOT)/conf/GeneralMacros
88
89############################ Dependencies #####################################
90
1207d6f2 91-include tgt_$(ALICE_TARGET)/Make-depend
41f6cf69 92
93### Target check creates violation reports (.viol), which depend on
94### stripped files (.ii), which in turn depend on preprocessed
95### files (.i). Dependences are in conf/GeneralDef.
96
97CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
98
99check: $(CHECKS)
100
101
102
103
104
105
106