Use tgt_ prefix for binary target directories
[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
12SRCS = AliMUON.cxx AliMUONdisplay.cxx AliMUONpoints.cxx \
13 AliMUONsegmentv1.cxx AliMUONv0.cxx AliMUONv01.cxx
14
15# C++ Headers
16
17HDRS = $(SRCS:.cxx=.h) AliMUONConst.h MUONLinkDef.h
18
19# Library dictionary
20
21DICT = MUONCint.cxx
22DICTH = $(DICT:.cxx=.h)
4adb943a 23DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
fe4da5cc 24
25# Fortran sources
26
27FSRCS = algo.F
28
29# FORTRAN Objectrs
30
4adb943a 31FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 32
33# C Objects
34
4adb943a 35COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
fe4da5cc 36
37# C++ Objects
38
4adb943a 39OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 40
41# C++ compilation flags
42
43CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
44
45# FORTRAN compilation flags
46
47FFLAGS = $(FOPT)
48
49##### TARGETS #####
50
51# Target
52
cb342460 53SLIBRARY = $(LIBDIR)/libMUON.$(SL)
54ALIBRARY = $(LIBDIR)/libMUON.a
fe4da5cc 55
56default: $(SLIBRARY)
57
cb342460 58$(LIBDIR)/libMUON.$(SL): $(OBJS) $(FOBJS)
fe4da5cc 59
60$(DICT): $(HDRS)
61
62depend: $(SRCS)
63
64TOCLEAN = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h
65
66############################### General Macros ################################
67
68include $(ALICE_ROOT)/conf/GeneralMacros
69
70############################ Dependencies #####################################
71
f2bd4a7f 72-include Make-depend
fe4da5cc 73