Make-depend automatically generated if not there.
[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
12SRCS = AliPHOS.cxx AliPHOSv0.cxx AliPHOSv1.cxx AliPHOSv2.cxx
13
14# C++ Headers
15
16HDRS = $(SRCS:.cxx=.h) PHOSLinkDef.h
17
18# Library dictionary
19
20DICT = PHOSCint.cxx
21DICTH = $(DICT:.cxx=.h)
22DICTO = $(DICT:.cxx=.o)
23
24# FORTRAN sources
25
26FSRCS = AliPHOSf.F AliPHOScommon.F
27
28# FORTRAN Objectrs
29
30FOBJS = $(FSRCS:.F=.o)
31
32# C Objects
33
34COBJS = $(CSRCS:.c=.o)
35
36# C++ Objects
37
38OBJS = $(SRCS:.cxx=.o) $(DICTO)
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)
51SHOBJS = $(SHSRCS:.f=.o)
52
53RCSRCS = $(wildcard reconstruction/*.f) $(wildcard utils/*.cxx) $(wildcard utils/*.f)
54RCOBJS = $(patsubst %.f,%.o,$(patsubst %.cxx,%.o,$(RCSRCS)))
55
56DUSRCS = libPHOSdummy.cxx
57DUOBJS = $(DUSRCS:.cxx=.o)
58
59ALSRCS = $(SRCS) $(SHSRCS) $(RCSRCS) $(DUSRCS) dummies.c
60
61ALOBJS = $(SHOBJS) $(RCOBJS) $(DUOBJS)
62
63##### COMMANDS #####
64
65SLIBRARY = $(ALICE_ROOT)/lib/libPHOSdummy.$(SL) $(ALICE_ROOT)/lib/libPHOSshaker.$(SL) \
66 $(ALICE_ROOT)/lib/libPHOSreconstruction.$(SL) $(ALICE_ROOT)/lib/libPHOS.$(SL)
67
68default: $(SLIBRARY)
69
70$(ALICE_ROOT)/lib/libPHOSdummy.$(SL): $(DUOBJS)
71
72$(ALICE_ROOT)/lib/libPHOSshaker.$(SL): $(SHOBJS)
73
74$(ALICE_ROOT)/lib/libPHOSreconstruction.$(SL): $(RCOBJS)
75
76$(ALICE_ROOT)/lib/libPHOS.$(SL): $(OBJS) $(FOBJS)
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
9f84158c 91-include Make-depend