Geant4 Cross Reference |
1 # -------------------------------------------- << 1 # $Id: GNUmakefile,v 1.9 2011-03-01 11:43:02 antoni Exp $ 2 # GNUmakefile for examples module with externa << 2 # GEANT4 tag $Name: 3 # -------------------------------------------- << 3 # -------------------------------------------------------------- >> 4 # GNUmakefile for examples module with DPMJET interface >> 5 # -------------------------------------------------------------- 4 6 5 name := Hadr02 << 7 name := hadr02 6 G4TARGET := $(name) 8 G4TARGET := $(name) 7 G4EXLIB := true 9 G4EXLIB := true 8 10 9 URQMDDIR= urqmd1_3 << 11 DPMJDIR = dpmjet2_5 10 HIJINGDIR= hijing1_383 << 11 CRMCDIR= ${CRMCROOT} << 12 12 13 ifndef G4INSTALL 13 ifndef G4INSTALL 14 G4INSTALL = ../../../.. 14 G4INSTALL = ../../../.. 15 endif 15 endif 16 16 17 include $(G4INSTALL)/config/architecture.gmk 17 include $(G4INSTALL)/config/architecture.gmk 18 18 19 .PHONY: all 19 .PHONY: all 20 all: urqmd hijing crmc lib bin << 20 all: dpm lib bin 21 21 22 << 22 dpm: 23 urqmd: << 23 ifdef G4_USE_DPMJET 24 ifdef G4_USE_URQMD << 24 (cd ${DPMJDIR} && $(MAKE)); 25 (cd ${URQMDDIR} && \ << 25 (mv ${DPMJDIR}/*.o ${G4TMPDIR}); 26 cp GNUmakefile urqmd-1.3cr && cp *.f urqmd-1 << 27 cd urqmd-1.3cr && ${MAKE} TYPE="G4INTERFACE" << 28 ( mv ${URQMDDIR}/urqmd-1.3cr/obj_G4INTERFACE << 29 endif << 30 << 31 ifdef G4_USE_URQMD << 32 CPPFLAGS += -DG4_USE_URQMD << 33 << 34 EXTRALIBS = -lgfortran -lgmp -lmpfr \ << 35 -L${CERNLIB}/lib -lmathlib -lkernlib -lpackl << 36 endif 26 endif 37 27 38 hijing: << 28 ifdef G4_USE_DPMJET 39 ifdef G4_USE_HIJING << 29 CPPFLAGS += -DG4_USE_DPMJET \ 40 (cd ${HIJINGDIR} && ${MAKE}); << 30 -DG4DPMJET25GDSHDEBUG 41 (mv ${HIJINGDIR}/obj_Linux/*.o ${G4TMPDIR}); << 42 endif << 43 31 44 ifdef G4_USE_HIJING << 32 EXTRALIBS += -lgfortran -lgmp -lmpfr \ 45 CPPFLAGS += -DG4_USE_HIJING << 33 -L${CERNLIB}/lib -lmathlib -lkernlib -lpacklib 46 EXTRALIBS = -lgfortran -lgmp -lmpfr \ << 47 -L${CERNROOT}/lib -lmathlib -lkernlib -lpack << 48 endif << 49 << 50 crmc: << 51 ifdef G4_USE_CRMC << 52 (cp ${CRMCDIR}/Build/lib/*.so ${G4TMPDIR}); << 53 (cp ${CRMCDIR}/Build/crmc.param .); << 54 endif << 55 << 56 ifdef G4_USE_CRMC << 57 CPPFLAGS += -DG4_USE_CRMC -I${CRMCDIR}/Build << 58 EXTRALIBS = -lgfortran -lgmp -lmpfr \ << 59 -L${CRMCDIR}/Build/lib/ -lCrmc << 60 ### -L${CRMCDIR}/Build/lib/ -lCrmc -lGeantCrmc << 61 endif 34 endif 62 35 63 include $(G4INSTALL)/config/binmake.gmk 36 include $(G4INSTALL)/config/binmake.gmk 64 37 65 dclean: << 66 @rm -f $(G4WORKDIR)/tmp/$(G4SYSTEM)/$(G4TARG << 67 << 68 histclean: 38 histclean: 69 @rm -f $(G4WORKDIR)/tmp/$(G4SYSTEM)/$(G4TARG 39 @rm -f $(G4WORKDIR)/tmp/$(G4SYSTEM)/$(G4TARGET)/Histo.o 70 40 71 visclean: 41 visclean: 72 @rm -f g4*.prim g4*.eps g4*.wrl 42 @rm -f g4*.prim g4*.eps g4*.wrl 73 @rm -f .DAWN_* 43 @rm -f .DAWN_* >> 44 74 # 45 #