Code from MUON-dev joined
[u/mrichter/AliRoot.git] / MUON / Makefile
CommitLineData
fe4da5cc 1############################### MUON Makefile #################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = MUON
9
10# C++ sources
11
a9e2aefa 12SRCS = AliMUONChamber.cxx AliMUONChamberTrigger.cxx \
13 AliMUONSegmentation.cxx AliMUONSegmentationV0.cxx\
14 AliMUONResponse.cxx AliMUONResponseV0.cxx \
15 AliMUONSegmentationV01.cxx \
16 AliMUONSegmentationV02.cxx AliMUONSegmentationV04.cxx \
17 AliMUONSegmentationV05.cxx\
18 AliMUONSegmentationTrigger.cxx AliMUONResponseTrigger.cxx\
19 AliMUONSegmentationTriggerX.cxx AliMUONSegmentationTriggerY.cxx \
20 AliMUONSegmentationV1.cxx AliMUON.cxx AliMUONv0.cxx AliMUONv1.cxx\
21 AliMUONDisplay.cxx AliMUONPoints.cxx \
22 AliMUONClusterFinderVS.cxx AliMUONClusterFinder.cxx \
23 AliMUONHitMap.cxx AliMUONHitMapA1.cxx \
24 AliMUONHit.cxx AliMUONPadHit.cxx AliMUONDigit.cxx \
25 AliMUONTransientDigit.cxx AliMUONRawCluster.cxx \
26 AliMUONReconstHit.cxx \
27 AliMUONTrackReconstructor.cxx \
28 AliMUONEventReconstructor.cxx \
29 AliMUONTriggerDecision.cxx \
30 AliMUONHitForRec.cxx AliMUONSegment.cxx \
31 AliMUONTrack.cxx AliMUONTrackHit.cxx AliMUONTrackParam.cxx \
32 AliMUONTriggerCircuit.cxx AliMUONTriggerLut.cxx \
33 AliMUONGlobalTrigger.cxx AliMUONLocalTrigger.cxx \
fe4da5cc 34
35# C++ Headers
36
a9e2aefa 37HDRS = $(SRCS:.cxx=.h) MUONLinkDef.h
fe4da5cc 38
39# Library dictionary
40
41DICT = MUONCint.cxx
42DICTH = $(DICT:.cxx=.h)
4adb943a 43DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
fe4da5cc 44
45# Fortran sources
46
a9e2aefa 47FSRCS = reco_muon.F
fe4da5cc 48
49# FORTRAN Objectrs
50
4adb943a 51FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 52
53# C Objects
54
4adb943a 55COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
fe4da5cc 56
57# C++ Objects
58
4adb943a 59OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 60
61# C++ compilation flags
62
63CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
64
65# FORTRAN compilation flags
66
67FFLAGS = $(FOPT)
68
69##### TARGETS #####
70
71# Target
72
cb342460 73SLIBRARY = $(LIBDIR)/libMUON.$(SL)
74ALIBRARY = $(LIBDIR)/libMUON.a
fe4da5cc 75
76default: $(SLIBRARY)
77
cb342460 78$(LIBDIR)/libMUON.$(SL): $(OBJS) $(FOBJS)
fe4da5cc 79
80$(DICT): $(HDRS)
81
82depend: $(SRCS)
83
84TOCLEAN = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h
85
e2fe4c02 86CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
87
fe4da5cc 88############################### General Macros ################################
89
90include $(ALICE_ROOT)/conf/GeneralMacros
91
92############################ Dependencies #####################################
93
1207d6f2 94-include tgt_$(ALICE_TARGET)/Make-depend
41f6cf69 95
a9e2aefa 96# DO NOT DELETE