source: build/snova/trunk/cmt/requirements @ 79

Last change on this file since 79 was 79, checked in by barrand, 16 years ago
File size: 3.2 KB
Line 
1package snova
2version v0r1p02
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
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.
18#
19#//////////////////////////////////////////////////
20
21#//////////////////////////////////////////////////
22use bhep v1r*
23use Geant4 v2r* cmt
24#//////////////////////////////////////////////////
25
26build_strategy no_prototypes
27include_path none
28
29include_dirs $(SNOVAROOT)/source/GeomUtils/include $(SNOVAROOT)/source/SNgeom2/include $(SNOVAROOT)/source/SNvertex/include
30
31#//////////////////////////////////////////////////
32
33library geomutils ../source/GeomUtils/src/*.cc
34macro geomutils_shlibflags "${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
35macro geomutils_linkopts "-L${SNOVAROOT}/$(CMTCONFIG) -lgeomutils"
36
37library sngeom ../source/SNgeom2/src/*.cc
38macro sngeom_shlibflags "${geomutils_linkopts} ${bhep_linkopts} ${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
39macro sngeom_linkopts "-L${SNOVAROOT}/$(CMTCONFIG) -lsngeom"
40
41library snvertex ../source/SNvertex/src/*.cc
42#macro sngeom_shlibflags "${geomutils_linkopts} ${bhep_linkopts} ${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
43macro snvertex_linkopts "-L${SNOVAROOT}/$(CMTCONFIG) -lsnvertex"
44
45library snova -s=../source/snova \
46# Do not have the below *.cc because of old_gen.cc, OpenGLXVisManager.cc
47#   base/*.cc \ 
48   base/event.cc \
49   base/generator.cc \
50   base/run.cc \
51   base/snova_const.cc \
52   base/snova_mgr.cc \
53   base/stacking.cc \
54   base/stepping.cc \
55   base/stepping_verbose.cc \
56   base/tracking.cc \
57#
58   geom/*.cc \
59   physics/*.cc \
60   vertex/*.cc
61macro snova_cppflags "-I.. -I$(Geant4_include)"
62macro snova_shlibflags "${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
63macro snova_linkopts "-L${SNOVAROOT}/$(CMTCONFIG) -lsnova"
64
65application prog_snova ../source/snova/prog_snova2.cxx use_linkopts='"${snova_linkopts} ${Geant4_interfaces_linkopts} ${Geant4_linkopts} ${snvertex_linkopts} ${sngeom_linkopts} ${geomutils_linkopts} ${bhep_linkopts} ${CLHEP_linkopts}"'
66
67#//////////////////////////////////////////////////
68#/// compile, link flags //////////////////////////
69#//////////////////////////////////////////////////
70private
71# WIN32 : /GR to enable RTTI and dynamic cast.
72# WIN32 : /GX to enable exception handling (for STL).
73macro_append cppflags  "" WIN32 " /GX /GR"
74
75# DEBUG :
76#macro_append cflags  " -g" WIN32 " /ZI /Od"
77#macro_append cppflags  " -g" WIN32 " /ZI /Od"
78#macro_append cpplinkflags  " -g" WIN32 " /DEBUG /VERBOSE:LIB"
79
80# OPTIMIZE :
81macro_append cflags  " -O" WIN32 " /O2"
82macro_append cppflags  " -O" WIN32 " /O2"
83macro_append cpplinkflags  " -O" WIN32 ""
84
85macro build_library_links "true" WIN32 ""
86macro remove_library_links "true" WIN32 ""
87public
88
89#//////////////////////////////////////////////////
90#/// Run time /////////////////////////////////////
91#//////////////////////////////////////////////////
92
93apply_pattern setup_paths
94
Note: See TracBrowser for help on using the repository browser.