Geant4 Cross Reference |
1 # -------------------------------------------- << 1 # $Id: GNUmakefile 77519 2013-11-25 10:54:57Z gcosmo $ 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 >> 11 DPMJDIR = dpmjet2_5 9 URQMDDIR= urqmd1_3 12 URQMDDIR= urqmd1_3 10 HIJINGDIR= hijing1_383 13 HIJINGDIR= hijing1_383 11 CRMCDIR= ${CRMCROOT} << 12 14 13 ifndef G4INSTALL 15 ifndef G4INSTALL 14 G4INSTALL = ../../../.. 16 G4INSTALL = ../../../.. 15 endif 17 endif 16 18 17 include $(G4INSTALL)/config/architecture.gmk 19 include $(G4INSTALL)/config/architecture.gmk 18 20 19 .PHONY: all 21 .PHONY: all 20 all: urqmd hijing crmc lib bin << 22 all: dpm urqmd hijing lib bin >> 23 >> 24 dpm: >> 25 ifdef G4_USE_DPMJET >> 26 (cd ${DPMJDIR} && $(MAKE)); >> 27 (mv ${DPMJDIR}/*.o ${G4TMPDIR}); >> 28 endif >> 29 >> 30 ifdef G4_USE_DPMJET >> 31 CPPFLAGS += -DG4_USE_DPMJET \ >> 32 -DG4DPMJET25GDSHDEBUG >> 33 >> 34 EXTRALIBS = -lgfortran -lgmp -lmpfr \ >> 35 -L${CERNLIB}/lib -lmathlib -lkernlib -lpacklib >> 36 endif 21 37 22 38 23 urqmd: 39 urqmd: 24 ifdef G4_USE_URQMD 40 ifdef G4_USE_URQMD 25 (cd ${URQMDDIR} && \ 41 (cd ${URQMDDIR} && \ 26 cp GNUmakefile urqmd-1.3cr && cp *.f urqmd-1 << 42 cp GNUmakefile urqmd-1.3cr && cp *.f urqmd-1.3cr &&\ 27 cd urqmd-1.3cr && ${MAKE} TYPE="G4INTERFACE" << 43 cd urqmd-1.3cr && ${MAKE} TYPE="G4INTERFACE"); 28 ( mv ${URQMDDIR}/urqmd-1.3cr/obj_G4INTERFACE 44 ( mv ${URQMDDIR}/urqmd-1.3cr/obj_G4INTERFACE/*.o ${G4TMPDIR} ); 29 endif 45 endif 30 46 31 ifdef G4_USE_URQMD 47 ifdef G4_USE_URQMD 32 CPPFLAGS += -DG4_USE_URQMD 48 CPPFLAGS += -DG4_USE_URQMD 33 49 34 EXTRALIBS = -lgfortran -lgmp -lmpfr \ 50 EXTRALIBS = -lgfortran -lgmp -lmpfr \ 35 -L${CERNLIB}/lib -lmathlib -lkernlib -lpackl << 51 -L${CERNLIB}/lib -lmathlib -lkernlib -lpacklib 36 endif 52 endif 37 53 38 hijing: 54 hijing: 39 ifdef G4_USE_HIJING 55 ifdef G4_USE_HIJING 40 (cd ${HIJINGDIR} && ${MAKE}); 56 (cd ${HIJINGDIR} && ${MAKE}); 41 (mv ${HIJINGDIR}/obj_Linux/*.o ${G4TMPDIR}); 57 (mv ${HIJINGDIR}/obj_Linux/*.o ${G4TMPDIR}); 42 endif 58 endif 43 59 44 ifdef G4_USE_HIJING 60 ifdef G4_USE_HIJING 45 CPPFLAGS += -DG4_USE_HIJING 61 CPPFLAGS += -DG4_USE_HIJING 46 EXTRALIBS = -lgfortran -lgmp -lmpfr \ << 62 EXTRALIBS = -lgfortran 47 -L${CERNROOT}/lib -lmathlib -lkernlib -lpack << 63 #-lgmp -lmpfr \ >> 64 # -L${CERNROOT}/cernlib -lmathlib -lkernlib -lpacklib -lpawlib 48 endif 65 endif 49 66 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 << 62 67 63 include $(G4INSTALL)/config/binmake.gmk 68 include $(G4INSTALL)/config/binmake.gmk 64 69 65 dclean: << 66 @rm -f $(G4WORKDIR)/tmp/$(G4SYSTEM)/$(G4TARG << 67 << 68 histclean: 70 histclean: 69 @rm -f $(G4WORKDIR)/tmp/$(G4SYSTEM)/$(G4TARG 71 @rm -f $(G4WORKDIR)/tmp/$(G4SYSTEM)/$(G4TARGET)/Histo.o 70 72 71 visclean: 73 visclean: 72 @rm -f g4*.prim g4*.eps g4*.wrl 74 @rm -f g4*.prim g4*.eps g4*.wrl 73 @rm -f .DAWN_* 75 @rm -f .DAWN_* >> 76 74 # 77 #