File indexing completed on 2025-11-04 09:30:28
0001 
0002 
0003 
0004 
0005 name := exampleP02
0006 G4TARGET := $(name)
0007 G4EXLIB := true
0008 
0009 LOCALDIR := ${PWD}
0010 
0011 ifndef G4INSTALL
0012   G4INSTALL = ../../../..
0013 endif
0014 
0015 include $(G4INSTALL)/config/architecture.gmk
0016 
0017 ifndef PLATFORM
0018   PLATFORM = slc4_ia32_gcc34
0019 endif
0020 
0021 CPPFLAGS += -I$(ROOTSYS)/include
0022 EXTRALIBS := $(shell $(ROOTSYS)/bin/root-config --libs) -lReflex -lCintex 
0023 
0024 DICTIONARYPATH := ${G4WORKDIR}/tmp/${G4SYSTEM}/${G4TARGET}/dictionary
0025 
0026 .PHONY: all
0027 all: dictionary lib bin
0028 
0029 dictionary:
0030 ifndef ROOTSYS
0031         @echo ROOTSYS not defined!
0032 endif
0033 ifndef GCCXMLPATH
0034         @echo GCCXMLPATH not defined!
0035 endif
0036         mkdir -p ${DICTIONARYPATH}
0037         ${ROOTSYS}/bin/genreflex ${LOCALDIR}/include/ExP02Classes.hh \
0038         -s ${LOCALDIR}/xml/selection.xml -o ${DICTIONARYPATH}/ExP02Classes_rflx.cpp \
0039         --gccxmlpath ${GCCXMLPATH} -Iinclude -I${G4INCLUDE} -I${CLHEP_INCLUDE_DIR} 
0040 
0041         $(CXX) -o ${G4WORKDIR}/tmp/${G4SYSTEM}/${G4TARGET}/libExP02ClassesDict.so -fpic -shared \
0042         ${DICTIONARYPATH}/ExP02Classes_rflx.cpp src/*.cc \
0043         -Iinclude -I${ROOTSYS}/include -I${G4INCLUDE} -I${CLHEP_INCLUDE_DIR} \ 
0044         ${EXTRALIBS} -L${G4LIB}/${G4SYSTEM} ${LDLIBS2} ${LOADLIBS}
0045 
0046 
0047 
0048 
0049 
0050 
0051 clean_all: clean
0052         @$(RM) hits.root
0053 
0054 include $(G4INSTALL)/config/binmake.gmk