Updated Linkdef and libTOF.pkg
[u/mrichter/AliRoot.git] / TOF / Makefile
CommitLineData
fe4da5cc 1############################### TOF Makefile ##################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = TOF
9
10# C++ sources
11
293b1669 12SRCS = AliTOF.cxx AliTOFv0.cxx AliTOFv1.cxx AliTOFv2.cxx AliTOFv3.cxx AliTOFv4.cxx AliTOFv4T0.cxx AliTOFhit.cxx AliTOFhitT0.cxx AliTOFdigit.cxx AliTOFRawSector.cxx AliTOFRoc.cxx AliTOFRawDigit.cxx AliTOFDigitizer.cxx AliTOFSDigitizer.cxx AliTOFMerger.cxx AliTOFv2FHoles.cxx AliTOFSDigit.cxx AliTOFHitMap.cxx AliTOFConstants.cxx AliTOFT0.cxx AliTOFPID.cxx
fe4da5cc 13
14# C++ Headers
15
16HDRS = $(SRCS:.cxx=.h) TOFLinkDef.h
17
18# Library dictionary
19
20DICT = TOFCint.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/
39
40# FORTRAN compilation flags
41
42FFLAGS = $(FOPT)
43
44##### TARGETS #####
45
46# Target
47
cb342460 48SLIBRARY = $(LIBDIR)/libTOF.$(SL)
49ALIBRARY = $(LIBDIR)/libTOF.a
fe4da5cc 50
51default: $(SLIBRARY)
52
cb342460 53$(LIBDIR)/libTOF.$(SL): $(OBJS)
fe4da5cc 54
55$(DICT): $(HDRS)
56
57depend: $(SRCS)
58
59TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
60
e2fe4c02 61CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
62
fe4da5cc 63############################### General Macros ################################
64
65include $(ALICE_ROOT)/conf/GeneralMacros
66
67############################ Dependencies #####################################
68
1207d6f2 69-include tgt_$(ALICE_TARGET)/Make-depend
68861244 70# DO NOT DELETE