############################################################################### # # Makefile for HGeant. # # Author: Simon Lang, GSI, 20.05.2006 # # $Id: Makefile,v 1.2 2006-11-09 16:34:12 holzmann Exp $ # ############################################################################### INSTALL_DIR ?= /misc/hadessoftware/etch32/install/hgeant-dev APP_NAME := hgeant SOURCE_FILES := geant/booktree.cc \ geant/callgen.F \ geant/closetree.cc \ geant/cosgen.F \ geant/filegen.F \ geant/fillkine.cc \ geant/filltree.cc \ geant/getpidip.cc \ geant/gdalet.F \ geant/gdalit.F \ geant/gdcxyz.F \ geant/gdecay.F \ geant/geaevopen.F \ geant/getmedname.F \ geant/getmednum.F \ geant/gpawdown.F \ geant/gpawup.F \ geant/gudigi.F \ geant/gufld.F \ geant/gufldo.F \ geant/gufldt.F \ geant/gukine.F \ geant/gustep.F \ geant/hadpgsets.F \ geant/hgeahropen.cc \ geant/hgeakey.F \ geant/hgeant.cc \ geant/hgeantclass.cc \ geant/hgeantinit.cc \ geant/hgeantinput.cc \ geant/hgearootopen.cc \ geant/hgeomcreatesetup.cc \ geant/hgeomgeant3builder.cc \ geant/hplot3d.F \ geant/hsecst.F \ geant/kinebook.F \ geant/kinebookr.cc \ geant/kinedigi.F \ geant/kinegen.F \ geant/makevertex.F \ geant/npart.F \ geant/nucrec.F \ geant/printbranch.F \ geant/printkine.F \ geant/printmednum.F \ geant/rangauss.F \ geant/range.F \ geant/raninit.F \ geant/rantarg.F \ geant/refbook.F \ geant/refdigi1.F \ geant/refdigi2.F \ geant/refdigi3.F \ geant/refkey.F \ geant/setmat.F \ geant/skipevent.F \ geant/thermalgen.F \ geant/trigclear.F \ geant/ufldin.F \ geant/ufldint.F \ geant/ugeom.F \ geant/uginit.F \ geant/uglast.F \ geant/uhbook.F \ geant/varangle.F \ geant/guphad.F \ geant/guhadr.F SOURCE_FILES += grich/richinit.F \ grich/richdigi.F \ grich/fillrich.cc \ grich/richstep.F \ grich/richbook.F \ grich/richkey.F \ grich/richbookr.cc SOURCE_FILES += gtof/tofinit.F \ gtof/tofdigi.F \ gtof/filltof.cc \ gtof/tofstep.F \ gtof/tofbook.F \ gtof/tofkey.F \ gtof/tofbookr.cc SOURCE_FILES += gshow/showinit.F \ gshow/showdigi.F \ gshow/fillshow.cc \ gshow/showstep.F \ gshow/showbook.F \ gshow/showkey.F \ gshow/showbookr.cc SOURCE_FILES += gmdc/mdcinit.F \ gmdc/mdcdigi.F \ gmdc/fillmdc.cc \ gmdc/mdcstep.F \ gmdc/mdcbook.F \ gmdc/mdckey.F \ gmdc/mdcbookr.cc SOURCE_FILES += gwall/wallinit.F \ gwall/walldigi.F \ gwall/fillwall.cc \ gwall/wallstep.F \ gwall/wallbook.F \ gwall/wallkey.F \ gwall/wallbookr.cc SOURCE_FILES += grpc/rpcinit.F \ grpc/rpcdigi.F \ grpc/fillrpc.cc \ grpc/rpcstep.F \ grpc/rpckey.F \ grpc/rpcbookr.cc SOURCE_FILES += gemc/emcinit.F \ gemc/emcdigi.F \ gemc/fillemc.cc \ gemc/emcstep.F \ gemc/emcbook.F \ gemc/emckey.F \ gemc/profastinit.cc \ gemc/profast.cc \ gemc/emcbookr.cc SOURCE_FILES += gstart/startinit.F \ gstart/startdigi.F \ gstart/fillstart.cc \ gstart/startstep.F \ gstart/startkey.F \ gstart/startbookr.cc SOURCE_FILES += gcalor/gcalor.F export USES_CERNLIB := yes export USES_GFORTRAN := yes export USES_X11 := yes export USES_RFIO := no export USES_ORACLE := yes MYHADDIR := # these lines might become obsolete, if our CVS repository will be restructured $(shell cd geant && rm -f KineLinkDef.h && ln -s kinelinkdef.h KineLinkDef.h) $(shell cd geant && rm -f richbook.F richbookr.F richdigi.F richinit.F richkey.F richstep.F) $(shell cd geant && rm -f mdcbook.F mdcbookr.F mdcdigi.F mdcinit.F mdckey.F mdcstep.F) $(shell cd geant && rm -f rpcbook.F rpcbookr.F rpcdigi.F rpcinit.F rpcstep.F) $(shell cd geant && rm -f showbook.F showbookr.F showdigi.F showinit.F showkey.F showstep.F) $(shell cd geant && rm -f tofbook.F tofbookr.F tofdigi.F tofinit.F tofkey.F tofstep.F) $(shell cd geant && rm -f wallinit.F wallstep.F wallbook.F wallkey.F wallbookr.F walldigi.F) include $(HADDIR)/hades.def.mk MODULES = base simulation ifeq ($(strip $(USES_ORACLE)),yes) MODULES +=ora orasim orautil endif ifeq ($(strip $(USES_RFIO)),yes) MODULES += rfio endif DICT_INPUT_FILES := geant/hgeantclass.h HYDRA_LIBS := -lGeom -lSimulation ifeq ($(strip $(USES_ORACLE)),yes) HYDRA_LIBS +=-lOraSim endif HYDRA_LIBS +=-lHydra ifeq ($(strip $(USES_RFIO)),yes) HYDRA_LIBS += -lRFIOtsm endif include $(HADDIR)/hades.app.mk