3 ############################### TGeant4 Makefile ###############################
5 # Include Geant4 specific definitions
7 include $(G4INSTALL)/config/architecture.gmk
9 # Include machine specific definitions
11 include $(ALICE_ROOT)/conf/GeneralDef
12 include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
14 # Include Alice Geant4 specific definitions
16 include $(ALICE_ROOT)/conf/Geant4.gmk
22 SRCS = $(wildcard *.cxx)
26 HDRS = $(wildcard *.icc) $(wildcard *.h)
28 # Library Root dictionary
29 # only for selected classes
30 # (temporarily excluded for OSF1 due to compilation errors)
32 ifneq ($(ALICE_TARGET),OSF1)
33 DICT = TGeant4Cint.cxx
34 DICTH = TGeant4.h TG4VRunConfiguration.h \
35 TG4Editor.h TG4GUI.h TG4GeometryGUI.h TG4GuiVolume.h \
37 DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
42 OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
44 # C++ compilation flags
46 CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
53 SLIBRARY = $(LIBDIR)/libTGeant4.$(SL)
54 ALIBRARY = $(LIBDIR)/libTGeant4.a
58 $(LIBDIR)/libTGeant4.$(SL): $(OBJS)
59 $(LIBDIR)/libTGeant4.a: $(OBJS)
67 #HEADERS = $(filter-out %LinkDef.h,$(HDRS))
69 TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
71 CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
73 ############################### General Macros ################################
75 include $(ALICE_ROOT)/conf/GeneralMacros
78 # Geant4 specific compiler flags
80 CXXFLAGS += $(CPPFLAGS)
83 ############################ Dependencies #####################################
85 -include tgt_$(ALICE_TARGET)/Make-depend