source: build/bhep/trunk/cmt/requirements @ 39

Last change on this file since 39 was 39, checked in by barrand, 17 years ago
File size: 3.3 KB
Line 
1package bhep
2version v1r4p2
3
4#//////////////////////////////////////////////////
5#
6#  This file assumes the following
7# directory structure :
8#    bhep/<version>/cmt
9#    bhep/<version>/source/base/...
10#    bhep/<version>/source/util/...
11# and a :
12#    bhep/<version>/bhep
13# containing a copy of the .h from the source
14# directory along with the config.h found
15# in this directory.
16#
17#//////////////////////////////////////////////////
18
19#//////////////////////////////////////////////////
20use zlib v1r* Interfaces
21use HDF5 v1r* Interfaces
22use CLHEP v1r* Interfaces
23#//////////////////////////////////////////////////
24
25build_strategy no_prototypes
26include_path none
27
28include_dirs $(BHEPROOT) $(BHEPROOT)/bhep
29
30#//////////////////////////////////////////////////
31# No dependency over other libs.
32
33library bhep -import=CLHEP  -import=HDF5\
34  -s=../source \
35   version.cpp \
36   base/event.cpp \
37   base/hit.cpp \
38   base/mparticle.cpp \
39   base/particle.cpp \
40   base/sparticle.cpp \
41   base/track.cpp \
42   util/material.cpp \
43   util/particle_definition.cpp \
44   util/ray.cpp \
45   converters/event_cvt.cpp \
46   converters/hit_cvt.cpp \
47   converters/mparticle_cvt.cpp \
48   converters/particle_cvt.cpp \
49   converters/sparticle_cvt.cpp \
50   converters/track_cvt.cpp \
51   manager/base_reader.cpp \
52   manager/bhep_svc.cpp \
53   manager/brw.cpp \
54   manager/converter_svc.cpp \
55   manager/random_reader.cpp \
56   manager/random_writer.cpp \
57   manager/reader_gz.cpp \
58   manager/reader_hdf5.cpp \
59   manager/reader_txt.cpp \
60   manager/sequential_reader.cpp \
61   manager/sequential_writer.cpp \
62   manager/writer_gz.cpp \
63   manager/writer_hdf5.cpp \
64   manager/writer_txt.cpp \
65   examples/generate_event.cpp \
66   tutorials/gevent.cpp \
67   histos/axis.cpp \
68   histos/histogram.cpp \
69   tools/EventManager.cpp
70
71macro bhep_cppflags ""
72macro bhep_shlibflags "${dld_linkopts} ${CLHEP_linkopts} ${HDF5_linkopts} ${zlib_linkopts}"
73macro bhep_linkopts "-L${BHEPROOT}/$(CMTCONFIG) -lbhep"
74
75#//////////////////////////////////////////////////
76#/// compile, link flags //////////////////////////
77#//////////////////////////////////////////////////
78private
79# WIN32 : /GR to enable RTTI and dynamic cast.
80# WIN32 : /GX to enable exception handling (for STL).
81macro_append cppflags  "" WIN32 " /GX /GR"
82
83# DEBUG :
84#macro_append cflags  " -g" WIN32 " /ZI /Od"
85#macro_append cppflags  " -g" WIN32 " /ZI /Od"
86#macro_append cpplinkflags  " -g" WIN32 " /DEBUG /VERBOSE:LIB"
87
88# OPTIMIZE :
89macro_append cflags  " -O" WIN32 " /O2"
90macro_append cppflags  " -O" WIN32 " /O2"
91macro_append cpplinkflags  " -O" WIN32 ""
92
93macro build_library_links "true" WIN32 ""
94macro remove_library_links "true" WIN32 ""
95public
96
97#//////////////////////////////////////////////////
98#/// Run time /////////////////////////////////////
99#//////////////////////////////////////////////////
100
101pattern setup_paths \
102  path_remove LD_LIBRARY_PATH "${<PACKAGE>ROOT}/$(CMTCONFIG)" WIN32 "" Darwin "" ;\
103  path_append LD_LIBRARY_PATH "${<PACKAGE>ROOT}/$(CMTCONFIG)" WIN32 "" Darwin "" ;\
104  path_remove DYLD_LIBRARY_PATH "" Darwin "${<PACKAGE>ROOT}/$(CMTCONFIG)" ;\
105  path_append DYLD_LIBRARY_PATH "" Darwin "${<PACKAGE>ROOT}/$(CMTCONFIG)" ;\
106  path_remove PATH "${<PACKAGE>ROOT}/$(CMTCONFIG)" WIN32 "${<PACKAGE>ROOT}\$(CMTCONFIG)" ;\
107  path_append PATH "${<PACKAGE>ROOT}/$(CMTCONFIG)" WIN32 "${<PACKAGE>ROOT}\$(CMTCONFIG)"
108
109apply_pattern setup_paths
110
111
112
113
Note: See TracBrowser for help on using the repository browser.