]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant3/Makefile
Sample program for using the simple fast cluster finder.
[u/mrichter/AliRoot.git] / TGeant3 / Makefile
1 ############################### TGeant3 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 = TGeant3
9
10 # FORTRAN sources
11
12 FSRCS        = galicef.F
13
14 # C++ sources
15
16 GSRCS          = TGeant3.cxx TPaveTree.cxx THIGZ.cxx AliG3Medium.cxx \
17                  AliGeant3.cxx 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)) TGeant3LinkDef.h
24
25 # Library dictionary
26
27 GDICT          = TGeant3Cint.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 # Dummy Geant321 class
48
49 # C++ sources
50
51 DSRCS          = TGeant3Dummy.cxx
52
53 # C++ Headers
54
55 DHDRS          = TGeant3.h TGeant3LinkDef.h
56
57 # Library dictionary
58
59 DDICT          = TGeant3DummyCint.cxx
60 DDICTH         = $(DDICT:.cxx=.h)
61 DDICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DDICT))
62
63 # Geant Objects
64
65 DOBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DSRCS)) $(DDICTO)
66
67 # Dummy Routines in Geant321
68
69 JSRCS           = G3Dummy.cxx
70 JOBJS           = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(JSRCS))
71
72 # C++ compilation flags
73
74 CXXFLAGS      = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
75  
76 # FORTRAN compilation flags
77
78 FFLAGS      = $(FOPT) -I$(ALICE_ROOT)/GEANT321
79
80 ##### TARGETS #####
81  
82 # Target
83
84 SLIBRARY        = $(LIBDIR)/libTGeant3.$(SL) \
85                   $(LIBDIR)/libG3Dummy.$(SL) \
86                   $(LIBDIR)/libTGeant3Dummy.$(SL) 
87 ALIBRARY        = $(LIBDIR)/libTGeant3.a
88
89 default:        $(SLIBRARY)
90
91 $(LIBDIR)/libTGeant3.$(SL):             $(GOBJS)
92
93 $(LIBDIR)/libG3Dummy.$(SL):             $(JOBJS)
94
95 $(LIBDIR)/libTGeant3Dummy.$(SL):        $(DOBJS)
96
97 $(GDICT):                               $(GHDRS)
98
99 $(DDICT):                               $(DHDRS)
100
101 DICT    =               $(GDICT) $(DDICT)
102
103 DEPINC  += -I$(ALICE_ROOT)/GEANT321
104
105 depend:                 $(GSRCS) $(FSRCS)
106
107 TOCLEAN         = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h
108
109 CHECKS        = $(patsubst %.cxx,check/%.viol,$(GSRCS))
110
111 ############################### General Macros ################################
112
113 include $(ALICE_ROOT)/conf/GeneralMacros
114
115 ############################ Dependencies #####################################
116
117 -include tgt_$(ALICE_TARGET)/Make-depend 
118
119
120
121
122
123
124