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