]> git.uio.no Git - u/mrichter/AliRoot.git/blob - AliGeant3/Makefile
Hits cleaning inserted before reading new track
[u/mrichter/AliRoot.git] / AliGeant3 / Makefile
1 ############################### AliGeant3 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 = AliGeant3
9
10 # FORTRAN sources
11
12 FSRCS        = 
13
14 # C++ sources
15
16 GSRCS          = AliG3Medium.cxx \
17                  AliG3Material.cxx AliG3Volume.cxx \
18                  AliGUISliders.cxx AliGuiGeomDialog.cxx AliGuiGeomMain.cxx \
19                  AliGeant3GeometryGUI.cxx AliNode.cxx AliG3toRoot.cxx
20
21 # C++ Headers
22
23 GHDRS          = $(filter-out gucode.h,$(GSRCS:.cxx=.h)) AliGeant3LinkDef.h
24
25 # Library dictionary
26
27 GDICT          = AliGeant3Cint.cxx
28 GDICTH         = $(GDICT:.cxx=.h)
29 GDICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GDICT))
30
31 # Geant Objects
32
33 GOBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GSRCS)) $(FOBJS) $(GDICTO)
34
35 # FORTRAN Objectrs
36
37 FOBJS         = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
38
39 # C Objects
40
41 COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
42
43 # C++ Objects
44
45 OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
46
47 # C++ Headers
48
49 DHDRS          = AliGeant3LinkDef.h
50
51 # Geant Objects
52
53 DOBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DSRCS)) $(DDICTO)
54
55 # C++ compilation flags
56
57 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/ \
58                 -I$(G3INSTALL)/geant321 -I$(G3INSTALL)/geant3mc
59  
60 # FORTRAN compilation flags
61
62 FFLAGS      = $(FOPT) -I$(ALICE_ROOT)/GEANT321
63
64 ##### TARGETS #####
65  
66 # Target
67
68 SLIBRARY        = $(LIBDIR)/libAliGeant3.$(SL) 
69 ALIBRARY        = $(LIBDIR)/libAliGeant3.a
70
71 default:        $(SLIBRARY)
72
73 $(LIBDIR)/libAliGeant3.$(SL):           $(GOBJS)
74
75 $(GDICT):                               $(GHDRS)
76
77 $(DDICT):                               $(DHDRS)
78
79 DICT    =               $(GDICT) $(DDICT)
80
81 DEPINC  += -I$(ALICE_ROOT)/GEANT321
82
83 depend:                 $(GSRCS) $(FSRCS)
84
85 TOCLEAN         = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h
86
87 CHECKS        = $(patsubst %.cxx,check/%.viol,$(GSRCS))
88
89 ############################### General Macros ################################
90
91 include $(ALICE_ROOT)/conf/GeneralMacros
92
93 ############################ Dependencies #####################################
94
95 -include tgt_$(ALICE_TARGET)/Make-depend 
96
97
98
99
100
101
102