New galice.cuts file from Marek
[u/mrichter/AliRoot.git] / RICH / Makefile
CommitLineData
fe4da5cc 1############################### RICH Makefile #################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = RICH
9
10# C++ sources
11
ddae0931 12SRCS = AliRICH.cxx AliRICHv0.cxx AliRICHdisplay.cxx AliRICHpoints.cxx AliRICHHitMap.cxx AliRICHSegResV0.cxx AliRICHSegResCkv.cxx
fe4da5cc 13
14# C++ Headers
15
16HDRS = $(SRCS:.cxx=.h) RICHLinkDef.h
17
18# Library dictionary
19
20DICT = RICHCint.cxx
21DICTH = $(DICT:.cxx=.h)
4adb943a 22DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
fe4da5cc 23
24# FORTRAN Objectrs
25
4adb943a 26FOBJS = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 27
28# C Objects
29
4adb943a 30COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
fe4da5cc 31
32# C++ Objects
33
4adb943a 34OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 35
36# C++ compilation flags
37
38CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
cb342460 39
40CXXFLAGS += -I$(ALICE_ROOT)/TGeant3
41DEPINC += -I$(ALICE_ROOT)/TGeant3
fe4da5cc 42
43# FORTRAN compilation flags
44
45FFLAGS = $(FOPT)
46
47##### TARGETS #####
48
49# Target
50
cb342460 51SLIBRARY = $(LIBDIR)/libRICH.$(SL)
52ALIBRARY = $(LIBDIR)/libRICH.a
fe4da5cc 53
54default: $(SLIBRARY)
55
cb342460 56$(LIBDIR)/libRICH.$(SL): $(OBJS)
fe4da5cc 57
58$(DICT): $(HDRS)
59
60depend: $(SRCS)
61
62TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
63
64############################### General Macros ################################
65
66include $(ALICE_ROOT)/conf/GeneralMacros
67
68############################ Dependencies #####################################
69
1207d6f2 70-include tgt_$(ALICE_TARGET)/Make-depend