Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:12:43

0001 AUTOMAKE_OPTIONS = foreign
0002 
0003 AM_CXXFLAGS = -DG4INTY_USE_XT -DG4VIS_USE_OPENGL -DG4UI_USE_TCSH -DG4UI_USE_XM -DG4VIS_USE_OPENGLXM -DG4VIS_USE_RAYTRACERX -DG4VIS_USE_OPENGLX
0004 
0005 # set in configure.in to check if gcc version >= 4.8
0006 #if GCC_GE_48
0007 #  AM_CXXFLAGS += -std=c++11
0008 #endif
0009 
0010 # List of shared libraries to produce
0011 lib_LTLIBRARIES = \
0012   libhffastsim.la
0013 
0014 AM_CPPFLAGS = \
0015   -I$(includedir) \
0016   -I$(XERCESCROOT)/include \
0017   -isystem $(OFFLINE_MAIN)/include \
0018   -isystem $(ROOTSYS)/include \
0019   -isystem ${G4_MAIN}/include \
0020   -I$(OFFLINE_MAIN)/include/eigen3 \
0021   -I$(OPT_SPHENIX)/include
0022 
0023 # rootcint barfs on isystem
0024 RINCLUDES = \
0025   -I$(includedir) \
0026   -I$(XERCESCROOT)/include \
0027   -I$(OFFLINE_MAIN)/include \
0028   -I$(ROOTSYS)/include \
0029   -I${G4_MAIN}/include \
0030   -I$(OFFLINE_MAIN)/include/eigen3 \
0031   -I$(OPT_SPHENIX)/include
0032 
0033 
0034 libhffastsim_la_LDFLAGS = \
0035   -L$(libdir) \
0036   -L$(OFFLINE_MAIN)/lib \
0037   `root-config --evelibs` \
0038   `geant4-config --libs`
0039 
0040 libhffastsim_la_LIBADD = \
0041   -lboost_filesystem \
0042   -lg4decayer \
0043   -lgsl \
0044   -lgslcblas \
0045   -lHepMC \
0046   -lphfield \
0047   -lphgeom \
0048   -lphg4gdml \
0049   -lphhepmc
0050 
0051 
0052 # for root6 we need pcm and dictionaries but only for
0053 # i/o classes. For root5 we need only dictionaries but
0054 # those for i/o and classes available on the cmd line
0055 # MAKEROOT6 is set in the configure.ac, true for root6
0056 if MAKEROOT6
0057 # this is a tweak to install files in $(libdir), automake refuses
0058 # to install other files in libdir, this construct gets around this
0059 pcmdir = $(libdir)
0060 nobase_dist_pcm_DATA = \
0061   HFFastSim_Dict_rdict.pcm
0062 else
0063   ROOT5TBDICTS = \
0064   HFFastSim_Dict.cc
0065 endif
0066 
0067 libhffastsim_la_SOURCES = \
0068   $(ROOT5TBDICTS) \
0069   HFFastSim_Dict.cc \
0070   HFFastSim.cc 
0071 
0072 ##############################################
0073 # please add new classes in alphabetical order
0074 pkginclude_HEADERS = \
0075   HFFastSim.h 
0076 
0077 ################################################
0078 # linking tests
0079 
0080 noinst_PROGRAMS = \
0081   testexternals_hffastsim
0082 
0083 BUILT_SOURCES = testexternals.cc
0084 testexternals_hffastsim_SOURCES = testexternals.cc
0085 testexternals_hffastsim_LDADD = libhffastsim.la
0086 
0087 testexternals.cc:
0088         echo "//*** this is a generated file. Do not commit, do not edit" > $@
0089         echo "int main()" >> $@
0090         echo "{" >> $@
0091         echo "  return 0;" >> $@
0092         echo "}" >> $@
0093 
0094 %_Dict.cc: %.h %LinkDef.h
0095         rootcint -f $@ @CINTDEFS@ -c $(DEFAULT_INCLUDES) $(RINCLUDES) $^
0096 
0097 #just to get the dependency
0098 %_Dict_rdict.pcm: %_Dict.cc ;
0099 
0100 clean-local:
0101         rm -f *Dict* $(BUILT_SOURCES) *.pcm