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 AliG3Medium.cxx \
17 AliGeant3.cxx AliG3Material.cxx AliG3Volume.cxx \
18 AliGUISliders.cxx AliGuiGeomDialog.cxx AliGuiGeomMain.cxx \
19 AliGeant3GeometryGUI.cxx AliNode.cxx AliG3toRoot.cxx
23 GHDRS = $(filter-out gucode.h,$(GSRCS:.cxx=.h)) TGeant3LinkDef.h
27 GDICT = TGeant3Cint.cxx
28 GDICTH = $(GDICT:.cxx=.h)
29 GDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GDICT))
33 GOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(GSRCS)) $(FOBJS) $(GDICTO)
37 FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
41 COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
45 OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
47 # Dummy Geant321 class
51 DSRCS = TGeant3Dummy.cxx
55 DHDRS = TGeant3.h TGeant3LinkDef.h
59 DDICT = TGeant3DummyCint.cxx
60 DDICTH = $(DDICT:.cxx=.h)
61 DDICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DDICT))
65 DOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DSRCS)) $(DDICTO)
67 # Dummy Routines in Geant321
70 JOBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(JSRCS))
72 # C++ compilation flags
74 CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
76 # FORTRAN compilation flags
78 FFLAGS = $(FOPT) -I$(ALICE_ROOT)/GEANT321
84 SLIBRARY = $(LIBDIR)/libTGeant3.$(SL) \
85 $(LIBDIR)/libG3Dummy.$(SL) \
86 $(LIBDIR)/libTGeant3Dummy.$(SL)
87 ALIBRARY = $(LIBDIR)/libTGeant3.a
91 $(LIBDIR)/libTGeant3.$(SL): $(GOBJS)
93 $(LIBDIR)/libG3Dummy.$(SL): $(JOBJS)
95 $(LIBDIR)/libTGeant3Dummy.$(SL): $(DOBJS)
101 DICT = $(GDICT) $(DDICT)
103 DEPINC += -I$(ALICE_ROOT)/GEANT321
105 depend: $(GSRCS) $(FSRCS)
107 TOCLEAN = $(GOBJS) $(JOBJS) $(DOBJS) *Cint.cxx *Cint.h
109 CHECKS = $(patsubst %.cxx,check/%.viol,$(GSRCS))
111 ############################### General Macros ################################
113 include $(ALICE_ROOT)/conf/GeneralMacros
115 ############################ Dependencies #####################################
117 -include tgt_$(ALICE_TARGET)/Make-depend