| [26] | 1 | package snova
|
|---|
| [107] | 2 | version v2r0p0
|
|---|
| [26] | 3 |
|
|---|
| 4 | #//////////////////////////////////////////////////
|
|---|
| 5 | #
|
|---|
| 6 | # This file assumes the following
|
|---|
| 7 | # directory structure :
|
|---|
| 8 | # snova/<version>/cmt
|
|---|
| 9 | # snova/<version>/source/GeomUtils/...
|
|---|
| 10 | # snova/<version>/source/SNgeom2/...
|
|---|
| 11 | # snova/<version>/source/snova/...
|
|---|
| 12 | # and a :
|
|---|
| 13 | # snova/<version>/snova
|
|---|
| [48] | 14 | # containing a copy of the .h from the source/snova
|
|---|
| 15 | # directory. The creation of the
|
|---|
| 16 | # snova include directory can be done with
|
|---|
| 17 | # the cpincs.sh script.
|
|---|
| [26] | 18 | #
|
|---|
| 19 | #//////////////////////////////////////////////////
|
|---|
| 20 |
|
|---|
| 21 | #//////////////////////////////////////////////////
|
|---|
| 22 | use bhep v1r*
|
|---|
| [175] | 23 | use Geant4 v2r* Interfaces
|
|---|
| [26] | 24 | #//////////////////////////////////////////////////
|
|---|
| 25 |
|
|---|
| 26 | build_strategy no_prototypes
|
|---|
| 27 | include_path none
|
|---|
| 28 |
|
|---|
| [108] | 29 | include_dirs $(SNOVAROOT) $(SNOVAROOT)/source/GeomUtils/include $(SNOVAROOT)/source/SNgeom2/include $(SNOVAROOT)/source/SNvertex/include
|
|---|
| [26] | 30 |
|
|---|
| 31 | #//////////////////////////////////////////////////
|
|---|
| 32 |
|
|---|
| 33 | library geomutils ../source/GeomUtils/src/*.cc
|
|---|
| 34 | macro geomutils_shlibflags "${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
|
|---|
| 35 | macro geomutils_linkopts "-L${SNOVAROOT}/$(CMTCONFIG) -lgeomutils"
|
|---|
| 36 |
|
|---|
| 37 | library sngeom ../source/SNgeom2/src/*.cc
|
|---|
| [69] | 38 | macro sngeom_shlibflags "${geomutils_linkopts} ${bhep_linkopts} ${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
|
|---|
| [26] | 39 | macro sngeom_linkopts "-L${SNOVAROOT}/$(CMTCONFIG) -lsngeom"
|
|---|
| 40 |
|
|---|
| [69] | 41 | library snvertex ../source/SNvertex/src/*.cc
|
|---|
| 42 | #macro sngeom_shlibflags "${geomutils_linkopts} ${bhep_linkopts} ${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
|
|---|
| 43 | macro snvertex_linkopts "-L${SNOVAROOT}/$(CMTCONFIG) -lsnvertex"
|
|---|
| 44 |
|
|---|
| [53] | 45 | library snova -s=../source/snova \
|
|---|
| [226] | 46 | base/*.cc \
|
|---|
| [53] | 47 | geom/*.cc \
|
|---|
| [149] | 48 | physics/*.cc
|
|---|
| [108] | 49 | macro snova_cppflags "-I$(Geant4_include)"
|
|---|
| [69] | 50 | macro snova_shlibflags "${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
|
|---|
| [26] | 51 | macro snova_linkopts "-L${SNOVAROOT}/$(CMTCONFIG) -lsnova"
|
|---|
| 52 |
|
|---|
| [226] | 53 | library snova_ui -s=../source/snova ui/*.cc
|
|---|
| 54 | macro snova_ui_cppflags "-I$(Geant4_include)"
|
|---|
| 55 | macro snova_ui_shlibflags "${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
|
|---|
| 56 | macro snova_ui_linkopts "-L${SNOVAROOT}/$(CMTCONFIG) -lsnova_ui"
|
|---|
| [26] | 57 |
|
|---|
| [226] | 58 | application prog_snova ../source/snova/prog_snova2.cxx use_linkopts='"${snova_ui_linkopts} ${snova_linkopts} ${Geant4_interfaces_linkopts} ${Geant4_vis_management_linkopts} ${Geant4_modeling_linkopts} ${Geant4_Tree_linkopts} ${Geant4_linkopts} ${snvertex_linkopts} ${sngeom_linkopts} ${geomutils_linkopts} ${bhep_linkopts} ${CLHEP_linkopts}"'
|
|---|
| 59 |
|
|---|
| [26] | 60 | #//////////////////////////////////////////////////
|
|---|
| 61 | #/// compile, link flags //////////////////////////
|
|---|
| 62 | #//////////////////////////////////////////////////
|
|---|
| 63 | private
|
|---|
| 64 | # WIN32 : /GR to enable RTTI and dynamic cast.
|
|---|
| 65 | # WIN32 : /GX to enable exception handling (for STL).
|
|---|
| 66 | macro_append cppflags "" WIN32 " /GX /GR"
|
|---|
| 67 |
|
|---|
| 68 | # DEBUG :
|
|---|
| 69 | #macro_append cflags " -g" WIN32 " /ZI /Od"
|
|---|
| 70 | #macro_append cppflags " -g" WIN32 " /ZI /Od"
|
|---|
| 71 | #macro_append cpplinkflags " -g" WIN32 " /DEBUG /VERBOSE:LIB"
|
|---|
| 72 |
|
|---|
| 73 | # OPTIMIZE :
|
|---|
| 74 | macro_append cflags " -O" WIN32 " /O2"
|
|---|
| 75 | macro_append cppflags " -O" WIN32 " /O2"
|
|---|
| 76 | macro_append cpplinkflags " -O" WIN32 ""
|
|---|
| 77 |
|
|---|
| 78 | macro build_library_links "true" WIN32 ""
|
|---|
| 79 | macro remove_library_links "true" WIN32 ""
|
|---|
| 80 | public
|
|---|
| 81 |
|
|---|
| 82 | #//////////////////////////////////////////////////
|
|---|
| 83 | #/// Run time /////////////////////////////////////
|
|---|
| 84 | #//////////////////////////////////////////////////
|
|---|
| 85 |
|
|---|
| 86 | apply_pattern setup_paths
|
|---|
| 87 |
|
|---|