]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 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 | ||
099385a4 | 12 | FSRCS = galicef.F |
fe4da5cc | 13 | |
14 | # C++ sources | |
15 | ||
ef42d733 | 16 | GSRCS = 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 | ||
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) | |
4adb943a | 29 | GDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GDICT)) |
fe4da5cc | 30 | |
31 | # Geant Objects | |
32 | ||
4adb943a | 33 | GOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GSRCS)) $(FOBJS) $(GDICTO) |
fe4da5cc | 34 | |
35 | # FORTRAN Objectrs | |
36 | ||
4adb943a | 37 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 38 | |
39 | # C Objects | |
40 | ||
4adb943a | 41 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 42 | |
43 | # C++ Objects | |
44 | ||
4adb943a | 45 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 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) | |
4adb943a | 61 | DDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DDICT)) |
fe4da5cc | 62 | |
63 | # Geant Objects | |
64 | ||
4adb943a | 65 | DOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DSRCS)) $(DDICTO) |
fe4da5cc | 66 | |
67 | # Dummy Routines in Geant321 | |
68 | ||
69 | JSRCS = G3Dummy.cxx | |
4adb943a | 70 | JOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(JSRCS)) |
fe4da5cc | 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 | ||
cb342460 | 84 | SLIBRARY = $(LIBDIR)/libTGeant3.$(SL) \ |
85 | $(LIBDIR)/libG3Dummy.$(SL) \ | |
86 | $(LIBDIR)/libTGeant3Dummy.$(SL) | |
87 | ALIBRARY = $(LIBDIR)/libTGeant3.a | |
fe4da5cc | 88 | |
31ccd13b | 89 | default: $(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 | ||
101 | DICT = $(GDICT) $(DDICT) | |
102 | ||
103 | DEPINC += -I$(ALICE_ROOT)/GEANT321 | |
104 | ||
fe4da5cc | 105 | depend: $(GSRCS) $(FSRCS) |
106 | ||
107 | TOCLEAN = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h | |
108 | ||
e2fe4c02 | 109 | CHECKS = $(patsubst %.cxx,check/%.viol,$(GSRCS)) |
110 | ||
fe4da5cc | 111 | ############################### General Macros ################################ |
112 | ||
113 | include $(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 |