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