| [109] | 1 | package snovis
|
|---|
| 2 | version v1r1
|
|---|
| [103] | 3 |
|
|---|
| 4 | #//////////////////////////////////////////////////
|
|---|
| 5 | #/// Uses needed to build this package ////////////
|
|---|
| 6 | #//////////////////////////////////////////////////
|
|---|
| 7 |
|
|---|
| [109] | 8 | use OpenScientist v16r* cmt
|
|---|
| [103] | 9 |
|
|---|
| [109] | 10 | use snova v2r*
|
|---|
| [103] | 11 |
|
|---|
| 12 | set G4RADIOACTIVEDATA "${OSC_G4RADIOACTIVEDATA}"
|
|---|
| 13 | set G4LEVELGAMMADATA "${OSC_G4LEVELGAMMADATA}"
|
|---|
| 14 | set G4LEDATA "${OSC_G4LEDATA}"
|
|---|
| 15 | set NeutronHPCrossSections "${OSC_NeutronHPCrossSections}"
|
|---|
| 16 |
|
|---|
| 17 | #////////////////////////////////////////////////////////////
|
|---|
| 18 | #////////////////////////////////////////////////////////////
|
|---|
| [109] | 19 | #////////////////////////////////////////////////////////////
|
|---|
| [103] | 20 |
|
|---|
| 21 | # Darwin : to build dlls properly :
|
|---|
| [109] | 22 | macro make_shlib "$(make_shlib)" Darwin "$(SNOVISROOT)/cmt/cmt_make_shlib_common.sh extract"
|
|---|
| [103] | 23 |
|
|---|
| 24 | #//////////////////////////////////////////////////
|
|---|
| 25 | #//////////////////////////////////////////////////
|
|---|
| 26 | #//////////////////////////////////////////////////
|
|---|
| 27 |
|
|---|
| 28 | build_strategy no_prototypes
|
|---|
| 29 | include_path none
|
|---|
| 30 |
|
|---|
| [109] | 31 | include_dirs $(SNOVISROOT)
|
|---|
| [103] | 32 |
|
|---|
| 33 | #//////////////////////////////////////////////////
|
|---|
| 34 | #/// DLD callbacks ////////////////////////////////
|
|---|
| 35 | #//////////////////////////////////////////////////
|
|---|
| 36 |
|
|---|
| 37 | # Must not use Geant4 singletons if having not Geant4 shared libs.
|
|---|
| [109] | 38 | macro snovis_kind "dll"
|
|---|
| 39 | library snovis ../source/*.cxx
|
|---|
| 40 | macro snovis_cppflags "${OSC_G4Lab_incs} ${OSC_AIDA_incs} ${OSC_OnX_incs} ${OSC_Inventor_incs}"
|
|---|
| 41 | macro snovis_shlibflags "${OSC_Inventor_linkopts} ${OSC_OnX_linkopts}"
|
|---|
| [103] | 42 |
|
|---|
| 43 | #//////////////////////////////////////////////////
|
|---|
| [109] | 44 | #/// Applications /////////////////////////////////
|
|---|
| [103] | 45 | #//////////////////////////////////////////////////
|
|---|
| 46 |
|
|---|
| [109] | 47 | application prog_snova ../applications/prog_snova2.cxx use_linkopts='"${snova_linkopts} ${snvertex_linkopts} ${sngeom_linkopts} ${geomutils_linkopts} ${bhep_linkopts} ${Geant4_linkopts} ${CLHEP_linkopts}"'
|
|---|
| 48 | #macro prog_snova_cppflags "${snova_cppflags}"
|
|---|
| [103] | 49 |
|
|---|
| 50 | # Over G4Lab :
|
|---|
| [112] | 51 | application snovis_session ../applications/snovis_session.cc use_linkopts='"${snova_linkopts} ${snvertex_linkopts} ${sngeom_linkopts} ${geomutils_linkopts} ${bhep_linkopts} ${OSC_G4Lab_linkopts} ${Geant4_linkopts} ${CLHEP_linkopts} ${OSC_Inventor_linkopts} ${OSC_OnX_linkopts}"'
|
|---|
| 52 | macro snovis_sessionlinkopts "" Darwin "-bind_at_load"
|
|---|
| [103] | 53 |
|
|---|
| 54 | #//////////////////////////////////////////////////
|
|---|
| 55 | #//////////////////////////////////////////////////
|
|---|
| 56 | #//////////////////////////////////////////////////
|
|---|
| 57 |
|
|---|
| 58 | private
|
|---|
| 59 | macro build_library_links "true" WIN32 ""
|
|---|
| 60 | macro remove_library_links "true" WIN32 ""
|
|---|
| 61 |
|
|---|
| 62 | # WIN32 : /GR to enable RTTI and dynamic cast.
|
|---|
| 63 | # WIN32 : /GX to enable exception handling (for STL).
|
|---|
| 64 | macro_append cppflags "" WIN32 " /GX /GR"
|
|---|
| 65 |
|
|---|
| 66 | # DEBUG :
|
|---|
| 67 | #macro_append cflags " -g" WIN32 " /ZI /Od"
|
|---|
| 68 | #macro_append cppflags " -g" WIN32 " /ZI /Od"
|
|---|
| 69 | #macro_append cpplinkflags " -g" WIN32 " /DEBUG"
|
|---|
| 70 |
|
|---|
| 71 | # OPTIMIZE :
|
|---|
| 72 | macro_append cflags " -O" WIN32 " /O2"
|
|---|
| 73 | macro_append cppflags " -O" WIN32 " /O2"
|
|---|
| 74 | macro_append cpplinkflags " -O" WIN32 ""
|
|---|
| 75 | public
|
|---|
| 76 |
|
|---|
| 77 | #//////////////////////////////////////////////////
|
|---|
| 78 | #// Run time //////////////////////////////////////
|
|---|
| 79 | #//////////////////////////////////////////////////
|
|---|
| 80 |
|
|---|
| [109] | 81 | apply_pattern setup_paths
|
|---|
| [103] | 82 |
|
|---|