]>
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 | ||
d7067e4f | 16 | GSRCS = TGeant3.cxx TPaveTree.cxx THIGZ.cxx \ |
b13db077 | 17 | TGeant3GUI.cxx AliGeant3.cxx |
fe4da5cc | 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) | |
4adb943a | 27 | GDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GDICT)) |
fe4da5cc | 28 | |
29 | # Geant Objects | |
30 | ||
4adb943a | 31 | GOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GSRCS)) $(FOBJS) $(GDICTO) |
fe4da5cc | 32 | |
33 | # FORTRAN Objectrs | |
34 | ||
4adb943a | 35 | FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS)) |
fe4da5cc | 36 | |
37 | # C Objects | |
38 | ||
4adb943a | 39 | COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS)) |
fe4da5cc | 40 | |
41 | # C++ Objects | |
42 | ||
4adb943a | 43 | OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO) |
fe4da5cc | 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) | |
4adb943a | 59 | DDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DDICT)) |
fe4da5cc | 60 | |
61 | # Geant Objects | |
62 | ||
4adb943a | 63 | DOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DSRCS)) $(DDICTO) |
fe4da5cc | 64 | |
65 | # Dummy Routines in Geant321 | |
66 | ||
67 | JSRCS = G3Dummy.cxx | |
4adb943a | 68 | JOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(JSRCS)) |
fe4da5cc | 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 | ||
cb342460 | 82 | SLIBRARY = $(LIBDIR)/libTGeant3.$(SL) \ |
83 | $(LIBDIR)/libG3Dummy.$(SL) \ | |
84 | $(LIBDIR)/libTGeant3Dummy.$(SL) | |
85 | ALIBRARY = $(LIBDIR)/libTGeant3.a | |
fe4da5cc | 86 | |
31ccd13b | 87 | default: $(SLIBRARY) |
fe4da5cc | 88 | |
cb342460 | 89 | $(LIBDIR)/libTGeant3.$(SL): $(GOBJS) |
fe4da5cc | 90 | |
cb342460 | 91 | $(LIBDIR)/libG3Dummy.$(SL): $(JOBJS) |
fe4da5cc | 92 | |
cb342460 | 93 | $(LIBDIR)/libTGeant3Dummy.$(SL): $(DOBJS) |
fe4da5cc | 94 | |
95 | $(GDICT): $(GHDRS) | |
96 | ||
97 | $(DDICT): $(DHDRS) | |
98 | ||
99 | DICT = $(GDICT) $(DDICT) | |
100 | ||
101 | DEPINC += -I$(ALICE_ROOT)/GEANT321 | |
102 | ||
fe4da5cc | 103 | depend: $(GSRCS) $(FSRCS) |
104 | ||
105 | TOCLEAN = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h | |
106 | ||
e2fe4c02 | 107 | CHECKS = $(patsubst %.cxx,check/%.viol,$(GSRCS)) |
108 | ||
fe4da5cc | 109 | ############################### General Macros ################################ |
110 | ||
111 | include $(ALICE_ROOT)/conf/GeneralMacros | |
112 | ||
113 | ############################ Dependencies ##################################### | |
114 | ||
1207d6f2 | 115 | -include tgt_$(ALICE_TARGET)/Make-depend |
41f6cf69 | 116 | |
41f6cf69 | 117 | |
118 | ||
119 | ||
120 | ||
121 | ||
122 |