]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ZDC/Makefile
TreeS, TreeD and TreeR for ZDC can be written in a separate file
[u/mrichter/AliRoot.git] / ZDC / Makefile
CommitLineData
fe4da5cc 1############################### ZDC Makefile ##################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = ZDC
9
10# FORTRAN sources
11
68ca986e 12FSRCS =
fe4da5cc 13
14# C++ sources
15
359cdddc 16SRCS = AliZDC.cxx AliZDCv1.cxx AliZDCv2.cxx AliZDCHit.cxx AliZDCDigit.cxx \
1b98d9ae 17 AliGenZDC.cxx AliZDCFragment.cxx AliZDCMerger.cxx AliZDCMergedHit.cxx \
18 AliZDCReco.cxx
fe4da5cc 19
20# C++ Headers
21
ced9217f 22HDRS = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TClonesArray.h ZDCLinkDef.h
fe4da5cc 23
24# Library dictionary
25
26DICT = ZDCCint.cxx
27DICTH = $(DICT:.cxx=.h)
4adb943a 28DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
fe4da5cc 29
30# FORTRAN Objectrs
31
4adb943a 32FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 33
34# C Objects
35
4adb943a 36COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)
fe4da5cc 37
38# C++ Objects
39
4adb943a 40OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 41
42# Global Macros
43
44ALLOBJS = $(OBJS) $(FOBJS)
45
46# C++ compilation flags
47
68ca986e 48CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \
49 -I$(ALICE_ROOT)/RALICE
fe4da5cc 50
51# FORTRAN compilation flags
52
53FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321
54
55##### TARGETS #####
56
57# Target
58
cb342460 59SLIBRARY = $(LIBDIR)/libZDC.$(SL)
60ALIBRARY = $(LIBDIR)/libZDC.a
fe4da5cc 61
62default: $(SLIBRARY)
63
cb342460 64$(LIBDIR)/libZDC.$(SL): $(OBJS) $(FOBJS)
fe4da5cc 65
66$(DICT): $(HDRS)
67
68DEPINC += -I$(ALICE_ROOT)/GEANT321
69
70depend: $(SRCS) $(FSRCS)
71
72TOCLEAN = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h
73
e2fe4c02 74CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
75
fe4da5cc 76############################### General Macros ################################
77
78include $(ALICE_ROOT)/conf/GeneralMacros
79
80############################ Dependencies #####################################
81
1207d6f2 82-include tgt_$(ALICE_TARGET)/Make-depend
fe4da5cc 83
41f6cf69 84
41f6cf69 85
86
87
88
89