#============================================================================
# Created    : 2008-02-20
# Maintainer : Gloria CORTI
#============================================================================
package           G4processes
version           v7r0

# Structure, i.e. directories to process. 
#============================================================================
branches          cmt doc G4processes

# Dependencies 
#============================================================================
use   G4digits_hits  v*      Geant4

# Library
#============================================================================
library        G4processes $(G4LibraryFlags) \
                            ../management/src/*.cc                  \
                            ../optical/src/*.cc                     \
                            ../decay/src/*.cc                       \
                            ../transportation/src/*.cc              \
                            ../parameterisation/src/*.cc            \
                            ../cuts/src/*.cc                        \
                            ../scoring/src/*.cc                     \
                            ../biasing/src/*.cc                     \
                      -s=../electromagnetic            \
                               muons/src/*.cc                       \
                               standard/src/*.cc                    \
                               utils/src/*.cc                       \
                               xrays/src/*.cc                       \
                               lowenergy/src/*.cc                   \
                               highenergy/src/*.cc                  \
                               polarisation/src/*.cc                \
 
# the library had to be split in 2 parts: there is too many symbols
# exported for the windows linker otherwise (>32768), Hubert DeGaudenzi

library        G4processeshad $(G4LibraryFlags) \
                            ../hadronic/management/src/*.cc         \
                            ../hadronic/util/src/*.cc               \
                            ../hadronic/processes/src/*.cc          \
                            ../hadronic/cross_sections/src/*.cc     \
                            ../hadronic/stopping/src/*.cc           \
                     -s=../hadronic/models            \
                               abrasion/src/*.cc                    \
                               binary_cascade/src/*.cc              \
                               coherent_elastic/src/*.cc            \
                               em_dissociation/src/*.cc             \
                               high_energy/src/*.cc                 \
                               im_r_matrix/src/*.cc                 \
                               incl/src/*.cc                        \
                               isotope_production/src/*.cc          \
                               leading_particle/src/*.cc            \
                               lll_fission/src/*.cc                 \
                               low_energy/src/*.cc                  \
                               management/src/*.cc                  \
                               neutron_hp/src/*.cc                  \
                               qmd/src/*.cc                         \
                               radioactive_decay/src/*.cc           \
                               rpg/src/*.cc                         \
                               theo_high_energy/src/*.cc            \
                               util/src/*.cc                        \
                      -s=../hadronic/models/de_excitation  \
                               ablation/src/*.cc                    \
                               evaporation/src/*.cc                 \
                               fermi_breakup/src/*.cc               \
                               fission/src/*.cc                     \
                               gem_evaporation/src/*.cc             \
                               handler/src/*.cc                     \
                               management/src/*.cc                  \
                               multifragmentation/src/*.cc          \
                               photon_evaporation/src/*.cc          \
                               util/src/*.cc                        \
                      -s=../hadronic/models/cascade \
                               cascade/src/*.cc                     \
                               evaporation/src/*.cc                 \
                               utils/src/*.cc                       \
                      -s=../hadronic/models/chiral_inv_phase_space \
                               body/src/*.cc                        \
                               interface/src/*.cc                   \
                      -s=../hadronic/models/parton_string           \
                               diffraction/src/*.cc                 \
                               hadronization/src/*.cc               \
                               management/src/*.cc                  \
                               qgsm/src/*.cc                        \
                      -s=../hadronic/models/photolepton_hadron \
                               muon_nuclear/src/*.cc                \
                      -s=../hadronic/models/pre_equilibrium         \
                               exciton_model/src/*.cc               
 


# Patterns
#============================================================================
apply_pattern  G4AllCMTpatterns

# apply complement patterns for the second library
apply_pattern library_Softlinks library=G4processeshad
apply_pattern library_Llinkopts library=G4processeshad
apply_pattern library_Lshlibflags library=G4processeshad

macro_append G4processeshad_use_linkopts " -lG4processes" \
	                              WIN32 " G4processes.lib "

macro_append G4processeshad_dependencies G4processes


#============================================================================
private
macro G4processes_source "$(G4CONFIGROOT)/cmt/copy_source"
setup_script  $(G4processes_source)
