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 = $(GDICT:.cxx=.o)
30 GOBJS = $(GSRCS:.cxx=.o) $(FOBJS) $(GDICTO)
34 FOBJS = $(FSRCS:.F=.o)
38 COBJS = $(CSRCS:.c=.o)
42 OBJS = $(SRCS:.cxx=.o) $(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 = $(DDICT:.cxx=.o)
62 DOBJS = $(DSRCS:.cxx=.o) $(DDICTO)
64 # Dummy Routines in Geant321
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 = $(ALICE_ROOT)/lib/libTGeant3.$(SL) \
82 $(ALICE_ROOT)/lib/libG3Dummy.$(SL) \
83 $(ALICE_ROOT)/lib/libTGeant3Dummy.$(SL)
84 ALIBRARY = $(ALICE_ROOT)/lib/libTGeant3.a
86 default: headers $(SLIBRARY)
88 $(ALICE_ROOT)/lib/libTGeant3.$(SL): $(GOBJS)
90 $(ALICE_ROOT)/lib/libG3Dummy.$(SL): $(JOBJS)
92 $(ALICE_ROOT)/lib/libTGeant3Dummy.$(SL): $(DOBJS)
98 DICT = $(GDICT) $(DDICT)
100 DEPINC += -I$(ALICE_ROOT)/GEANT321
102 HEADERS = $(filter-out %LinkDef.h,$(GHDRS))
104 depend: $(GSRCS) $(FSRCS)
106 TOCLEAN = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h
108 ############################### General Macros ################################
110 include $(ALICE_ROOT)/conf/GeneralMacros
112 ############################ Dependencies #####################################