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 gucode.cxx
20 GHDRS = $(filter-out gucode.h,$(GSRCS:.cxx=.h)) TGeant3LinkDef.h
24 GDICT = TGeant3Cint.cxx
25 GDICTH = $(GDICT:.cxx=.h)
26 GDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GDICT))
30 GOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GSRCS)) $(FOBJS) $(GDICTO)
34 FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
38 COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
42 OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
44 # Dummy Geant321 class
48 DSRCS = TGeant3Dummy.cxx
52 DHDRS = TGeant3.h TGeant3LinkDef.h
56 DDICT = TGeant3DummyCint.cxx
57 DDICTH = $(DDICT:.cxx=.h)
58 DDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DDICT))
62 DOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DSRCS)) $(DDICTO)
64 # Dummy Routines in Geant321
67 JOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(JSRCS))
69 # C++ compilation flags
71 CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
73 # FORTRAN compilation flags
75 FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321
81 SLIBRARY = $(LIBDIR)/libTGeant3.$(SL) \
82 $(LIBDIR)/libG3Dummy.$(SL) \
83 $(LIBDIR)/libTGeant3Dummy.$(SL)
84 ALIBRARY = $(LIBDIR)/libTGeant3.a
88 $(LIBDIR)/libTGeant3.$(SL): $(GOBJS)
90 $(LIBDIR)/libG3Dummy.$(SL): $(JOBJS)
92 $(LIBDIR)/libTGeant3Dummy.$(SL): $(DOBJS)
98 DICT = $(GDICT) $(DDICT)
100 DEPINC += -I$(ALICE_ROOT)/GEANT321
102 depend: $(GSRCS) $(FSRCS)
104 TOCLEAN = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h
106 ############################### General Macros ################################
108 include $(ALICE_ROOT)/conf/GeneralMacros
110 ############################ Dependencies #####################################
112 -include tgt_$(ALICE_TARGET)/Make-depend