]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant3/Makefile
New field map for the ZDC
[u/mrichter/AliRoot.git] / TGeant3 / Makefile
CommitLineData
fe4da5cc 1############################### TGeant3 Makefile ##############################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = TGeant3
9
10# FORTRAN sources
11
099385a4 12FSRCS = galicef.F
fe4da5cc 13
14# C++ sources
15
ef42d733 16GSRCS = TGeant3.cxx TPaveTree.cxx THIGZ.cxx AliGUIMedium.cxx \
17 AliGeant3.cxx AliGUIMaterial.cxx AliDrawVolume.cxx \
18 AliGUISliders.cxx AliGuiGeomDialog.cxx AliGuiGeomMain.cxx \
19 AliGeant3GeometryGUI.cxx
fe4da5cc 20
21# C++ Headers
22
23GHDRS = $(filter-out gucode.h,$(GSRCS:.cxx=.h)) TGeant3LinkDef.h
24
25# Library dictionary
26
27GDICT = TGeant3Cint.cxx
28GDICTH = $(GDICT:.cxx=.h)
4adb943a 29GDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GDICT))
fe4da5cc 30
31# Geant Objects
32
4adb943a 33GOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GSRCS)) $(FOBJS) $(GDICTO)
fe4da5cc 34
35# FORTRAN Objectrs
36
4adb943a 37FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 38
39# C Objects
40
4adb943a 41COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
fe4da5cc 42
43# C++ Objects
44
4adb943a 45OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 46
47# Dummy Geant321 class
48
49# C++ sources
50
51DSRCS = TGeant3Dummy.cxx
52
53# C++ Headers
54
55DHDRS = TGeant3.h TGeant3LinkDef.h
56
57# Library dictionary
58
59DDICT = TGeant3DummyCint.cxx
60DDICTH = $(DDICT:.cxx=.h)
4adb943a 61DDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DDICT))
fe4da5cc 62
63# Geant Objects
64
4adb943a 65DOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DSRCS)) $(DDICTO)
fe4da5cc 66
67# Dummy Routines in Geant321
68
69JSRCS = G3Dummy.cxx
4adb943a 70JOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(JSRCS))
fe4da5cc 71
72# C++ compilation flags
73
74CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
75
76# FORTRAN compilation flags
77
78FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321
79
80##### TARGETS #####
81
82# Target
83
cb342460 84SLIBRARY = $(LIBDIR)/libTGeant3.$(SL) \
85 $(LIBDIR)/libG3Dummy.$(SL) \
86 $(LIBDIR)/libTGeant3Dummy.$(SL)
87ALIBRARY = $(LIBDIR)/libTGeant3.a
fe4da5cc 88
31ccd13b 89default: $(SLIBRARY)
fe4da5cc 90
cb342460 91$(LIBDIR)/libTGeant3.$(SL): $(GOBJS)
fe4da5cc 92
cb342460 93$(LIBDIR)/libG3Dummy.$(SL): $(JOBJS)
fe4da5cc 94
cb342460 95$(LIBDIR)/libTGeant3Dummy.$(SL): $(DOBJS)
fe4da5cc 96
97$(GDICT): $(GHDRS)
98
99$(DDICT): $(DHDRS)
100
101DICT = $(GDICT) $(DDICT)
102
103DEPINC += -I$(ALICE_ROOT)/GEANT321
104
fe4da5cc 105depend: $(GSRCS) $(FSRCS)
106
107TOCLEAN = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h
108
e2fe4c02 109CHECKS = $(patsubst %.cxx,check/%.viol,$(GSRCS))
110
fe4da5cc 111############################### General Macros ################################
112
113include $(ALICE_ROOT)/conf/GeneralMacros
114
115############################ Dependencies #####################################
116
1207d6f2 117-include tgt_$(ALICE_TARGET)/Make-depend
41f6cf69 118
41f6cf69 119
120
121
122
123
124