1 ############################### TGeant3 Makefile ##############################
3 # Include machine specific definitions
5 include $(ALICE_ROOT)/conf/GeneralDef
6 include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
16 GSRCS = TGeant3.cxx TPaveTree.cxx THIGZ.cxx \
17 TGeant3GUI.cxx AliGeant3.cxx
21 GHDRS = $(filter-out gucode.h,$(GSRCS:.cxx=.h)) TGeant3LinkDef.h
25 GDICT = TGeant3Cint.cxx
26 GDICTH = $(GDICT:.cxx=.h)
27 GDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GDICT))
31 GOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GSRCS)) $(FOBJS) $(GDICTO)
35 FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
39 COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
43 OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
45 # Dummy Geant321 class
49 DSRCS = TGeant3Dummy.cxx
53 DHDRS = TGeant3.h TGeant3LinkDef.h
57 DDICT = TGeant3DummyCint.cxx
58 DDICTH = $(DDICT:.cxx=.h)
59 DDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DDICT))
63 DOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DSRCS)) $(DDICTO)
65 # Dummy Routines in Geant321
68 JOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(JSRCS))
70 # C++ compilation flags
72 CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
74 # FORTRAN compilation flags
76 FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321
82 SLIBRARY = $(LIBDIR)/libTGeant3.$(SL) \
83 $(LIBDIR)/libG3Dummy.$(SL) \
84 $(LIBDIR)/libTGeant3Dummy.$(SL)
85 ALIBRARY = $(LIBDIR)/libTGeant3.a
89 $(LIBDIR)/libTGeant3.$(SL): $(GOBJS)
91 $(LIBDIR)/libG3Dummy.$(SL): $(JOBJS)
93 $(LIBDIR)/libTGeant3Dummy.$(SL): $(DOBJS)
99 DICT = $(GDICT) $(DDICT)
101 DEPINC += -I$(ALICE_ROOT)/GEANT321
103 depend: $(GSRCS) $(FSRCS)
105 TOCLEAN = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h
107 ############################### General Macros ################################
109 include $(ALICE_ROOT)/conf/GeneralMacros
111 ############################ Dependencies #####################################
113 -include tgt_$(ALICE_TARGET)/Make-depend
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.
119 CHECKS = $(patsubst %.cxx,check/%.viol,$(GSRCS))