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 TGeant4LinkDef.h
35 DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
40 OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
42 # C++ compilation flags
44 CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
51 SLIBRARY = $(LIBDIR)/libTGeant4.$(SL)
52 ALIBRARY = $(LIBDIR)/libTGeant4.a
56 $(LIBDIR)/libTGeant4.$(SL): $(OBJS)
57 $(LIBDIR)/libTGeant4.a: $(OBJS)
65 #HEADERS = $(filter-out %LinkDef.h,$(HDRS))
67 TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
69 CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
71 ############################### General Macros ################################
73 include $(ALICE_ROOT)/conf/GeneralMacros
76 # Geant4 specific compiler flags
78 CXXFLAGS += $(CPPFLAGS)
81 ############################ Dependencies #####################################
83 -include tgt_$(ALICE_TARGET)/Make-depend