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