]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TGeant3/Makefile
Avoid the problem of lines too long on HP
[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
16GSRCS = TGeant3.cxx TPaveTree.cxx THIGZ.cxx gucode.cxx
17
18# C++ Headers
19
20GHDRS = $(filter-out gucode.h,$(GSRCS:.cxx=.h)) TGeant3LinkDef.h
21
22# Library dictionary
23
24GDICT = TGeant3Cint.cxx
25GDICTH = $(GDICT:.cxx=.h)
cb342460 26GDICTO = $(patsubst %.cxx,$(ALICE_TARGET)/%.o,$(GDICT))
fe4da5cc 27
28# Geant Objects
29
cb342460 30GOBJS = $(patsubst %.cxx,$(ALICE_TARGET)/%.o,$(GSRCS)) $(FOBJS) $(GDICTO)
fe4da5cc 31
32# FORTRAN Objectrs
33
cb342460 34FOBJS = $(patsubst %.F,$(ALICE_TARGET)/%.o,$(FSRCS))
fe4da5cc 35
36# C Objects
37
cb342460 38COBJS = $(patsubst %.c,$(ALICE_TARGET)/%.o,$(CSRCS))
fe4da5cc 39
40# C++ Objects
41
cb342460 42OBJS = $(patsubst %.cxx,$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
fe4da5cc 43
44# Dummy Geant321 class
45
46# C++ sources
47
48DSRCS = TGeant3Dummy.cxx
49
50# C++ Headers
51
52DHDRS = TGeant3.h TGeant3LinkDef.h
53
54# Library dictionary
55
56DDICT = TGeant3DummyCint.cxx
57DDICTH = $(DDICT:.cxx=.h)
cb342460 58DDICTO = $(patsubst %.cxx,$(ALICE_TARGET)/%.o,$(DDICT))
fe4da5cc 59
60# Geant Objects
61
cb342460 62DOBJS = $(patsubst %.cxx,$(ALICE_TARGET)/%.o,$(DSRCS)) $(DDICTO)
fe4da5cc 63
64# Dummy Routines in Geant321
65
66JSRCS = G3Dummy.cxx
cb342460 67JOBJS = $(patsubst %.cxx,$(ALICE_TARGET)/%.o,$(JSRCS))
fe4da5cc 68
69# C++ compilation flags
70
71CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
72
73# FORTRAN compilation flags
74
75FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321
76
77##### TARGETS #####
78
79# Target
80
cb342460 81SLIBRARY = $(LIBDIR)/libTGeant3.$(SL) \
82 $(LIBDIR)/libG3Dummy.$(SL) \
83 $(LIBDIR)/libTGeant3Dummy.$(SL)
84ALIBRARY = $(LIBDIR)/libTGeant3.a
fe4da5cc 85
31ccd13b 86default: $(SLIBRARY)
fe4da5cc 87
cb342460 88$(LIBDIR)/libTGeant3.$(SL): $(GOBJS)
fe4da5cc 89
cb342460 90$(LIBDIR)/libG3Dummy.$(SL): $(JOBJS)
fe4da5cc 91
cb342460 92$(LIBDIR)/libTGeant3Dummy.$(SL): $(DOBJS)
fe4da5cc 93
94$(GDICT): $(GHDRS)
95
96$(DDICT): $(DHDRS)
97
98DICT = $(GDICT) $(DDICT)
99
100DEPINC += -I$(ALICE_ROOT)/GEANT321
101
fe4da5cc 102depend: $(GSRCS) $(FSRCS)
103
104TOCLEAN = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h
105
106############################### General Macros ################################
107
108include $(ALICE_ROOT)/conf/GeneralMacros
109
110############################ Dependencies #####################################
111
9f84158c 112-include Make-depend