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