1 | package MEMPHYS |
---|
2 | version v2r0 |
---|
3 | |
---|
4 | branches run |
---|
5 | |
---|
6 | #////////////////////////////////////////////////// |
---|
7 | #/// Uses needed to build this package //////////// |
---|
8 | #////////////////////////////////////////////////// |
---|
9 | |
---|
10 | use G4Lab v7r* |
---|
11 | |
---|
12 | |
---|
13 | #////////////////////////////////////////////////// |
---|
14 | #/// Over Geant4 kernel and AIDA interfaces only // |
---|
15 | #////////////////////////////////////////////////// |
---|
16 | |
---|
17 | build_strategy no_prototypes |
---|
18 | include_path none |
---|
19 | |
---|
20 | include_dirs $(MEMPHYSROOT) |
---|
21 | |
---|
22 | # Over Geant4 and AIDA only : |
---|
23 | library MEMPHYSCore ${G4Lab_libopts} -s=../source *.cxx |
---|
24 | |
---|
25 | #JEC 17/11/05 add the G4readout_incs to manage G4DigiManager |
---|
26 | macro MEMPHYSCore_cppflags "${G4Lab_Geant4_incs} ${G4readout_incs} ${G4particles_incs} ${G4processes_incs}" |
---|
27 | macro MEMPHYSCore_shlibflags "${G4Lab_Geant4_linkopts} ${LibCore_linkopts} ${dld_linkopts} ${cxxstd_linkopts}" |
---|
28 | macro MEMPHYSCore_linkopts "-L${MEMPHYSROOT}/$(Platform_bin) -lMEMPHYSCore" WIN32 "${MEMPHYSROOT}\$(Platform_bin)\MEMPHYSCore.lib" |
---|
29 | |
---|
30 | #////////////////////////////////////////////////// |
---|
31 | #/// DLD callbacks //////////////////////////////// |
---|
32 | #////////////////////////////////////////////////// |
---|
33 | |
---|
34 | library MEMPHYS -import=OpenInventor -s=../source/Callbacks Callbacks.cxx InventorCallbacks.cxx |
---|
35 | macro MEMPHYS_cppflags "${G4Lab_Geant4_incs}" |
---|
36 | macro MEMPHYS_shlibflags "${LibCore_linkopts} ${HEPVisPlotter_linkopts} ${HEPVisDetector_linkopts} ${HEPVisGeometry_linkopts} ${HEPVisUtils_linkopts} ${freetype_linkopts} ${jpeg_linkopts} ${dvi2bitmap_linkopts} ${OpenInventor_linkopts} ${OpenGL_linkopts} ${Xext_linkopts} ${X11_linkopts} ${dld_linkopts} ${cxxstd_linkopts}" |
---|
37 | |
---|
38 | #////////////////////////////////////////////////// |
---|
39 | #/// Application "a la Geant4 examples" /////////// |
---|
40 | #////////////////////////////////////////////////// |
---|
41 | |
---|
42 | # Over Geant4 and AIDA only : |
---|
43 | application MEMPHYS_batch -import=expat ../applications/MEMPHYS_batch.cxx use_linkopts='"${MEMPHYSCore_linkopts} ${G4physics_lists_hadronic_linkopts} ${G4Lab_Geant4_linkopts} ${LabAnalysisFactory_linkopts} ${LibCore_linkopts} ${math_linkopts} ${dld_linkopts}"' |
---|
44 | macro MEMPHYS_batch_cppflags "${MEMPHYSCore_cppflags} ${G4physics_lists_hadronic_incs}" |
---|
45 | |
---|
46 | # Over G4Lab : |
---|
47 | application MEMPHYS_session -import=OpenInventor -import=expat ../applications/MEMPHYS_session.cxx use_linkopts='"${MEMPHYSCore_linkopts} ${G4physics_lists_hadronic_linkopts} ${G4LabUIOnX_linkopts} ${G4LabCore_linkopts} ${G4Lab_Geant4_linkopts} ${G4LabHDUMMY_linkopts} ${HEPVisPlotter_linkopts} ${HEPVisDetector_linkopts} ${HEPVisGeometry_linkopts} ${HEPVisUtils_linkopts} ${freetype_linkopts} ${jpeg_linkopts} ${dvi2bitmap_linkopts} ${OpenInventor_linkopts} ${OnXCore_linkopts} ${LibXML_linkopts} ${expat_linkopts} ${LibZip_linkopts} ${zlib_linkopts} ${LibCore_linkopts} ${dld_linkopts} ${cxxstd_linkopts} ${Windows_linkopts} ${OpenGL_linkopts} ${Xext_linkopts} ${X11_linkopts} "' |
---|
48 | macro MEMPHYS_session_cppflags "${G4Lab_Geant4_incs} ${MEMPHYS_batch_cppflags}" |
---|
49 | |
---|
50 | |
---|
51 | #JEC 18/11/05 not yet implemented: what's that Guy? |
---|
52 | # Over AIDA / Lab : |
---|
53 | #macro aida_config_libs "`aida-config --libs`" WIN32 "${LabAnalysisFactory_linkopts} ${LibCore_linkopts} ${math_linkopts} ${dld_linkopts}" |
---|
54 | #application MEMPHYS_analysis ../applications/MEMPHYS_analysis.cxx use_linkopts='"$(aida_config_libs)"' |
---|
55 | |
---|
56 | |
---|
57 | #////////////////////////////////////////////////// |
---|
58 | #////////////////////////////////////////////////// |
---|
59 | #////////////////////////////////////////////////// |
---|
60 | |
---|
61 | private |
---|
62 | macro build_library_links "true" WIN32 "" |
---|
63 | macro remove_library_links "true" WIN32 "" |
---|
64 | |
---|
65 | # WIN32 : /GR to enable RTTI and dynamic cast. |
---|
66 | # WIN32 : /GX to enable exception handling (for STL). |
---|
67 | macro_append cppflags "" WIN32 " /GX /GR" |
---|
68 | |
---|
69 | # DEBUG : |
---|
70 | #macro_append cflags " -g" WIN32 " /ZI /Od" |
---|
71 | #macro_append cppflags " -g" WIN32 " /ZI /Od" |
---|
72 | #macro_append cpplinkflags " -g" WIN32 " /DEBUG" |
---|
73 | |
---|
74 | # OPTIMIZE : |
---|
75 | macro_append cflags " -O" WIN32 " /O2" |
---|
76 | macro_append cppflags " -O" WIN32 " /O2" |
---|
77 | macro_append cpplinkflags " -O" WIN32 "" |
---|
78 | |
---|
79 | # SunOS : For std::map, std::list templates : |
---|
80 | macro ar "$(ar)" SunOS "CC -xar -o" |
---|
81 | public |
---|
82 | |
---|
83 | #////////////////////////////////////////////////// |
---|
84 | #// Run time ////////////////////////////////////// |
---|
85 | #////////////////////////////////////////////////// |
---|
86 | |
---|
87 | use Lab v11r* |
---|
88 | |
---|
89 | path_remove LD_LIBRARY_PATH "${MEMPHYSROOT}/$(Platform_bin)" WIN32 "" Darwin "" |
---|
90 | path_append LD_LIBRARY_PATH "${MEMPHYSROOT}/$(Platform_bin)" WIN32 "" Darwin "" |
---|
91 | |
---|
92 | path_remove DYLD_LIBRARY_PATH "" Darwin "${MEMPHYSROOT}/$(Platform_bin)" WIN32 "" |
---|
93 | path_append DYLD_LIBRARY_PATH "" Darwin "${MEMPHYSROOT}/$(Platform_bin)" WIN32 "" |
---|
94 | |
---|
95 | path_remove PATH "" WIN32 "${MEMPHYSROOT}\$(Platform_bin)" |
---|
96 | path_append PATH "" WIN32 "${MEMPHYSROOT}\$(Platform_bin)" |
---|
97 | |
---|
98 | |
---|