]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/Makefile
Streamlining of CodeAnalysis. .ii files are kept for reverse engineering
[u/mrichter/AliRoot.git] / MUON / Makefile
1 ############################### MUON 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 = MUON
9
10 # C++ sources
11
12 SRCS          = AliMUONchamber.cxx AliMUONSegResV0.cxx AliMUONSegResV01.cxx \
13                AliMUONSegResV02.cxx AliMUONSegResV04.cxx AliMUONSegResV05.cxx\
14                AliMUONSegResV1.cxx AliMUON.cxx AliMUONv0.cxx \
15                AliMUONdisplay.cxx AliMUONpoints.cxx \
16                AliMUONClusterFinder.cxx  AliMUONClusterFinderv0.cxx \
17                AliMUONHitMap.cxx AliMUONTUBE.cxx
18
19 # C++ Headers
20
21 HDRS          = $(SRCS:.cxx=.h) AliMUONConst.h MUONLinkDef.h
22
23 # Library dictionary
24
25 DICT          = MUONCint.cxx
26 DICTH         = $(DICT:.cxx=.h)
27 DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
28
29 # Fortran sources
30
31 FSRCS         = algo.F reco_muon.F
32
33 # FORTRAN Objectrs
34
35 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
36
37 # C Objects
38
39 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
40
41 # C++ Objects
42
43 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
44
45 # C++ compilation flags
46
47 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
48  
49 # FORTRAN compilation flags
50
51 FFLAGS      = $(FOPT)
52
53 ##### TARGETS #####
54  
55 # Target
56
57 SLIBRARY        = $(LIBDIR)/libMUON.$(SL)
58 ALIBRARY        = $(LIBDIR)/libMUON.a
59
60 default:        $(SLIBRARY)
61
62 $(LIBDIR)/libMUON.$(SL):        $(OBJS) $(FOBJS)
63
64 $(DICT):                        $(HDRS)
65
66 depend:                         $(SRCS)
67
68 TOCLEAN         = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h
69
70 CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
71
72 ############################### General Macros ################################
73
74 include $(ALICE_ROOT)/conf/GeneralMacros
75
76 ############################ Dependencies #####################################
77
78 -include tgt_$(ALICE_TARGET)/Make-depend 
79