Adding includes for Cint 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
99348ac7 16SRCS = AliZDC.cxx AliZDCv1.cxx AliZDCHit.cxx AliZDCDigit.cxx AliGenZDC.cxx
fe4da5cc 17
18# C++ Headers
19
ced9217f 20HDRS = $(SRCS:.cxx=.h) $(ROOTSYS)/include/TClonesArray.h ZDCLinkDef.h
fe4da5cc 21
22# Library dictionary
23
24DICT = ZDCCint.cxx
25DICTH = $(DICT:.cxx=.h)
4adb943a 26DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
fe4da5cc 27
28# FORTRAN Objectrs
29
4adb943a 30FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 31
32# C Objects
33
4adb943a 34COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)
fe4da5cc 35
36# C++ Objects
37
4adb943a 38OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 39
40# Global Macros
41
42ALLOBJS = $(OBJS) $(FOBJS)
43
44# C++ compilation flags
45
68ca986e 46CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include \
47 -I$(ALICE_ROOT)/RALICE
fe4da5cc 48
49# FORTRAN compilation flags
50
51FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321
52
53##### TARGETS #####
54
55# Target
56
cb342460 57SLIBRARY = $(LIBDIR)/libZDC.$(SL)
58ALIBRARY = $(LIBDIR)/libZDC.a
fe4da5cc 59
60default: $(SLIBRARY)
61
cb342460 62$(LIBDIR)/libZDC.$(SL): $(OBJS) $(FOBJS)
fe4da5cc 63
64$(DICT): $(HDRS)
65
66DEPINC += -I$(ALICE_ROOT)/GEANT321
67
68depend: $(SRCS) $(FSRCS)
69
70TOCLEAN = $(OBJS) $(FOBJS) *Cint.cxx *Cint.h
71
e2fe4c02 72CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
73
fe4da5cc 74############################### General Macros ################################
75
76include $(ALICE_ROOT)/conf/GeneralMacros
77
78############################ Dependencies #####################################
79
1207d6f2 80-include tgt_$(ALICE_TARGET)/Make-depend
fe4da5cc 81
41f6cf69 82
41f6cf69 83
84
85
86
87