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
31 DICT = TGeant4Cint.cxx
32 DICTH = TGeant4.h TG4VRunConfiguration.h TGeant4LinkDef.h
33 DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
37 OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
39 # C++ compilation flags
41 CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
48 SLIBRARY = $(LIBDIR)/libTGeant4.$(SL)
49 ALIBRARY = $(LIBDIR)/lib/libTGeant4.a
53 $(LIBDIR)/libTGeant4.$(SL): $(OBJS)
59 #HEADERS = $(filter-out %LinkDef.h,$(HDRS))
61 TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
63 CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
65 ############################### General Macros ################################
67 include $(ALICE_ROOT)/conf/GeneralMacros
70 # Geant4 specific compiler flags
72 CXXFLAGS += $(CPPFLAGS)
75 ############################ Dependencies #####################################
77 -include tgt_$(ALICE_TARGET)/Make-depend