Small improvements to the installation instructions
[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
52005fc3 26# FORTRAN Objects
fe4da5cc 27
28# C Objects
29
fe4da5cc 30# C++ Objects
31
4adb943a 32OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 33
34# C++ compilation flags
35
36CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
37
38# FORTRAN compilation flags
39
52005fc3 40ALSRCS = $(SRCS)
fe4da5cc 41
52005fc3 42ALOBJS = $(OBJS)
fe4da5cc 43
44##### COMMANDS #####
45
52005fc3 46SLIBRARY = $(LIBDIR)/libPHOS.$(SL)
fe4da5cc 47
48default: $(SLIBRARY)
49
cb342460 50$(LIBDIR)/libPHOS.$(SL): $(OBJS) $(FOBJS)
fe4da5cc 51
52$(DICT): $(HDRS)
53
52005fc3 54depend: $(SRCS)
fe4da5cc 55
52005fc3 56TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
fe4da5cc 57
58############################### General Macros ################################
59
60include $(ALICE_ROOT)/conf/GeneralMacros
61
62############################ Dependencies #####################################
63
1207d6f2 64-include tgt_$(ALICE_TARGET)/Make-depend
41f6cf69 65
66### Target check creates violation reports (.viol), which depend on
67### stripped files (.ii), which in turn depend on preprocessed
68### files (.i). Dependences are in conf/GeneralDef.
69
70CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
71
72check: $(CHECKS)
73
74
75
76
77
78
79