Import Geant4 9.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 16:46:55 +02:00
parent 89a9605df1
commit b1eb5424d2
10957 changed files with 888481 additions and 160139 deletions
+18 -5
View File
@@ -1,4 +1,4 @@
# $Id: G4UI_BUILD.gmk,v 1.5 2007/10/03 12:15:05 lgarnier Exp $
# $Id: G4UI_BUILD.gmk,v 1.5 2007-10-03 12:15:05 lgarnier Exp $
# -------------------------------------------------------------
# Interfaces-specific CPPFLAGS for BUILD phase.
# John Allison, 6th July 1998.
@@ -14,8 +14,17 @@ ifndef G4UI_NONE
# GAG_SESSION
# TERMINAL_SESSION
# Special case: if OPENGLXM vis driver requested, G4Xt must be built.
ifdef G4VIS_BUILD_OPENGLXM_DRIVER
G4INTY_BUILD_XT = 1
endif
# Special case: if OIX vis driver requested, G4Xt must be built.
ifdef G4VIS_BUILD_OIX_DRIVER
G4INTY_BUILD_XT = 1
endif
ifdef G4UI_BUILD_XM_SESSION
G4UI_BUILD = 1
G4UI_BUILD_BASIC_SESSION = 1
G4INTY_BUILD_XT = 1
INC_XM = 1
@@ -23,15 +32,20 @@ ifdef G4UI_BUILD_XM_SESSION
endif
ifdef G4UI_BUILD_QT_SESSION
G4UI_BUILD = 1
G4UI_BUILD_BASIC_SESSION = 1
G4INTY_BUILD_QT = 1
INC_QT = 1
CPPFLAGS += -DG4UI_BUILD_QT_SESSION
endif
ifdef G4UI_BUILD_WT_SESSION
G4UI_BUILD_BASIC_SESSION = 1
G4INTY_BUILD_WT = 1
INC_WT = 1
CPPFLAGS += -DG4UI_BUILD_WT_SESSION
endif
ifdef G4UI_BUILD_XAW_SESSION
G4UI_BUILD = 1
G4UI_BUILD_BASIC_SESSION = 1
G4INTY_BUILD_XT = 1
INC_XAW = 1
@@ -39,7 +53,6 @@ ifdef G4UI_BUILD_XAW_SESSION
endif
ifdef G4UI_BUILD_WIN32_SESSION
G4UI_BUILD = 1
G4UI_BUILD_BASIC_SESSION = 1
G4INTY_BUILD_WIN32 = 1
CPPFLAGS += -DG4UI_BUILD_WIN32_SESSION
+9 -1
View File
@@ -1,4 +1,4 @@
# $Id: G4UI_USE.gmk,v 1.15 2009/03/05 09:19:37 gbarrand Exp $
# $Id: G4UI_USE.gmk,v 1.15 2009-03-05 09:19:37 gbarrand Exp $
# -------------------------------------------------------------
# GNUmakefile for CPPFLAGS for interfaces USE phase.
# John Allison, 6th July 1998.
@@ -67,6 +67,14 @@ ifdef G4UI_USE_QT
CPPFLAGS += -DG4UI_USE_QT
endif
ifdef G4UI_USE_WT
G4UI_USE = 1
G4INTY_USE_WT = 1
INC_WT = 1
LOAD_WT = 1
CPPFLAGS += -DG4UI_USE_WT
endif
ifdef G4UI_USE_XAW
G4UI_USE = 1
G4INTY_USE_XT = 1
+13 -1
View File
@@ -1,4 +1,4 @@
# $Id: G4VIS_BUILD.gmk,v 1.22 2009/11/05 10:06:54 allison Exp $
# $Id: G4VIS_BUILD.gmk,v 1.22 2009-11-05 10:06:54 allison Exp $
# -------------------------------------------------------------
# Visualization-specific CPPFLAGS for BUILD phase.
# John Allison, 24th January 1998.
@@ -35,6 +35,14 @@ ifdef G4VIS_BUILD_OPENGLQT_DRIVER
INC_QT = 1
CPPFLAGS += -DG4VIS_BUILD_OPENGLQT_DRIVER
endif
ifdef G4VIS_BUILD_OPENGLWT_DRIVER
G4VIS_BUILD_OPENGL_DRIVER = 1
G4INTY_BUILD_WT = 1
INC_WT = 1
G4INTY_BUILD_QT = 1
INC_QT = 1
CPPFLAGS += -DG4VIS_BUILD_OPENGLWT_DRIVER
endif
ifdef G4VIS_BUILD_OPENGLX_DRIVER
G4VIS_BUILD_OPENGL_DRIVER = 1
INC_X11 = 1
@@ -101,6 +109,10 @@ ifdef G4LIB_BUILD_SHARED
G4VIS_USE_OPENGLQT = 1
endif
ifdef G4VIS_BUILD_OPENGLWT_DRIVER
G4VIS_USE_OPENGLWT = 1
endif
ifdef G4VIS_BUILD_OPENGL_DRIVER
G4VIS_USE_OPENGL = 1
endif
+11 -1
View File
@@ -1,4 +1,4 @@
# $Id: G4VIS_USE.gmk,v 1.28 2009/11/17 11:34:56 gcosmo Exp $
# $Id: G4VIS_USE.gmk,v 1.28 2009-11-17 11:34:56 gcosmo Exp $
# -------------------------------------------------------------
# GNUmakefile for CPPFLAGS for visualization USE phase.
# John Allison, 24th January 1998.
@@ -67,6 +67,16 @@ ifdef G4VIS_USE_OPENGLQT
INC_QT = 1
LOAD_GLQT = 1
endif
ifdef G4VIS_USE_OPENGLWT
G4VIS_USE_OPENGL = 1
CPPFLAGS += -DG4VIS_USE_OPENGLWT
VISLIBS += -lG4OpenGL
INC_GL = 1
INC_WT = 1
LOAD_GLWT = 1
INC_QT = 1
LOAD_GLQT = 1
endif
ifdef G4VIS_USE_OPENGLWIN32
G4VIS_USE_OPENGL = 1
CPPFLAGS += -DG4VIS_USE_OPENGLWIN32
+97 -2
View File
@@ -1,4 +1,4 @@
cvs log $Id: History,v 1.399 2010/12/08 13:46:18 gunter Exp $
cvs log $Id: History,v 1.400 2010-12-22 16:28:40 lgarnier Exp $
-------------------------------------------------------------------
=========================================================
@@ -16,7 +16,102 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
8th December 2010 Gunter Folger (config-V09-03-19)
22nd November 2011 Gabriele Cosmo (config-V09-04-19)
- Corrected path in Darwin-g++ setup introduced in previous tag.
22nd November 2011 Gabriele Cosmo (config-V09-04-18)
- Archived Configure scripts.
10th November 2011 Gunter Folger
- Allow use of Qt libraries not installed as Framework in Darwin-g++.gmk.
7th November 2011 Gabriele Cosmo (config-V09-04-17)
- Abilited possibility to force building of internal 'expat' module also
for Linux and Mac, through use of G4LIB_BUILD_EXPAT flag.
18th October 2011 Gunter Folger (config-V09-04-16)
- binmake.gmk: add new directories in electromagnetic/dna and
new hadronic/models/quasi_elastic
21st september 2011 John Allison (config-V09-04-15)
- G4UI_BUILD.gmk: Added G4INTY_BUILD_XT = 1 for G4VIS_BUILD_OPENGLXM_DRIVER
and G4VIS_BUILD_OIX_DRIVER. The vis drivers need Xt, so this covers
the case when the user does not build Xt from G4UI_BUILD flags.
31st August 2011 AM, MK, SI (config-V09-04-14)
- Modified binmake.gmk to add new DNA architecture.
3rd August 2011 Gabriele Cosmo (config-V09-04-13)
- Darwin-g++.gmk: modified OGLLIBS settings to support MacOSX 10.7 Lion
for proper configuration of OpenGL libraries in combination with Qt.
14th July 2011 Gabriele Cosmo (config-V09-04-12)
- Added "analysis" module to binmake.gmk.
5th July 2011 Gabriele Cosmo (config-V09-04-11)
- architecture.gmk: corrected definition of G4LIB_USE_GDML, to properly
activate GDML settings.
17th June 2011 Ben Morgan (config-V09-04-10)
- scripts/env.(c)sh : Added support for internal CLHEP. LD_LIBRARY_PATH is
correctly set when an external CLHEP is used, but not modified with any
CLHEP related variable if the internal CLHEP is used.
Should be used with current trunk of Configure (rev 50915), though this
is not absolutely required.
6th June 2011 Gabriele Cosmo (config-V09-04-09)
- Correction to binmake.gmk to restore setting of G4LIBDIR for the case of
generation of user's application library.
24th May 2011 Gabriele Cosmo (config-V09-04-08)
- Fixed configuration for CLHEP built-in module, to allow for build of DLLs.
16th May 2011 Gabriele Cosmo (config-V09-04-07)
- Corrected include path definition for built-in CLHEP module.
13th May 2011 Gabriele Cosmo (config-V09-04-06)
- Added "expat" to link list, and differentiate built-in module for WIN32
target.
10th May 2011 Gabriele Cosmo (config-V09-04-05)
- Integrated flags in architecture.gmk and binmake.gmk for use of CLHEP
built-in package in externals.
Note: the built-in package can only be used in conjunction with the
"externals" module...
10th May 2011 Gabriele Cosmo (config-V09-04-04)
- Added default for CLHEP_BASE_DIR to built-in package in externals.
Note: the default can only be used in conjunction with the "externals"
module.
9th May 2011 Gabriele Cosmo (config-V09-04-03)
- Changed common.gmk to take into account sub-directories for headers
installation.
- Workaround in binmake.gmk to avoid clashes with flag LDFLAGS set in the
user's environment beforehand.
8th May 2011 Ben Morgan
- Updated configure scripts to correct settings of G4LIB_USE_DLL for the
case of DLLs build on Windows. Partially addressing problem report #1189.
4th April 2011 Laurent Garnier
- Added flags to handle future driver OpenGLWt.
18th March 2011 Gunter Folger (config-V09-04-02)
- Address old bug report 1033 in liblist.c
17th March 2011 Gabriele Cosmo (config-V09-04-01)
- Added electromagnetic/dna module.
10th February 2011 Ben Morgan (config-V09-04-00)
- Fixed restoring of default settings for XercesC in Configure script and
internal scripts. Corrected duplication of text in setup dump.
Addessing problem reports #1159 and #1160.
22th December 2010 Laurent Garnier
- Darwin-g++.gmk: fix to avoid mixing of OpenGL X11 and framework.
8th December 2010 Gunter Folger (config-V09-03-19)
- Updated linux-icc to suppress warning when linking to shared libs
25th November 2010 Gabriele Cosmo (config-V09-03-18)
+44 -18
View File
@@ -1,4 +1,4 @@
# $Id: architecture.gmk,v 1.125 2010/11/24 10:54:13 gcosmo Exp $
# $Id: architecture.gmk,v 1.125 2010-11-24 10:54:13 gcosmo Exp $
# ------------------------------------------------------------------------
# GEANT 4 - Architecture configuration script for GNU Make
#
@@ -112,6 +112,13 @@ ifneq ($(G4LIB_BUILD_ZLIB),)
G4LIB_USE_ZLIB = 1
endif
# Specify if to build the EXPAT module or not. Default is NO.
#
ifneq ($(G4LIB_BUILD_EXPAT),)
G4LIB_BUILD_EXPAT = 1
G4LIB_USE_EXPAT = 1
endif
# If not specified, the default path for G4 binaries G4BIN is
# set to $G4WORKDIR/bin/$G4SYSTEM ...
#
@@ -136,7 +143,22 @@ endif
# CLHEP path, etc.
#
ifndef CLHEP_BASE_DIR
CLHEP_BASE_DIR := $(shell ls CLHEP_BASE_DIR--UNDEFINED)
CLHEP_BASE_DIR := $(G4BASE)/externals/clhep
G4LIB_BUILD_CLHEP := 1
G4LIB_USE_CLHEP := 1
endif
ifndef G4LIB_USE_CLHEP
ifndef CLHEP_LIB
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
CLHEP_LIB := CLHEP.lib
else
CLHEP_LIB := CLHEP
#
# If using the "granular" libraries of CLHEP, uncomment below
#
# CLHEP_LIB := CLHEP-HepMC -l CLHEP-Geometry -l CLHEP-Random -l CLHEP-Vector
endif
endif
endif
ifndef CLHEP_INCLUDE_DIR
CLHEP_INCLUDE_DIR := $(CLHEP_BASE_DIR)/include
@@ -144,17 +166,6 @@ endif
ifndef CLHEP_LIB_DIR
CLHEP_LIB_DIR := $(CLHEP_BASE_DIR)/lib
endif
ifndef CLHEP_LIB
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
CLHEP_LIB := CLHEP.lib
else
CLHEP_LIB := CLHEP
#
# If using the "granular" libraries of CLHEP, uncomment below
#
# CLHEP_LIB := CLHEP-HepMC -l CLHEP-Geometry -l CLHEP-Random -l CLHEP-Vector
endif
endif
# Paths for G4 data
#
@@ -208,15 +219,28 @@ CPPFLAGS += -I$(CLHEP_INCLUDE_DIR)
ifndef LDFLAGS
LDFLAGS :=
endif
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
LDFLAGS += -link $(LIB_PATH)$(CLHEP_LIB_DIR)
LOADLIBS := $(CLHEP_LIB)
ifndef G4LIB_USE_CLHEP
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
LDFLAGS += -link $(LIB_PATH)$(CLHEP_LIB_DIR)
LOADLIBS := $(CLHEP_LIB)
else
LDFLAGS += -L$(CLHEP_LIB_DIR)
LOADLIBS := -l$(CLHEP_LIB)
endif
else
LDFLAGS += -L$(CLHEP_LIB_DIR)
LOADLIBS := -l$(CLHEP_LIB) -lm
LOADLIBS :=
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
LDFLAGS += -link $(LIB_PATH)$(G4INSTALL)/lib
endif
endif
ifeq (,$(findstring WIN32-VC,$(G4SYSTEM)))
ifndef G4LIB_USE_EXPAT
LOADLIBS += -lexpat
endif
ifndef G4LIB_USE_ZLIB
LOADLIBS += -lz
endif
LOADLIBS += -lm
endif
# Graphic variables...
@@ -258,6 +282,8 @@ endif
#
ifneq ($(G4LIB_BUILD_GDML),)
G4LIB_USE_GDML = 1
endif
ifdef G4LIB_USE_GDML
ifndef XERCESCROOT
XERCESCROOT := /usr/local/xercesc
endif
+31 -6
View File
@@ -1,4 +1,4 @@
# $Id: binmake.gmk,v 1.149 2010/11/23 13:21:37 gcosmo Exp $
# $Id: binmake.gmk,v 1.149 2010-11-23 13:21:37 gcosmo Exp $
# ----------------------------------------------------------
# Script defining rules and paths for making binaries.
# First implementation: Gabriele Cosmo, 25/06/1998.
@@ -45,6 +45,7 @@ ifndef INCFLAGS
INCFLAGS := -I$(G4INCLUDE)
else
INCFLAGS := \
-I$(G4BASE)/analysis/include \
-I$(G4BASE)/global/management/include \
-I$(G4BASE)/global/HEPRandom/include \
-I$(G4BASE)/global/HEPGeometry/include \
@@ -77,6 +78,12 @@ ifndef INCFLAGS
-I$(G4BASE)/processes/electromagnetic/xrays/include \
-I$(G4BASE)/processes/electromagnetic/lowenergy/include \
-I$(G4BASE)/processes/electromagnetic/highenergy/include \
-I$(G4BASE)/processes/electromagnetic/dna/processes/include \
-I$(G4BASE)/processes/electromagnetic/dna/models/include \
-I$(G4BASE)/processes/electromagnetic/dna/utils/include \
-I$(G4BASE)/processes/electromagnetic/dna/management/include \
-I$(G4BASE)/processes/electromagnetic/dna/molecules/management/include \
-I$(G4BASE)/processes/electromagnetic/dna/molecules/types/include \
-I$(G4BASE)/processes/electromagnetic/pii/include \
-I$(G4BASE)/processes/electromagnetic/polarisation/include \
-I$(G4BASE)/processes/hadronic/cross_sections/include \
@@ -106,6 +113,9 @@ ifndef INCFLAGS
-I$(G4BASE)/processes/hadronic/models/high_energy/include \
-I$(G4BASE)/processes/hadronic/models/im_r_matrix/include \
-I$(G4BASE)/processes/hadronic/models/incl/include \
-I$(G4BASE)/processes/hadronic/models/inclxx/interface/include \
-I$(G4BASE)/processes/hadronic/models/inclxx/utils/include \
-I$(G4BASE)/processes/hadronic/models/inclxx/incl_physics/include \
-I$(G4BASE)/processes/hadronic/models/isotope_production/include \
-I$(G4BASE)/processes/hadronic/models/lend/include \
-I$(G4BASE)/processes/hadronic/models/lll_fission/include \
@@ -119,6 +129,7 @@ ifndef INCFLAGS
-I$(G4BASE)/processes/hadronic/models/photolepton_hadron/muon_nuclear/include \
-I$(G4BASE)/processes/hadronic/models/pre_equilibrium/exciton_model/include \
-I$(G4BASE)/processes/hadronic/models/qmd/include \
-I$(G4BASE)/processes/hadronic/models/quasi_elastic/include \
-I$(G4BASE)/processes/hadronic/models/radioactive_decay/include \
-I$(G4BASE)/processes/hadronic/models/rpg/include \
-I$(G4BASE)/processes/hadronic/models/theo_high_energy/include \
@@ -164,13 +175,14 @@ G4TMPDIR := $(G4TMP)/$(G4SYSTEM)/$(G4TARGET)
G4BINDIR := $(G4BIN)/$(G4SYSTEM)
ifdef G4EXLIB
# Redefine G4LIBDIR here to switch to local path for generation of app library
G4LIBDIR := $(G4TMPDIR)
LDFLAGS += -L$(G4LIBDIR)
LDFLAGS += -L$(G4TMPDIR)
ifdef SHAREDLIBS
ifdef G4RUNPATHOPTION
# For the example dependent directory, keep the
# path to the shared lib in the executable.
LDFLAGS += $(G4RUNPATHOPTION)$(G4LIBDIR)
# For the example dependent directory, keep the
# path to the shared lib in the executable.
LDFLAGS += $(G4RUNPATHOPTION)$(G4TMPDIR)
endif
endif
include $(G4INSTALL)/config/common.gmk
@@ -212,7 +224,8 @@ ifdef GLOBALLIBS
LDLIBS2 += -lG3toG4
endif
LDLIBS2 += -lG4error_propagation \
LDLIBS2 += -lG4analysis \
-lG4error_propagation \
-lG4readout \
-lG4physicslists \
-lG4run \
@@ -229,6 +242,18 @@ ifdef GLOBALLIBS
-lG4intercoms \
-lG4global
ifdef G4LIB_USE_CLHEP
LDLIBS2 += -lG4clhep
endif
ifdef G4LIB_USE_EXPAT
LDLIBS2 += -lG4expat
endif
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
LDLIBS2 += -lG4expat
endif
ifdef G4LIB_USE_ZLIB
LDLIBS2 += -lG4zlib
endif
+3 -3
View File
@@ -1,4 +1,4 @@
# $Id: common.gmk,v 1.54 2009/02/26 16:29:08 gcosmo Exp $
# $Id: common.gmk,v 1.54 2009-02-26 16:29:08 gcosmo Exp $
# ----------------------------------------------------------------
# Common part of GNUmakefile for libraries. John Allison, 5/7/95.
# ----------------------------------------------------------------
@@ -126,7 +126,7 @@ endif
#
# Installation of include files
#
installed_includes:=$(foreach file,$(wildcard include/*),$(shell test -f $(file) && echo $(file)))
installed_includes:=$(foreach file,$(wildcard include/*),$(shell test -e $(file) && echo $(file)))
installed_includes:=$(patsubst include/%,$(G4INCLUDE)/%,$(installed_includes))
# NOTE: the double colon rule allows to add other rules for the same target
@@ -137,7 +137,7 @@ includes:: $(installed_includes)
# target(s): target-pattern : dep-pattern
#
$(installed_includes): $(G4INCLUDE)/% : include/%
@cp -p $< $@
@cp -rp $< $@
#
# Clean up libraries
+1 -1
View File
@@ -1,4 +1,4 @@
# $Id: globlib.gmk,v 1.30 2010/09/30 09:04:01 gcosmo Exp $
# $Id: globlib.gmk,v 1.30 2010-09-30 09:04:01 gcosmo Exp $
# --------------------------------------------------------------
# Script for compound libraries. Gabriele Cosmo, 25/6/98.
# --------------------------------------------------------------
+17
View File
@@ -35,6 +35,15 @@ ifdef LOAD_GLQT
INTYLIBS += $(GLQTLIBS)
endif
########################### Wt ###############################
# Should be before X11.
ifdef INC_WT
CPPFLAGS += $(WTFLAGS)
endif
ifdef LOAD_WT
INTYLIBS += $(WTLIBS)
endif
########################### OpenGL ###############################
ifdef INC_GL
@@ -86,6 +95,10 @@ ifdef G4INTY_BUILD_QT
CPPFLAGS += -DG4INTY_BUILD_QT
endif
ifdef G4INTY_BUILD_WT
CPPFLAGS += -DG4INTY_BUILD_WT
endif
ifdef G4INTY_USE_XT
CPPFLAGS += -DG4INTY_USE_XT
endif
@@ -94,6 +107,10 @@ ifdef G4INTY_USE_QT
CPPFLAGS += -DG4INTY_USE_QT
endif
ifdef G4INTY_USE_WT
CPPFLAGS += -DG4INTY_USE_WT
endif
ifdef G4INTY_BUILD_WIN32
CPPFLAGS += -DG4INTY_BUILD_WIN32
endif
+14 -3
View File
@@ -1,4 +1,4 @@
/* $Id: liblist.c,v 1.22 2010/11/02 09:20:42 gcosmo Exp $ */
/* $Id: liblist.c,v 1.22 2010-11-02 09:20:42 gcosmo Exp $ */
/*
Given a "libname.map" file on standard input and a list or directory
@@ -129,7 +129,7 @@ int main (int argc, char** argv) {
char static buffer[BUFSIZE],*bufferPtr,workbuf[256];
char *ptr,*p,**pp,**pp1,**pp2,*directory=0,*libpath=0;
char **rargv;
char libname[128];
char *libname=0;
int i,optl=0,optm=0,swapping,c,rargc;
FILE *fp;
@@ -576,10 +576,21 @@ int main (int argc, char** argv) {
}
else if (optm)
{
/* Write out full library list... */
/* create tmp. string libname */
int libname_usable_size=24;
if ( ! libname ) libname=malloc(libname_usable_size+16);
/* Write out full library list... */
for(libmapPtr=libmap;libmapPtr;libmapPtr=libmapPtr->next)
{
if ( strlen(libpath)+strlen(libmapPtr->lib) > libname_usable_size ) {
libname_usable_size=(strlen(libpath)+strlen(libmapPtr->lib))*2;
free(libname);
libname=malloc(libname_usable_size+16);
}
/* Check existance of libraries and print out only installed ones */
sprintf(libname, "%s/lib%s.a", libpath, libmapPtr->lib);
if (access(libname,R_OK))
{
+1 -1
View File
@@ -1,4 +1,4 @@
# $Id: moc.gmk,v 1.3 2008/12/03 13:35:36 gcosmo Exp $
# $Id: moc.gmk,v 1.3 2008-12-03 13:35:36 gcosmo Exp $
# ----------------------------------------------------------------
# Common part of GNUmakefile for libraries. John Allison, 5/7/95.
# ----------------------------------------------------------------
-25
View File
@@ -1,25 +0,0 @@
# $Id: GNUmakefile,v 1.8 2003/10/02 17:57:10 stesting Exp $
# --------------------------------------------------------------
# GNUmakefile for tests module. Gabriele Cosmo, 27/06/98.
# --------------------------------------------------------------
name := Marker
G4TARGET := $(name)
G4EXLIB := true
ifndef G4INSTALL
G4INSTALL = ../..
endif
.PHONY: all
all: lib bin
include $(G4INSTALL)/config/scripts/binmake.gmk
CXXFLAGS_FINAL := $(CXXFLAGS)
INCFLAGS_FINAL := $(INCFLAGS)
LDLIBS_FINAL := $(LDLIBS)
LDLIB3_FINAL := $(LDLIBS3)
LDLIB4_FINAL := $(LDLIBS4)
#LDFLAGS_FINAL := $(LDFLAGS)
-368
View File
@@ -1,368 +0,0 @@
# $Id: binmake.gmk,v 1.11 2003/12/12 10:07:56 stesting Exp $
# ----------------------------------------------------------
# Script defining rules and paths for making binaries.
# First implementation: Gabriele Cosmo, 25/06/1998.
# ----------------------------------------------------------
ifndef LDFLAGS
include $(G4INSTALL)/config/architecture.gmk
endif
G4LIBDIR := $(G4LIB)/$(G4SYSTEM)
# Define variable checking for existence of centrally installed headers.
# If check will be true, avoid explicit definition of paths to INCFLAGS.
#
G4INCLUDE_EXEC := $(shell [ -r $(G4INCLUDE)/globals.hh ] && echo 1)
include $(G4INSTALL)/config/G4UI_USE.gmk
include $(G4INSTALL)/config/G4VIS_USE.gmk
include $(G4INSTALL)/config/interactivity.gmk
include $(G4INSTALL)/config/analysis.gmk
ifndef G4LIB_USE_GRANULAR
GLOBALLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4global.a && echo yes)
ifndef GLOBALLIBS
GLOBALLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4global.$(SHEXT) && echo yes)
SHAREDLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4global.$(SHEXT) && echo yes)
endif
endif
ifndef SHAREDLIBS
SHAREDLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4globman.$(SHEXT) && echo yes)
endif
ifndef INCFLAGS
ifeq ($(G4INCLUDE_EXEC),1)
INCFLAGS := -I$(G4INCLUDE)
else
INCFLAGS := \
-I$(G4BASE)/global/management/include \
-I$(G4BASE)/global/HEPRandom/include \
-I$(G4BASE)/global/HEPGeometry/include \
-I$(G4BASE)/global/HEPNumerics/include \
-I$(G4BASE)/run/include \
-I$(G4BASE)/materials/include \
-I$(G4BASE)/parameterisations/include \
-I$(G4BASE)/particles/management/include \
-I$(G4BASE)/particles/bosons/include \
-I$(G4BASE)/particles/leptons/include \
-I$(G4BASE)/particles/hadrons/barions/include \
-I$(G4BASE)/particles/hadrons/ions/include \
-I$(G4BASE)/particles/hadrons/mesons/include \
-I$(G4BASE)/particles/shortlived/include \
-I$(G4BASE)/processes/management/include \
-I$(G4BASE)/processes/cuts/include \
-I$(G4BASE)/processes/decay/include \
-I$(G4BASE)/processes/optical/include \
-I$(G4BASE)/processes/transportation/include \
-I$(G4BASE)/processes/parameterisation/include \
-I$(G4BASE)/processes/electromagnetic/standard/include \
-I$(G4BASE)/processes/electromagnetic/muons/include \
-I$(G4BASE)/processes/electromagnetic/utils/include \
-I$(G4BASE)/processes/electromagnetic/xrays/include \
-I$(G4BASE)/processes/electromagnetic/lowenergy/include \
-I$(G4BASE)/processes/hadronic/cross_sections/include \
-I$(G4BASE)/processes/hadronic/management/include \
-I$(G4BASE)/processes/hadronic/models/cascade/cascade/include \
-I$(G4BASE)/processes/hadronic/models/cascade/evaporation/include \
-I$(G4BASE)/processes/hadronic/models/cascade/utils/include \
-I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/body/include \
-I$(G4BASE)/processes/hadronic/models/chiral_inv_phase_space/interface/include \
-I$(G4BASE)/processes/hadronic/models/coherent_elastic/include \
-I$(G4BASE)/processes/hadronic/models/high_energy/include \
-I$(G4BASE)/processes/hadronic/models/isotope_production/include \
-I$(G4BASE)/processes/hadronic/models/leading_particle/include \
-I$(G4BASE)/processes/hadronic/models/low_energy/include \
-I$(G4BASE)/processes/hadronic/models/neutron_hp/include \
-I$(G4BASE)/processes/hadronic/models/binary_cascade/include \
-I$(G4BASE)/processes/hadronic/models/de_excitation/evaporation/include \
-I$(G4BASE)/processes/hadronic/models/de_excitation/fermi_breakup/include \
-I$(G4BASE)/processes/hadronic/models/de_excitation/fission/include \
-I$(G4BASE)/processes/hadronic/models/de_excitation/gem_evaporation/include \
-I$(G4BASE)/processes/hadronic/models/de_excitation/handler/include \
-I$(G4BASE)/processes/hadronic/models/de_excitation/management/include \
-I$(G4BASE)/processes/hadronic/models/de_excitation/multifragmentation/include \
-I$(G4BASE)/processes/hadronic/models/de_excitation/photon_evaporation/include \
-I$(G4BASE)/processes/hadronic/models/de_excitation/util/include \
-I$(G4BASE)/processes/hadronic/models/inucl/include \
-I$(G4BASE)/processes/hadronic/models/photolepton_hadron/muon_nuclear/include \
-I$(G4BASE)/processes/hadronic/models/pre_equilibrium/exciton_model/include \
-I$(G4BASE)/processes/hadronic/models/quark_molecular_dynamics/body/include \
-I$(G4BASE)/processes/hadronic/models/quark_molecular_dynamics/util/include \
-I$(G4BASE)/processes/hadronic/models/relativistic_qmd/include \
-I$(G4BASE)/processes/hadronic/models/relativistic_qmd/uplusplus/include \
-I$(G4BASE)/processes/hadronic/models/im_r_matrix/include \
-I$(G4BASE)/processes/hadronic/models/management/include \
-I$(G4BASE)/processes/hadronic/models/parton_string/diffraction/include \
-I$(G4BASE)/processes/hadronic/models/parton_string/hadronization/include \
-I$(G4BASE)/processes/hadronic/models/parton_string/management/include \
-I$(G4BASE)/processes/hadronic/models/parton_string/qgsm/include \
-I$(G4BASE)/processes/hadronic/models/theo_high_energy/include \
-I$(G4BASE)/processes/hadronic/models/util/include \
-I$(G4BASE)/processes/hadronic/models/general_finalstate/include \
-I$(G4BASE)/processes/hadronic/models/radioactive_decay/include \
-I$(G4BASE)/processes/hadronic/processes/include \
-I$(G4BASE)/processes/hadronic/stopping/include \
-I$(G4BASE)/processes/hadronic/util/include \
-I$(G4BASE)/geometry/management/include \
-I$(G4BASE)/geometry/solids/CSG/include \
-I$(G4BASE)/geometry/solids/specific/include \
-I$(G4BASE)/geometry/solids/BREPS/include \
-I$(G4BASE)/geometry/solids/Boolean/include \
-I$(G4BASE)/geometry/divisions/include \
-I$(G4BASE)/geometry/volumes/include \
-I$(G4BASE)/geometry/navigation/include \
-I$(G4BASE)/geometry/magneticfield/include \
-I$(G4BASE)/geometry/biasing/include \
-I$(G4BASE)/track/include \
-I$(G4BASE)/tracking/include \
-I$(G4BASE)/digits_hits/detector/include \
-I$(G4BASE)/digits_hits/hits/include \
-I$(G4BASE)/digits_hits/digits/include \
-I$(G4BASE)/persistency/include \
-I$(G4BASE)/readout/include \
-I$(G4BASE)/event/include \
-I$(G4BASE)/graphics_reps/include \
-I$(G4BASE)/intercoms/include
ifdef G4USE_G3TOG4
INCFLAGS += -I$(G4BASE)/g3tog4/include
endif
endif
endif
CPPFLAGS_FINAL := $(CPPFLAGS)
CPPFLAGS += $(INCFLAGS)
LDFLAGS += -L$(G4LIBDIR)
G4TMPDIR := $(G4TMP)/$(G4SYSTEM)/$(G4TARGET)
G4BINDIR := $(G4BIN)/$(G4SYSTEM)
LDFLAGS_FINAL := $(LDFLAGS)
ifdef G4EXLIB
G4LIBDIR := $(G4TMPDIR)
LDFLAGS += -L$(G4LIBDIR)
ifdef SHAREDLIBS
ifdef G4RUNPATHOPTION
# For the example dependent directory, keep the
# path to the shared lib in the executable.
LDFLAGS += $(G4RUNPATHOPTION)$(G4LIBDIR)
endif
endif
include $(G4INSTALL)/config/common.gmk
endif
ifdef LDLIBS
USER_DEFINED_LDLIBS := 1
endif
# Because of the script for granular libraries which replaces part of LDLIBS
# and because of the way user defined LDLIBS was augmented historically I
# have split LDLIBS into 4 parts...
#
ifndef USER_DEFINED_LDLIBS
# LDLIBS1 contains the very high level libraries...
#
ifdef G4EXLIB
LDLIBS1 := -l$(G4TARGET)
endif
LDLIBS1 += $(EXTRALIBS)
# VISLIBS and UILIBS are now handled by the granular library script...
#
ifdef GLOBALLIBS
LDLIBS1 += $(VISLIBS) $(UILIBS) -lG4persistency
ifdef G4USE_G3TOG4
LDLIBS1 += -lG3toG4
endif
LDLIBS2 := -lG4readout \
-lG4run \
-lG4event \
-lG4tracking \
-lG4parmodels \
-lG4processes \
-lG4digits_hits \
-lG4track \
-lG4particles \
-lG4geometry \
-lG4materials \
-lG4graphics_reps \
-lG4intercoms \
-lG4global
else
# The next lines specifically should read LDLIBS2 = , not LDLIBS2 :=, so
# that it is not expanded until the directory G4TMPDIR is created.
ifeq ($(G4INCLUDE_EXEC),1)
LDLIBS2 = $(shell \
G4TMP=$(G4TMP); export G4TMP; \
if [ \( -f $(G4LIB)/$(G4SYSTEM)/liblist \
-a -f $(G4LIB)/$(G4SYSTEM)/libname.map \) ]; then \
$(G4LIB)/$(G4SYSTEM)/liblist \
-m $(G4LIB)/$(G4SYSTEM) \
< $(G4LIB)/$(G4SYSTEM)/libname.map; fi)
else
LDLIBS2 = $(shell \
G4TMP=$(G4TMP); export G4TMP; \
if [ \( -f $(G4LIB)/$(G4SYSTEM)/liblist \
-a -f $(G4LIB)/$(G4SYSTEM)/libname.map \) ]; then \
$(G4LIB)/$(G4SYSTEM)/liblist \
-d $(G4TMPDIR) \
< $(G4LIB)/$(G4SYSTEM)/libname.map; fi)
# Warning: do not add to LDLIBS2 with += because this causes it to be
# expanded too soon. Hence extra libraries must have a different name...
# Extra libraries to resolve remaining circular dependencies...
# LDLIBS2EXTRA =
endif
endif
# LDLIBS3 contains the first set of low level libraries...
#
LDLIBS3 += $(INTYLIBS)
LDLIBS3 += $(ANALYSISLIBS)
endif # ifndef USER_DEFINED_LDLIBS
# LDLIBS4 contains the next set of low level libraries which historically
# (why?) the user is not supposed to be able to define...
#
LDLIBS4 += $(LOADLIBS)
# Finally assemble libraries...
#
ifdef USER_DEFINED_LDLIBS
LDLIBS_PREFINAL := $(LDLIBS)
else
# Again, do not use := or +=. See note on LDLIBS2 above.
LDLIBS_PREFINAL = $(LDLIBS1) $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3)
endif
LDLIBS_PREFINAL += $(LDLIBS4)
ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
WIN32TMP := $(patsubst -L%,$(LIB_PATH)%,$(LDFLAGS))
LDFLAGS = $(patsubst /,$(PATH_DEL),$(WIN32TMP))
LDLIBS = $(patsubst -l%,lib%.a,$(LDLIBS_PREFINAL))
else
LDLIBS = $(LDLIBS_PREFINAL)
endif
ifdef transform-RPath
#invoke system specific transformation of
include $(G4INSTALL)/config/sys/$(G4SYSTEM)-runpath.gmk
endif
sources := $(wildcard $(G4TARGET).cc)
objects := $(patsubst %.cc,$(G4TMPDIR)/exe/%.o,$(sources))
dependencies := $(patsubst %.cc,$(G4TMPDIR)/exe/%.d,$(sources))
LINK_DEPENDENCIES := $(G4TMPDIR)/exe/obj.last $(EXTRA_LINK_DEPENDENCIES)
.PHONY: bin clean clean_bin debug
# Make $(G4TARGET) executable.
bin: $(G4BINDIR)/$(G4TARGET)
$(G4BINDIR)/$(G4TARGET): $(LINK_DEPENDENCIES)
ifndef USER_DEFINED_LDLIBS
ifndef GLOBALLIBS
@echo "Using granular libraries ..."
@if [ ! \( -f $(G4LIB)/$(G4SYSTEM)/liblist \
-a -f $(G4LIB)/$(G4SYSTEM)/libname.map \) ]; then \
echo "ERROR: No liblist program or library map file."; \
echo " These are needed for building with granular"; \
echo " libraries."; \
echo ' cd $$G4INSTALL/source'; \
echo " gmake"; \
echo " or if you are sure you have already made all the"; \
echo " granular libraries:"; \
echo " gmake libmap"; \
exit 1; fi
else
@echo "Using global libraries."
endif
endif
@if [ ! -d $(G4BINDIR) ] ; then mkdir $(G4BINDIR) ;fi
ifdef CPPVERBOSE
$(CXX) $(CXXFLAGS) $(CPPFLAGS) \
-o $(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \
$(LDLIBS)
else
@echo Linking $(G4TARGET) ...
@$(CXX) $(CXXFLAGS) $(CPPFLAGS) \
-o $(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \
$(LDLIBS)
endif
# Touch the versioning file
ifdef G4EXLIB
$(G4TMPDIR)/exe/obj.last: lib $(objects)
else
$(G4TMPDIR)/exe/obj.last: $(objects)
endif
@touch $@
# Make the $(G4TARGET).o file.
$(G4TMPDIR)/exe/$(G4TARGET).o : $(G4TARGET).cc
ifdef CPPVERBOSE
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(APPFLAGS) \
-c $(OUT_OBJ)$(G4TMPDIR)/exe/$(G4TARGET).o $(G4TARGET).cc
else
@echo Compiling $(G4TARGET).cc ...
@$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(APPFLAGS) \
-c $(OUT_OBJ)$(G4TMPDIR)/exe/$(G4TARGET).o $(G4TARGET).cc
endif
GPPFLAGS := "-M"
# Make the $(G4TARGET).d file and include it.
# The ideas for this come from the GNU Make Manual, Section 4.12,
# Generating Prerequisites Automatically. The g++ compiler has an
# option -M or -MM to write to standard output a list of dependencies
# based on the #include statements. The "sed" adds the dependency
# file itself as a second target. The result is a mini-makefile which
# specifies the .o and .d files as targets which depend on all the
# files found through the #include statements. This file is then
# included, causing GNU Make to honour these dependencies.
# The "set -e" causes the shell to exit with an error when the "g++"
# fails (otherwise it would only notice the last command in the
# pipeline, namely "sed"). GNU Make notices the error and exits
# sooner than it otherwise would (still not as soon as I expect,
# though!). Even then, an empty file is made, so "[ -s $@ ] || rm -f
# $@" removes it ([ -s filename ] gives zero exit code only if file
# exists and has a size greater than zero). This avoids making
# corrupt .d files which would play havoc with your next build.
$(G4TMPDIR)/exe/$(G4TARGET).d: $(G4TARGET).cc
@if [ ! -d $(G4TMP)/$(G4SYSTEM) ] ; then mkdir $(G4TMP)/$(G4SYSTEM) ;fi
@if [ ! -d $(G4TMPDIR) ] ; then mkdir $(G4TMPDIR) ;fi
@if [ ! -d $(G4TMPDIR)/exe ] ; then mkdir $(G4TMPDIR)/exe ;fi
@echo Making dependency for file $<...
@set -e;\
g++ $(GPPFLAGS) $(CPPFLAGS) -w $< |\
sed 's!$(G4TARGET)\.o!$(G4TMPDIR)/exe/& $@!' >$@;\
[ -s $@ ] || rm -f $@
ifneq ($(dependencies),)
-include $(dependencies)
endif
clean:
@echo Cleaning up ...
@rm -f ./core
@rm -rf $(G4TMPDIR)
@rm -f $(G4LIBDIR)/lib$(G4TARGET).a
@rm -f $(G4BINDIR)/$(G4TARGET)
ifdef CFRONT
@rm -rf $(G4TREP)/exec
endif
clean_bin:
@echo Removing application $(G4TARGET) ...
@rm -f ./core
@rm -f $(G4BINDIR)/$(G4TARGET)
-673
View File
@@ -1,673 +0,0 @@
case $CONFIG in
'')
if test -f config.sh; then TOP=.;
elif test -f ../config.sh; then TOP=..;
elif test -f ../../config.sh; then TOP=../..;
elif test -f ../../../config.sh; then TOP=../../..;
elif test -f ../../../../config.sh; then TOP=../../../..;
else
echo "Can't find config.sh."; exit 1
fi
. $TOP/config.sh
;;
esac
: This forces SH files to create target in same directory as SH file.
: This is so that make depend always knows where to find SH derivatives.
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
#echo "Extracting env.csh (with variable substitutions)"
: This section of the file will have variable substitutions done on it.
: Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
: Protect any dollar signs and backticks that you do not want interpreted
: by putting a backslash in front. You may delete these comments.
$spitshell >env.csh <<!GROK!THIS!
######################################
#
# Clean all G4 envs
unsetenv CLHEP_BASE_DIR
unsetenv CLHEP_INCLUDE_DIR
unsetenv CLHEP_LIB
unsetenv CLHEP_LIB_DIR
unsetenv G4DEBUG
unsetenv G4INCLUDE
unsetenv G4INSTALL
unsetenv G4LEDATA
unsetenv G4LEVELGAMMADATA
unsetenv G4NEUTRONHPDATA
unsetenv G4RADIOACTIVEDATA
unsetenv G4ABLADATA
unsetenv G4REALSURFACEDATA
unsetenv G4NEUTRONXSDATA
unsetenv G4PIIDATA
unsetenv G4LIB
unsetenv G4LIB_BUILD_G3TOG4
unsetenv G4LIB_BUILD_SHARED
unsetenv G4LIB_BUILD_STATIC
unsetenv G4LIB_BUILD_ZLIB
unsetenv G4LIB_BUILD_GDML
unsetenv G4LIB_USE_G3TOG4
unsetenv G4LIB_USE_GRANULAR
unsetenv G4LIB_USE_ZLIB
unsetenv G4SYSTEM
unsetenv G4UI_NONE
unsetenv G4UI_BUILD_WIN32_SESSION
unsetenv G4UI_BUILD_XAW_SESSION
unsetenv G4UI_BUILD_XM_SESSION
unsetenv G4UI_USE_TCSH
unsetenv G4UI_USE_WIN32
unsetenv G4UI_USE_XAW
unsetenv G4UI_USE_XM
unsetenv G4UI_USE_QT
unsetenv G4VIS_NONE
unsetenv G4VIS_BUILD_DAWN_DRIVER
unsetenv G4VIS_BUILD_OIWIN32_DRIVER
unsetenv G4VIS_BUILD_OIX_DRIVER
unsetenv G4VIS_BUILD_OPENGLWIN32_DRIVER
unsetenv G4VIS_BUILD_OPENGLXM_DRIVER
unsetenv G4VIS_BUILD_OPENGLX_DRIVER
unsetenv G4VIS_BUILD_RAYTRACERX_DRIVER
unsetenv G4VIS_BUILD_VRML_DRIVER
unsetenv G4VIS_BUILD_OPENGLQT_DRIVER
unsetenv G4VIS_USE_DAWN
unsetenv G4VIS_USE_OIWIN32
unsetenv G4VIS_USE_OIX
unsetenv G4VIS_USE_OPENGLWIN32
unsetenv G4VIS_USE_OPENGLX
unsetenv G4VIS_USE_OPENGLXM
unsetenv G4VIS_USE_RAYTRACERX
unsetenv G4VIS_USE_VRML
unsetenv G4VIS_USE_OPENGLQT
######################################
#
# g4system.U
#
#+
setenv G4SYSTEM "$g4system"
echo "On this machine the G4SYSTEM=\$G4SYSTEM"
#
# g4dirs.U
#
#+
if ( X$g4install != X$g4final_install ) then
setenv G4INSTALL "$g4final_install/src/geant4"
echo "On this machine the G4INSTALL=\$G4INSTALL"
else
setenv G4INSTALL "$g4install"
echo "On this machine the G4INSTALL=\$G4INSTALL"
endif
#+
if ( X$g4includes_flag != Xn ) then
if ( X$g4install != X$g4final_install ) then
setenv G4INCLUDE "$g4final_install/include/geant4"
else
setenv G4INCLUDE "$g4final_install/include"
endif
echo "On this machine the G4INCLUDE=\$G4INCLUDE"
endif
#+
if ( X$g4lib != X ) then
if ( X$g4install != X$g4final_install ) then
setenv G4LIB "$g4final_install/lib/geant4"
else
setenv G4LIB "$g4final_install/lib"
endif
echo "On this machine the G4LIB=\$G4LIB"
endif
#+
if ( X$g4levelgammadata != X ) then
setenv G4LEVELGAMMADATA "$g4levelgammadata"
echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
endif
#+
if ( X$g4radioactivedata != X ) then
setenv G4RADIOACTIVEDATA "$g4radioactivedata"
echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
endif
#+
if ( X$g4ledata != X ) then
setenv G4LEDATA "$g4ledata"
echo "On this machine the G4LEDATA=\$G4LEDATA"
endif
#+
if ( X$g4neutronhpcrosssections != X ) then
setenv G4NEUTRONHPDATA "$g4neutronhpcrosssections"
echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
endif
#+
if ( X$g4abladata != X ) then
setenv G4ABLADATA "$g4abladata"
echo "On this machine the G4ABLADATA=\$G4ABLADATA"
endif
#+
if ( X$g4realsurfacedata != X ) then
setenv G4REALSURFACEDATA "$g4realsurfacedata"
echo "On this machine the G4REALSURFACEDATA=\$G4REALSURFACEDATA"
endif
#+
if ( X$g4neutronxsdata != X ) then
setenv G4NEUTRONXSDATA "$g4neutronxsdata"
echo "On this machine the G4NEUTRONXSDATA=\$G4NEUTRONXSDATA"
endif
#+
if ( X$g4piidata != X ) then
setenv G4PIIDATA "$g4piidata"
echo "On this machine the G4PIIDATA=\$G4PIIDATA"
endif
#
# g4clhep.U
#
if ( X$g4clhep_base_dir != X ) then
setenv CLHEP_BASE_DIR "$g4clhep_base_dir"
echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
endif
#+
if ( X$g4clhep_include_dir != X ) then
setenv CLHEP_INCLUDE_DIR "$g4clhep_include_dir"
echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
endif
#+
if ( X$g4clhep_lib_dir != X ) then
setenv CLHEP_LIB_DIR "$g4clhep_lib_dir"
echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
endif
#+
if ( X$g4clhep_lib != X ) then
setenv CLHEP_LIB "$g4clhep_lib"
echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
endif
#+
#
# g4debug
#
if ( X$g4debug == Xy ) then
setenv G4DEBUG 1
echo "On this machine the G4DEBUG=\$G4DEBUG"
endif
#
# g4ui
#
#+
if ( X$g4ui_none == Xy ) then
setenv G4UI_NONE 1
echo "On this machine G4UI_NONE is set, so no user interfaces are available"
endif
# Check for Windows!
if ( "X\$G4SYSTEM" != "XWIN32-VC" && "X\$G4SYSTEM" != "XWIN32-VC7" ) then
if ( X$g4ui_none != Xy ) then
setenv G4UI_USE_TCSH 1
echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"
endif
endif
#+
if ( X$g4ui_build_xaw_session == Xy ) then
setenv G4UI_BUILD_XAW_SESSION 1
echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION"
endif
#+
if ( X$g4ui_use_xaw == Xy ) then
setenv G4UI_USE_XAW 1
echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW"
endif
#+
if ( X$g4ui_build_xm_session == Xy ) then
setenv G4UI_BUILD_XM_SESSION 1
echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
endif
#+
if ( X$g4ui_use_xm == Xy ) then
setenv G4UI_USE_XM 1
echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
endif
#+
if ( X$g4ui_build_win32_session == Xy ) then
setenv G4UI_BUILD_WIN32_SESSION 1
echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
endif
#+
if ( X$g4ui_use_win32 == Xy ) then
setenv G4UI_USE_WIN32 1
echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
endif
#+
if ( X$g4ui_build_qt_session == Xy ) then
setenv G4UI_BUILD_QT_SESSION 1
echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
endif
#+
if ( X$g4ui_use_qt == Xy ) then
setenv G4UI_USE_QT 1
echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
endif
#
# g4vis
#
#+
if ( X$g4vis_none == Xy ) then
setenv G4VIS_NONE 1
echo "On this machine G4VIS_NONE is set, so no vis drivers are available"
endif
#+
if ( X$g4vis_build_dawn_driver == Xy ) then
setenv G4VIS_BUILD_DAWN_DRIVER 1
echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
endif
#+
if ( X$g4vis_build_openglx_driver == Xy ) then
setenv G4VIS_BUILD_OPENGLX_DRIVER 1
echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
endif
#+
if ( X$g4vis_build_openglxm_driver == Xy ) then
setenv G4VIS_BUILD_OPENGLXM_DRIVER 1
echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
endif
#+
if ( X$g4vis_build_openglwin32_driver == Xy ) then
setenv G4VIS_BUILD_OPENGLWIN32_DRIVER 1
echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
endif
#+
if ( X$g4vis_build_oix_driver == Xy ) then
setenv G4VIS_BUILD_OIX_DRIVER 1
echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
endif
#+
if ( X$g4vis_build_raytracerx_driver == Xy ) then
setenv G4VIS_BUILD_RAYTRACERX_DRIVER 1
echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER"
endif
#+
if ( X$g4vis_build_oiwin32_driver == Xy ) then
setenv G4VIS_BUILD_OIWIN32_DRIVER 1
echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
endif
#+
if ( X$g4vis_build_vrml_driver == Xy ) then
setenv G4VIS_BUILD_VRML_DRIVER 1
echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
endif
#+
if ( X$g4vis_build_openglqt_driver == Xy ) then
setenv G4VIS_BUILD_OPENGLQT_DRIVER 1
echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
endif
#+
if ( X$g4vis_use_dawn == Xy ) then
setenv G4VIS_USE_DAWN 1
echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
endif
#+
if ( X$g4vis_use_openglx == Xy ) then
setenv G4VIS_USE_OPENGLX 1
echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
endif
#+
if ( X$g4vis_use_openglxm == Xy ) then
setenv G4VIS_USE_OPENGLXM 1
echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
endif
#+
if ( X$g4vis_use_openglwin32 == Xy ) then
setenv G4VIS_USE_OPENGLWIN32 1
echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
endif
#+
if ( X$g4vis_use_oix == Xy ) then
setenv G4VIS_USE_OIX 1
echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
endif
#+
if ( X$g4vis_use_raytracerx == Xy ) then
setenv G4VIS_USE_RAYTRACERX 1
echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX"
endif
#+
if ( X$g4vis_use_oiwin32 == Xy ) then
setenv G4VIS_USE_OIWIN32 1
echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
endif
#+
if ( X$g4vis_use_vrml == Xy ) then
setenv G4VIS_USE_VRML 1
echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
endif
#+
if ( X$g4vis_use_openglqt == Xy ) then
setenv G4VIS_USE_OPENGLQT 1
echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
endif
#+
if ( X$g4vis_oglhome != X ) then
setenv OGLHOME "$g4vis_oglhome"
echo "On this machine the OGLHOME=\$OGLHOME"
endif
#+
if ( X$g4vis_oivhome != X ) then
setenv OIVHOME "$g4vis_oivhome"
echo "On this machine the OIVHOME=\$OIVHOME"
endif
#+
if ( X$g4vis_build_openglxm_driver != X ) then
setenv XMFLAGS "$g4vis_xmflags"
echo "On this machine the XMFLAGS=\$XMFLAGS"
endif
#+
if ( X$g4vis_build_openglxm_driver != X ) then
setenv XMLIBS "$g4vis_xmlibs"
echo "On this machine the XMLIBS=\$XMLIBS"
endif
#+
if ( X$g4ui_build_xm_session != X ) then
setenv XMFLAGS "$g4vis_xmflags"
echo "On this machine the XMFLAGS=\$XMFLAGS"
endif
#+
if ( X$g4ui_build_xm_session != X ) then
setenv XMLIBS "$g4vis_xmlibs"
echo "On this machine the XMLIBS=\$XMLIBS"
endif
#+
if ( X$g4ui_build_xaw_session != X ) then
setenv XAWFLAGS "$g4ui_xawflags"
echo "On this machine the XAWFLAGS=\$XAWFLAGS"
endif
#+
if ( X$g4ui_build_xaw_session != X ) then
setenv XAWLIBS "$g4ui_xawlibs"
echo "On this machine the XAWLIBS=\$XAWLIBS"
endif
#
# Qt Flags and Libs, messy, but needed for backward compatibility
#+
if ( "X$g4ui_build_qt_session" == "Xy" || "X$g4ui_use_qt" == "Xy" ) then
setenv QTFLAGS "$g4_qt_cxxflags"
setenv QTLIBS "$g4_qt_libs"
setenv QTMOC "$g4_qt_moc"
echo "On this machine the QTFLAGS=\$QTFLAGS"
echo "On this machine the QTLIBS=\$QTLIBS"
echo "On this machine the QTMOC=\$QTMOC"
endif
if ( "X$g4vis_build_openglqt_driver" == "Xy" || "X$g4vis_build_openglqt_driver" == "Xy" ) then
if ( "X\$QTFLAGS" == "X" ) then
setenv QTFLAGS "$g4_qt_cxxflags $g4_qt_gl_cxxflags"
else
setenv QTFLAGS "\$QTFLAGS $g4_qt_gl_cxxflags"
endif
if ( "X\$QTMOC" == "X" ) then
setenv QTMOC "$g4_qt_moc"
endif
setenv GLQTLIBS "$g4_qt_libs $g4_qt_gl_libs"
echo "On this machine the QTFLAGS=\$QTFLAGS"
echo "On this machine the GLQTLIBS=\$GLQTLIBS"
echo "On this machine the QTMOC=\$QTMOC"
endif
#
# Use GDML module
#
#+
if ( X$g4lib_build_gdml == Xy ) then
setenv G4LIB_BUILD_GDML 1
echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
endif
if ( X$g4lib_build_gdml == Xy ) then
setenv XERCESCROOT "$g4gdml_xercesc_root"
echo "On this machine the XERCESCROOT=\$XERCESCROOT"
endif
#
# Use G3TOG4 module
#
#+
if ( X$g4wlib_build_g3tog4 == Xy ) then
setenv G4LIB_BUILD_G3TOG4 1
echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
endif
if ( X$g4w_use_g3tog4 == Xy ) then
setenv G4LIB_USE_G3TOG4 1
echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
endif
#
# Use ZLIB module
#
#+
if ( X$g4wlib_build_zlib == Xy ) then
setenv G4LIB_BUILD_ZLIB 1
echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
endif
if ( X$g4w_use_ZLIB == Xy ) then
setenv G4LIB_USE_ZLIB 1
echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
endif
#+
#
# g4shared
#
if ( X$g4lib_build_shared == Xy ) then
setenv G4LIB_BUILD_SHARED 1
echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
endif
if ( X$g4lib_build_static == Xy ) then
setenv G4LIB_BUILD_STATIC 1
echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
endif
#+
#
# g4granular
#
if ( X$g4lib_use_granular == Xy ) then
setenv G4LIB_USE_GRANULAR 1
echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
endif
#####################################################################
!GROK!THIS!
: In the following dollars and backticks do not need the extra backslash.
$spitshell >>env.csh <<'!NO!SUBS!'
#+
#
# G4WORKDIR
#
if ( ${?G4WORKDIR} ) then
echo "In your environment you have the G4WORKDIR=$G4WORKDIR"
else
# Check for Windows!
if ( "X$G4SYSTEM" == "XWIN32-VC" || "X$G4SYSTEM" == "XWIN32-VC7" ) then
echo "G4WORKDIR will be set to c:/geant4 (in "native" Windows syntax)."
setenv G4WORKDIR "c:/geant4"
else # if Unix
echo "G4WORKDIR will be set to HOME/geant4=$HOME/geant4"
setenv G4WORKDIR $HOME/geant4
endif
endif
#
# *NIX Shared Libraries
# If we built Geant4 with shared libraries, we need to add the Gean4
# library directory to (DY)LD_LIBRARY_PATH.
# In all cases, external shared library directories should be added to
# (DY)LD_LIBRARY_PATH
if ( "X$G4SYSTEM" != "XDarwin-g++" ) then
if ( ${?LD_LIBRARY_PATH} ) then
if ( ${?G4LIB_BUILD_SHARED} ) then
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
endif
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
if ( ${?G4LIB_BUILD_GDML} ) then
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
endif
else
if ( ${?G4LIB_BUILD_SHARED} ) then
setenv LD_LIBRARY_PATH ${G4LIB}/${G4SYSTEM}
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
else
setenv LD_LIBRARY_PATH ${CLHEP_LIB_DIR}
endif
if ( ${?G4LIB_BUILD_GDML} ) then
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
endif
endif
else
#
# Darwin Shared Libraries
# we repeat the above logic, but for DYLD_LIBRARY_PATH
#
if ( ${?DYLD_LIBRARY_PATH} ) then
if ( ${?G4LIB_BUILD_SHARED} ) then
setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
endif
setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
if ( ${?G4LIB_BUILD_GDML} ) then
setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
endif
else
if ( ${?G4LIB_BUILD_SHARED} ) then
setenv DYLD_LIBRARY_PATH ${G4LIB}/${G4SYSTEM}
setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
else
setenv DYLD_LIBRARY_PATH ${CLHEP_LIB_DIR}
endif
if ( ${?G4LIB_BUILD_GDML} ) then
setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
endif
endif
endif
#
# Warning about LD_LIBRARY_PATH
#
echo ''
if ( ${?G4LIB_BUILD_SHARED} ) then
if ( "X$G4SYSTEM" == "XDarwin-g++" ) then
echo 'DYLD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
else
echo 'LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
endif
else
if ( "X$G4SYSTEM" == "XDarwin-g++" ) then
echo 'DYLD_LIBRARY_PATH is set to include CLHEP libraries. '
else
echo 'LD_LIBRARY_PATH is set to include CLHEP libraries. '
endif
endif
echo 'NOTE : you should verify that the correct path for the CLHEP library'
echo ''
echo ${CLHEP_BASE_DIR}/lib
echo ''
echo 'is included in the dynamic library search path ahead of any other'
echo 'installations of CLHEP on your system that may be referenced by this'
echo 'path.'
echo ''
#
# For BIN
#
setenv PATH ${PATH}:${G4WORKDIR}/bin/${G4SYSTEM}
!NO!SUBS!
chmod 755 env.csh
$eunicefix env.csh
-910
View File
@@ -1,910 +0,0 @@
case $CONFIG in
'')
if test -f config.sh; then TOP=.;
elif test -f ../config.sh; then TOP=..;
elif test -f ../../config.sh; then TOP=../..;
elif test -f ../../../config.sh; then TOP=../../..;
elif test -f ../../../../config.sh; then TOP=../../../..;
else
echo "Can't find config.sh."; exit 1
fi
. $TOP/config.sh
;;
esac
: This forces SH files to create target in same directory as SH file.
: This is so that make depend always knows where to find SH derivatives.
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
#echo "Extracting env.sh (with variable substitutions)"
: This section of the file will have variable substitutions done on it.
: Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
: Protect any dollar signs and backticks that you do not want interpreted
: by putting a backslash in front. You may delete these comments.
$spitshell >env.sh <<!GROK!THIS!
######################################
#
# Clean all G4 envs
unset CLHEP_BASE_DIR
unset CLHEP_INCLUDE_DIR
unset CLHEP_LIB
unset CLHEP_LIB_DIR
unset G4DEBUG
unset G4INCLUDE
unset G4INSTALL
unset G4LEDATA
unset G4LEVELGAMMADATA
unset G4NEUTRONHPDATA
unset G4RADIOACTIVEDATA
unset G4ABLADATA
unset G4REALSURFACEDATA
unset G4NEUTRONXSDATA
unset G4PIIDATA
unset G4LIB
unset G4LIB_BUILD_G3TOG4
unset G4LIB_BUILD_SHARED
unset G4LIB_BUILD_STATIC
unset G4LIB_BUILD_ZLIB
unset G4LIB_BUILD_GDML
unset G4LIB_USE_G3TOG4
unset G4LIB_USE_GRANULAR
unset G4LIB_USE_ZLIB
unset G4SYSTEM
unset G4UI_NONE
unset G4UI_BUILD_WIN32_SESSION
unset G4UI_BUILD_XAW_SESSION
unset G4UI_BUILD_XM_SESSION
unset G4UI_USE_TCSH
unset G4UI_USE_WIN32
unset G4UI_USE_XAW
unset G4UI_USE_XM
unset G4UI_USE_QT
unset G4VIS_NONE
unset G4VIS_BUILD_DAWN_DRIVER
unset G4VIS_BUILD_OIWIN32_DRIVER
unset G4VIS_BUILD_OIX_DRIVER
unset G4VIS_BUILD_OPENGLWIN32_DRIVER
unset G4VIS_BUILD_OPENGLXM_DRIVER
unset G4VIS_BUILD_OPENGLX_DRIVER
unset G4VIS_BUILD_RAYTRACERX_DRIVER
unset G4VIS_BUILD_VRML_DRIVER
unset G4VIS_BUILD_OPENGLQT_DRIVER
unset G4VIS_USE_DAWN
unset G4VIS_USE_OIWIN32
unset G4VIS_USE_OIX
unset G4VIS_USE_OPENGLWIN32
unset G4VIS_USE_OPENGLX
unset G4VIS_USE_OPENGLXM
unset G4VIS_USE_RAYTRACERX
unset G4VIS_USE_VRML
unset G4VIS_USE_OPENGLQT
#
# g4system.U
#
#+
G4SYSTEM="$g4system"
export G4SYSTEM
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4SYSTEM=\$G4SYSTEM"
fi
#
# g4dirs.U
#
#+
if [ X$g4install != X$g4final_install ] ; then
G4INSTALL="$g4final_install/src/geant4"
else
G4INSTALL="$g4install"
fi
export G4INSTALL
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4INSTALL=\$G4INSTALL"
fi
#+
if [ X$g4includes_flag != Xn ] ; then
if [ X$g4install != X$g4final_install ] ; then
G4INCLUDE="$g4final_install/include/geant4"
else
G4INCLUDE="$g4install/include/"
fi
export G4INCLUDE
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4INCLUDE=\$G4INCLUDE"
fi
fi
#+
if [ X$g4lib != X ] ; then
if [ X$g4install != X$g4final_install ] ; then
G4LIB="$g4final_install/lib/geant4"
else
G4LIB="$g4install/lib"
fi
export G4LIB
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LIB=\$G4LIB"
fi
fi
#+
if [ X$g4levelgammadata != X ] ; then
G4LEVELGAMMADATA="$g4levelgammadata"
export G4LEVELGAMMADATA
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
fi
fi
#+
if [ X$g4radioactivedata != X ] ; then
G4RADIOACTIVEDATA="$g4radioactivedata"
export G4RADIOACTIVEDATA
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
fi
fi
#+
if [ X$g4ledata != X ] ; then
G4LEDATA="$g4ledata"
export G4LEDATA
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LEDATA=\$G4LEDATA"
fi
fi
#+
if [ X$g4neutronhpcrosssections != X ] ; then
G4NEUTRONHPDATA="$g4neutronhpcrosssections"
export G4NEUTRONHPDATA
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
fi
fi
#+
if [ X$g4abladata != X ] ; then
G4ABLADATA="$g4abladata"
export G4ABLADATA
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4ABLADATA=\$G4ABLADATA"
fi
fi
#+
if [ X$g4realsurfacedata != X ] ; then
G4REALSURFACEDATA="$g4realsurfacedata"
export G4REALSURFACEDATA
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4REALSURFACEDATA=\$G4REALSURFACEDATA"
fi
fi
#+
if [ X$g4neutronxsdata != X ] ; then
G4NEUTRONXSDATA="$g4neutronxsdata"
export G4NEUTRONXSDATA
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4NEUTRONXSDATA=\$G4NEUTRONXSDATA"
fi
fi
#+
if [ X$g4piidata != X ] ; then
G4PIIDATA="$g4piidata"
export G4PIIDATA
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4PIIDATA=\$G4PIIDATA"
fi
fi
#
# g4clhep.U
#
if [ X$g4clhep_base_dir != X ] ; then
CLHEP_BASE_DIR="$g4clhep_base_dir"
export CLHEP_BASE_DIR
if [ X\$g4non_display = X ] ; then
echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
fi
fi
#+
if [ X$g4clhep_include_dir != X ] ; then
CLHEP_INCLUDE_DIR="$g4clhep_include_dir"
export CLHEP_INCLUDE_DIR
if [ X\$g4non_display = X ] ; then
echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
fi
fi
#+
if [ X$g4clhep_lib_dir != X ] ; then
CLHEP_LIB_DIR="$g4clhep_lib_dir"
export CLHEP_LIB_DIR
if [ X\$g4non_display = X ] ; then
echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
fi
fi
#+
if [ X$g4clhep_lib != X ] ; then
CLHEP_LIB="$g4clhep_lib"
export CLHEP_LIB
if [ X\$g4non_display = X ] ; then
echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
fi
fi
#+
#
# g4debug
#
if [ X$g4debug = Xy ] ; then
G4DEBUG=1
export G4DEBUG
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4DEBUG=\$G4DEBUG"
fi
fi
#
# g4ui
#
#+
if [ X$g4ui_none = Xy ] ; then
G4UI_NONE=1
export G4UI_NONE
if [ X\$g4non_display = X ] ; then
echo "On this machine, G4UI_NONE is set, so no user interfaces are available"
fi
fi
# Check for Windows!
if test "X\$G4SYSTEM" != "XWIN32-VC" -a "X\$G4SYSTEM" != "XWIN32-VC7"; then
#+
#
# UI_USE_TCSH for Unix
#
if [ X$g4ui_none != Xy ] ; then
G4UI_USE_TCSH=1
export G4UI_USE_TCSH
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4UI_USE_TCSH=\$G4UI_USE_TCSH"
fi
fi
fi
#+
if [ X$g4ui_build_xaw_session = Xy ] ; then
G4UI_BUILD_XAW_SESSION=1
export G4UI_BUILD_XAW_SESSION
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION"
fi
fi
#+
if [ X$g4ui_use_xaw = Xy ] ; then
G4UI_USE_XAW=1
export G4UI_USE_XAW
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW"
fi
fi
#+
if [ X$g4ui_build_xm_session = Xy ] ; then
G4UI_BUILD_XM_SESSION=1
export G4UI_BUILD_XM_SESSION
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
fi
fi
#+
if [ X$g4ui_use_xm = Xy ] ; then
G4UI_USE_XM=1
export G4UI_USE_XM
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
fi
fi
#+
if [ X$g4ui_build_win32_session = Xy ] ; then
G4UI_BUILD_WIN32_SESSION=1
export G4UI_BUILD_WIN32_SESSION
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
fi
fi
#+
if [ X$g4ui_use_win32 = Xy ] ; then
G4UI_USE_WIN32=1
export G4UI_USE_WIN32
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
fi
fi
#+
if [ X$g4ui_build_qt_session = Xy ] ; then
G4UI_BUILD_QT_SESSION=1
export G4UI_BUILD_QT_SESSION
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
fi
fi
#+
if [ X$g4ui_use_qt = Xy ] ; then
G4UI_USE_QT=1
export G4UI_USE_QT
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
fi
fi
#
# g4vis
#
#+
if [ X$g4vis_none = Xy ] ; then
G4VIS_NONE=1
export G4VIS_NONE
if [ X\$g4non_display = X ] ; then
echo "On this machine G4VIS_NONE is set, so no vis drivers are available"
fi
fi
#+
if [ X$g4vis_build_dawn_driver = Xy ] ; then
G4VIS_BUILD_DAWN_DRIVER=1
export G4VIS_BUILD_DAWN_DRIVER
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
fi
fi
#+
if [ X$g4vis_build_openglx_driver = Xy ] ; then
G4VIS_BUILD_OPENGLX_DRIVER=1
export G4VIS_BUILD_OPENGLX_DRIVER
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
fi
fi
#+
if [ X$g4vis_build_openglxm_driver = Xy ] ; then
G4VIS_BUILD_OPENGLXM_DRIVER=1
export G4VIS_BUILD_OPENGLXM_DRIVER
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
fi
fi
#+
if [ X$g4vis_build_openglwin32_driver = Xy ] ; then
G4VIS_BUILD_OPENGLWIN32_DRIVER=1
export G4VIS_BUILD_OPENGLWIN32_DRIVER
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
fi
fi
#+
if [ X$g4vis_build_oix_driver = Xy ] ; then
G4VIS_BUILD_OIX_DRIVER=1
export G4VIS_BUILD_OIX_DRIVER
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
fi
fi
#+
if [ X$g4vis_build_raytracerx_driver = Xy ] ; then
G4VIS_BUILD_RAYTRACERX_DRIVER=1
export G4VIS_BUILD_RAYTRACERX_DRIVER
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER"
fi
fi
#+
if [ X$g4vis_build_oiwin32_driver = Xy ] ; then
G4VIS_BUILD_OIWIN32_DRIVER=1
export G4VIS_BUILD_OIWIN32_DRIVER
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
fi
fi
#+
if [ X$g4vis_build_vrml_driver = Xy ] ; then
G4VIS_BUILD_VRML_DRIVER=1
export G4VIS_BUILD_VRML_DRIVER
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
fi
fi
#+
if [ X$g4vis_build_openglqt_driver = Xy ] ; then
G4VIS_BUILD_OPENGLQT_DRIVER=1
export G4VIS_BUILD_OPENGLQT_DRIVER
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
fi
fi
#+
if [ X$g4vis_use_dawn = Xy ] ; then
G4VIS_USE_DAWN=1
export G4VIS_USE_DAWN
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
fi
fi
#+
if [ X$g4vis_use_openglx = Xy ] ; then
G4VIS_USE_OPENGLX=1
export G4VIS_USE_OPENGLX
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
fi
fi
#+
if [ X$g4vis_use_openglxm = Xy ] ; then
G4VIS_USE_OPENGLXM=1
export G4VIS_USE_OPENGLXM
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
fi
fi
#+
if [ X$g4vis_use_openglwin32 = Xy ] ; then
G4VIS_USE_OPENGLWIN32=1
export G4VIS_USE_OPENGLWIN32
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
fi
fi
#+
if [ X$g4vis_use_oix = Xy ] ; then
G4VIS_USE_OIX=1
export G4VIS_USE_OIX
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
fi
fi
#+
if [ X$g4vis_use_raytracerx = Xy ] ; then
G4VIS_USE_RAYTRACERX=1
export G4VIS_USE_RAYTRACERX
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX"
fi
fi
#+
if [ X$g4vis_use_oiwin32 = Xy ] ; then
G4VIS_USE_OIWIN32=1
export G4VIS_USE_OIWIN32
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
fi
fi
#+
if [ X$g4vis_use_vrml = Xy ] ; then
G4VIS_USE_VRML=1
export G4VIS_USE_VRML
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
fi
fi
#+
if [ X$g4vis_use_openglqt = Xy ] ; then
G4VIS_USE_OPENGLQT=1
export G4VIS_USE_OPENGLQT
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
fi
fi
#+
if [ X$g4vis_oglhome != X ] ; then
OGLHOME="$g4vis_oglhome"
export OGLHOME
if [ X\$g4non_display = X ] ; then
echo "On this machine the OGLHOME=\$OGLHOME"
fi
fi
#+
if [ X$g4vis_oivhome != X ] ; then
OIVHOME="$g4vis_oivhome"
export OIVHOME
if [ X\$g4non_display = X ] ; then
echo "On this machine the OIVHOME=\$OIVHOME"
fi
fi
#+
if [ X$g4vis_build_openglxm_driver != X ] ; then
XMFLAGS="$g4vis_xmflags"
export XMFLAGS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XMFLAGS=\$XMFLAGS"
fi
fi
#+
if [ X$g4vis_build_openglxm_driver != X ] ; then
XMLIBS="$g4vis_xmlibs"
export XMLIBS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XMLIBS=\$XMLIBS"
fi
fi
#+
if [ X$g4ui_build_xm_session != X ] ; then
XMFLAGS="$g4vis_xmflags"
export XMFLAGS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XMFLAGS=\$XMFLAGS"
fi
fi
#+
if [ X$g4vis_build_xm_session != X ] ; then
XMLIBS="$g4vis_xmlibs"
export XMLIBS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XMLIBS=\$XMLIBS"
fi
fi
#+
if [ X$g4ui_build_xaw_session != X ] ; then
XAWFLAGS="$g4ui_xawflags"
export XAWFLAGS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XAWFLAGS=\$XAWFLAGS"
fi
fi
#+
if [ X$g4ui_build_xaw_session != X ] ; then
XAWLIBS="$g4ui_xawlibs"
export XAWLIBS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XAWLIBS=\$XAWLIBS"
fi
fi
#
# Qt Flags and Libs, messy, but needed for backward compatibility
#+
if [ "X$g4ui_build_qt_session" = "Xy" -o "X$g4ui_use_qt" = "Xy" ] ; then
QTFLAGS="$g4_qt_cxxflags"
QTLIBS="$g4_qt_libs"
QTMOC="$g4_qt_moc"
export QTFLAGS
export QTLIBS
export QTMOC
if test "x\$g4non_display" = "x" ; then
echo "On this machine the QTFLAGS=\$QTFLAGS"
echo "On this machine the QTLIBS=\$QTLIBS"
echo "On this machine the QTMOC=\$QTMOC"
fi
fi
if [ "X$g4vis_build_openglqt_driver" = "Xy" -o "X$g4vis_build_openglqt_driver" = "Xy" ] ; then
if [ "X\$QTFLAGS" = "X" ] ; then
QTFLAGS="$g4_qt_cxxflags $g4_qt_gl_cxxflags"
else
QTFLAGS="\$QTFLAGS $g4_qt_gl_cxxflags"
fi
if [ "X\$QTMOC" = "X" ] ; then
QTMOC="$g4_qt_moc"
fi
GLQTLIBS="$g4_qt_libs $g4_qt_gl_libs"
export QTFLAGS
export QTMOC
export GLQTLIBS
if test "x\$g4non_display" = "x" ; then
echo "On this machine the QTFLAGS=\$QTFLAGS"
echo "On this machine the GLQTLIBS=\$GLQTLIBS"
echo "On this machine the QTMOC=\$QTMOC"
fi
fi
#
# Use GDML module
#
#+
if [ X$g4lib_build_gdml = Xy ] ; then
G4LIB_BUILD_GDML=1
export G4LIB_BUILD_GDML
if test "x\$g4non_display" = "x" ; then
echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
fi
fi
if [ X$g4lib_build_gdml = Xy ] ; then
XERCESCROOT=$g4gdml_xercesc_root
export XERCESCROOT
if test "x\$g4non_display" = "x" ; then
echo "On this machine the XERCESCROOT=\$XERCESCROOT"
fi
fi
#
# Use G3TOG4 module
#
#+
if [ X$g4wlib_build_g3tog4 = Xy ] ; then
G4LIB_BUILD_G3TOG4=1
export G4LIB_BUILD_G3TOG4
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
fi
fi
if [ X$g4w_use_g3tog4 = Xy ] ; then
G4LIB_USE_G3TOG4=1
export G4LIB_USE_G3TOG4
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
fi
fi
#
# Use ZLIB module
#
#+
if [ X$g4wlib_build_zlib = Xy ] ; then
G4LIB_BUILD_ZLIB=1
export G4LIB_BUILD_ZLIB
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
fi
fi
if [ X$g4w_use_zlib = Xy ] ; then
G4LIB_USE_ZLIB=1
export G4LIB_USE_ZLIB
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
fi
fi
#+
#
# g4shared
#
if [ X$g4lib_build_shared = Xy ] ; then
G4LIB_BUILD_SHARED=1
export G4LIB_BUILD_SHARED
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
fi
fi
if [ X$g4lib_build_static = Xy ] ; then
G4LIB_BUILD_STATIC=1
export G4LIB_BUILD_STATIC
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
fi
fi
#+
#
# g4granular
#
if [ X$g4lib_use_granular = Xy ] ; then
G4LIB_USE_GRANULAR=1
export G4LIB_USE_GRANULAR
if [ X\$g4non_display = X ] ; then
echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
fi
fi
#####################################################################
!GROK!THIS!
: In the following dollars and backticks do not need the extra backslash.
$spitshell >>env.sh <<'!NO!SUBS!'
#+
#
# G4WORKDIR
#
if [ $G4WORKDIR ] ; then
if [ X\$g4non_display = X ] ; then
echo "In your environment you have the G4WORKDIR=$G4WORKDIR"
fi
else
# Check for Windows!
if test "X$G4SYSTEM" = "XWIN32-VC" -o "X$G4SYSTEM" = "XWIN32-VC7"; then
if [ X\$g4non_display = X ] ; then
echo "G4WORKDIR will be set to c:/geant4 (in "native" Windows syntax)"
fi
G4WORKDIR="c:/geant4"
export G4WORKDIR
else # if Unix
if [ X\$g4non_display = X ] ; then
echo "G4WORKDIR will be set to HOME/geant4=$HOME/geant4"
fi
G4WORKDIR=$HOME/geant4
export G4WORKDIR
fi # if platforms
fi
#
# *NIX Shared Libraries
# If we built Geant4 with shared libraries, we need to add the Gean4
# library directory to (DY)LD_LIBRARY_PATH.
# In all cases, external shared library directories should be added to
# (DY)LD_LIBRARY_PATH
if test "X$G4SYSTEM" != "XDarwin-g++" ; then
if [ $LD_LIBRARY_PATH ] ; then
if [ $G4LIB_BUILD_SHARED ] ; then
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
fi
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
if [ $G4LIB_BUILD_GDML ] ; then
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
fi
export LD_LIBRARY_PATH
else
if [ $G4LIB_BUILD_SHARED ] ; then
LD_LIBRARY_PATH=${G4LIB}/${G4SYSTEM}
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
else
LD_LIBRARY_PATH=${CLHEP_LIB_DIR}
fi
if [ $G4LIB_BUILD_GDML ] ; then
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XERCESCROOT}/lib
fi
export LD_LIBRARY_PATH
fi
else
#
# Shared libraries for Mac
#
if [ $DYLD_LIBRARY_PATH ] ; then
if [ $G4LIB_BUILD_SHARED ] ; then
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM}
fi
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
if [ $G4LIB_BUILD_GDML ] ; then
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
fi
export DYLD_LIBRARY_PATH
else
if [ $G4LIB_BUILD_SHARED ] ; then
DYLD_LIBRARY_PATH=${G4LIB}/${G4SYSTEM}
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR}
else
DYLD_LIBRARY_PATH=${CLHEP_LIB_DIR}
fi
if [ $G4LIB_BUILD_GDML ] ; then
DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${XERCESCROOT}/lib
fi
export DYLD_LIBRARY_PATH
fi
fi
#
# Warning about LD_LIBRARY_PATH
# NB: ONLY echo if g4non_display not set
if [ $G4LIB_BUILD_SHARED ] ; then
if test "X$G4SYSTEM" = "XDarwin-g++" ; then
if [ X\$g4non_display = X ] ; then
echo 'DYLD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
fi
else
if [ X\$g4non_display = X ] ; then
echo 'LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. '
fi
fi
else
if test "X$G4SYSTEM" = "XDarwin-g++" ; then
if [ X\$g4non_display = X ] ; then
echo 'DYLD_LIBRARY_PATH is set to include CLHEP libraries. '
fi
else
if [ X\$g4non_display = X ] ; then
echo 'LD_LIBRARY_PATH is set to include CLHEP libraries. '
fi
fi
fi
if [ X\$g4non_display = X ] ; then
echo 'NOTE : you should verify that the correct path for the CLHEP library'
echo ''
echo ${CLHEP_BASE_DIR}/lib
echo ''
echo 'is included in the dynamic library search path ahead of any other'
echo 'installations of CLHEP on your system that may be referenced by this'
echo 'path.'
echo ''
fi
#
# For BIN
#
PATH=${PATH}:${G4WORKDIR}/bin/${G4SYSTEM}
export PATH
!NO!SUBS!
chmod 755 env.sh
$eunicefix env.sh
-729
View File
@@ -1,729 +0,0 @@
case $CONFIG in
'')
if test -f config.sh; then TOP=.;
elif test -f ../config.sh; then TOP=..;
elif test -f ../../config.sh; then TOP=../..;
elif test -f ../../../config.sh; then TOP=../../..;
elif test -f ../../../../config.sh; then TOP=../../../..;
else
echo "Can't find config.sh."; exit 1
fi
. $TOP/config.sh
;;
esac
: This forces SH files to create target in same directory as SH file.
: This is so that make depend always knows where to find SH derivatives.
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
#echo "Extracting install.sh (with variable substitutions)"
: This section of the file will have variable substitutions done on it.
: Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
: Protect any dollar signs and backticks that you do not want interpreted
: by putting a backslash in front. You may delete these comments.
$spitshell >install.sh <<!GROK!THIS!
######################################
#
# Clean all G4 envs
unset CLHEP_BASE_DIR
unset CLHEP_INCLUDE_DIR
unset CLHEP_LIB
unset CLHEP_LIB_DIR
unset G4DEBUG
unset G4INCLUDE
unset G4INSTALL
unset G4LEDATA
unset G4LEVELGAMMADATA
unset G4NEUTRONHPDATA
unset G4RADIOACTIVEDATA
unset G4ABLADATA
unset G4LIB
unset G4LIB_BUILD_G3TOG4
unset G4LIB_BUILD_SHARED
unset G4LIB_BUILD_STATIC
unset G4LIB_BUILD_ZLIB
unset G4LIB_BUILD_GDML
unset G4LIB_USE_G3TOG4
unset G4LIB_USE_GRANULAR
unset G4LIB_USE_ZLIB
unset G4SYSTEM
unset G4UI_NONE
unset G4UI_BUILD_WIN32_SESSION
unset G4UI_BUILD_XAW_SESSION
unset G4UI_BUILD_XM_SESSION
unset G4UI_BUILD_QT_SESSION
unset G4UI_USE_TCSH
unset G4UI_USE_WIN32
unset G4UI_USE_XAW
unset G4UI_USE_XM
unset G4UI_USE_QT
unset G4VIS_NONE
unset G4VIS_BUILD_DAWN_DRIVER
unset G4VIS_BUILD_OIWIN32_DRIVER
unset G4VIS_BUILD_OIX_DRIVER
unset G4VIS_BUILD_OPENGLWIN32_DRIVER
unset G4VIS_BUILD_OPENGLXM_DRIVER
unset G4VIS_BUILD_OPENGLX_DRIVER
unset G4VIS_BUILD_RAYTRACERX_DRIVER
unset G4VIS_BUILD_VRML_DRIVER
unset G4VIS_BUILD_OPENGLQT_DRIVER
unset G4VIS_USE_DAWN
unset G4VIS_USE_OIWIN32
unset G4VIS_USE_OIX
unset G4VIS_USE_OPENGLWIN32
unset G4VIS_USE_OPENGLX
unset G4VIS_USE_OPENGLXM
unset G4VIS_USE_RAYTRACERX
unset G4VIS_USE_VRML
unset G4VIS_USE_OPENGLQT
######################################
#
# g4system.U
#
#+
G4SYSTEM="$g4system"
export G4SYSTEM
echo "On this machine the G4SYSTEM=\$G4SYSTEM"
#
# g4dirs.U
#
#+
G4INSTALL="$g4install"
export G4INSTALL
echo "On this machine the G4INSTALL=\$G4INSTALL"
#+
if [ X$g4include != X -a X$g4include != Xn ] ; then
G4INCLUDE="$g4include"
export G4INCLUDE
echo "On this machine the G4INCLUDE=\$G4INCLUDE"
fi
#+
if [ X$g4tmp != X ] ; then
G4TMP="$g4tmp"
export G4TMP
echo "On this machine the G4TMP=\$G4TMP"
fi
#+
if [ X$g4lib != X ] ; then
G4LIB="$g4lib"
export G4LIB
echo "On this machine the G4LIB=\$G4LIB"
fi
#+
if [ X$g4lib != X ] ; then
G4BIN="$g4lib/../bin"
export G4BIN
fi
#+
if [ X$g4levelgammadata != X ] ; then
G4LEVELGAMMADATA="$g4levelgammadata"
export G4LEVELGAMMADATA
echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
fi
#+
if [ X$g4radioactivedata != X ] ; then
G4RADIOACTIVEDATA="$g4radioactivedata"
export G4RADIOACTIVEDATA
echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
fi
#+
if [ X$g4ledata != X ] ; then
G4LEDATA="$g4ledata"
export G4LEDATA
echo "On this machine the G4LEDATA=\$G4LEDATA"
fi
#+
if [ X$g4neutronhpcrosssections != X ] ; then
G4NEUTRONHPDATA="$g4neutronhpcrosssections"
export G4NEUTRONHPDATA
echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
fi
#+
if [ X$g4abladata != X ] ; then
G4ABLADATA="$g4abladata"
export G4ABLADATA
echo "On this machine the G4ABLADATA=\$G4ABLADATA"
fi
#+
#if [ X$g4elasticdata != X ] ; then
#G4ELASTICDATA="$g4elasticdata"
#export G4ELASTICDATA
#echo "On this machine the G4ELASTICDATA=\$g4elasticdata"
#fi
#
# g4clhep.U
#
if [ X$g4clhep_base_dir != X ] ; then
CLHEP_BASE_DIR="$g4clhep_base_dir"
export CLHEP_BASE_DIR
echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
fi
#if [ X$g4clhep_base_dir != X/usr -o X$g4clhep_base_dir != X/usr/local ] ; then
#CLHEP_BASE_DIR="$g4clhep_base_dir"
#export CLHEP_BASE_DIR
#echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
#fi
#+
if [ X$g4clhep_include_dir != X ] ; then
CLHEP_INCLUDE_DIR="$g4clhep_include_dir"
export CLHEP_INCLUDE_DIR
echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
fi
#+
if [ X$g4clhep_lib_dir != X ] ; then
CLHEP_LIB_DIR="$g4clhep_lib_dir"
export CLHEP_LIB_DIR
echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
fi
#+
if [ X$g4clhep_lib != X ] ; then
CLHEP_LIB="$g4clhep_lib"
export CLHEP_LIB
echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
fi
#+
#
# g4debug
#
if [ X$g4debug = Xy ] ; then
G4DEBUG=1
export G4DEBUG
echo "On this machine the G4DEBUG=\$G4DEBUG"
fi
#
# g4ui
#
#+
if [ X$g4ui_none = Xy ] ; then
G4UI_NONE=1
export G4UI_NONE
echo "On this machine G4UI_NONE is set - no UIs will be built"
else
echo "On this machine G4UI_NONE is not set - following UIs will be built:"
#+
if [ X$g4ui_build_xaw_session = Xy ] ; then
G4UI_BUILD_XAW_SESSION=1
export G4UI_BUILD_XAW_SESSION
echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION"
fi
#+
if [ X$g4ui_use_xaw = Xy ] ; then
G4UI_USE_XAW=1
export G4UI_USE_XAW
echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW"
fi
#+
if [ X$g4ui_build_xm_session = Xy ] ; then
G4UI_BUILD_XM_SESSION=1
export G4UI_BUILD_XM_SESSION
echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
fi
#+
if [ X$g4ui_use_xm = Xy ] ; then
G4UI_USE_XM=1
export G4UI_USE_XM
echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
fi
#+
if [ X$g4ui_build_win32_session = Xy ] ; then
G4UI_BUILD_WIN32_SESSION=1
export G4UI_BUILD_WIN32_SESSION
echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
fi
#+
if [ X$g4ui_use_win32 = Xy ] ; then
G4UI_USE_WIN32=1
export G4UI_USE_WIN32
echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
fi
#+
if [ X$g4ui_build_qt_session = Xy ] ; then
G4UI_BUILD_QT_SESSION=1
export G4UI_BUILD_QT_SESSION
echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
fi
#+
if [ X$g4ui_use_qt = Xy ] ; then
G4UI_USE_QT=1
export G4UI_USE_QT
echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
fi
fi
# END OF G4UI_NONE block
#
# g4vis
#
#+
if [ X$g4vis_none = Xy ] ; then
G4VIS_NONE=1
export G4VIS_NONE
echo "On this machine G4VIS_NONE is set - no drivers will be built"
else
echo "On this machine G4VIS_NONE is not set - following drivers will be built:"
#+
if [ X$g4vis_build_dawn_driver = Xy ] ; then
G4VIS_BUILD_DAWN_DRIVER=1
export G4VIS_BUILD_DAWN_DRIVER
echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
fi
#+
if [ X$g4vis_build_openglx_driver = Xy ] ; then
G4VIS_BUILD_OPENGLX_DRIVER=1
export G4VIS_BUILD_OPENGLX_DRIVER
echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
fi
#+
if [ X$g4vis_build_openglxm_driver = Xy ] ; then
G4VIS_BUILD_OPENGLXM_DRIVER=1
export G4VIS_BUILD_OPENGLXM_DRIVER
echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
fi
#+
if [ X$g4vis_build_openglwin32_driver = Xy ] ; then
G4VIS_BUILD_OPENGLWIN32_DRIVER=1
export G4VIS_BUILD_OPENGLWIN32_DRIVER
echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
fi
#+
if [ X$g4vis_build_oix_driver = Xy ] ; then
G4VIS_BUILD_OIX_DRIVER=1
export G4VIS_BUILD_OIX_DRIVER
echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
fi
#+
if [ X$g4vis_build_raytracerx_driver = Xy ] ; then
G4VIS_BUILD_RAYTRACERX_DRIVER=1
export G4VIS_BUILD_RAYTRACERX_DRIVER
echo "On this machine the G4VIS_BUILD_RAYTRACERX_DRIVER=\$G4VIS_BUILD_RAYTRACERX_DRIVER"
fi
#+
if [ X$g4vis_build_oiwin32_driver = Xy ] ; then
G4VIS_BUILD_OIWIN32_DRIVER=1
export G4VIS_BUILD_OIWIN32_DRIVER
echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
fi
#+
if [ X$g4vis_build_vrml_driver = Xy ] ; then
G4VIS_BUILD_VRML_DRIVER=1
export G4VIS_BUILD_VRML_DRIVER
echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
fi
#+
if [ X$g4vis_build_openglqt_driver = Xy ] ; then
G4VIS_BUILD_OPENGLQT_DRIVER=1
export G4VIS_BUILD_OPENGLQT_DRIVER
echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
fi
#+
if [ X$g4vis_use_dawn = Xy ] ; then
G4VIS_USE_DAWN=1
export G4VIS_USE_DAWN
echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
fi
#+
if [ X$g4vis_use_openglx = Xy ] ; then
G4VIS_USE_OPENGLX=1
export G4VIS_USE_OPENGLX
echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
fi
#+
if [ X$g4vis_use_openglxm = Xy ] ; then
G4VIS_USE_OPENGLXM=1
export G4VIS_USE_OPENGLXM
echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
fi
#+
if [ X$g4vis_use_openglwin32 = Xy ] ; then
G4VIS_USE_OPENGLWIN32=1
export G4VIS_USE_OPENGLWIN32
echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
fi
#+
if [ X$g4vis_use_oix = Xy ] ; then
G4VIS_USE_OIX=1
export G4VIS_USE_OIX
echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
fi
#+
if [ X$g4vis_use_raytracerx = Xy ] ; then
G4VIS_USE_RAYTRACERX=1
export G4VIS_USE_RAYTRACERX
echo "On this machine the G4VIS_USE_RAYTRACERX=\$G4VIS_USE_RAYTRACERX"
fi
#+
if [ X$g4vis_use_oiwin32 = Xy ] ; then
G4VIS_USE_OIWIN32=1
export G4VIS_USE_OIWIN32
echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
fi
#+
if [ X$g4vis_use_vrml = Xy ] ; then
G4VIS_USE_VRML=1
export G4VIS_USE_VRML
echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
fi
#+
if [ X$g4vis_use_openglqt = Xy ] ; then
G4VIS_USE_OPENGLQT=1
export G4VIS_USE_OPENGLQT
echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
fi
fi
# End of G4VIS_NONE block
#+
if [ X$g4vis_oglhome != X ] ; then
OGLHOME="$g4vis_oglhome"
export OGLHOME
echo "On this machine the OGLHOME=\$OGLHOME"
fi
#+
if [ X$g4vis_oivhome != X ] ; then
OIVHOME="$g4vis_oivhome"
export OIVHOME
if [ X\$g4non_display = X ] ; then
echo "On this machine the OIVHOME=\$OIVHOME"
fi
fi
#+
if [ X$g4vis_build_openglxm_driver != X ] ; then
XMFLAGS="$g4vis_xmflags"
export XMFLAGS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XMFLAGS=\$XMFLAGS"
fi
fi
#+
if [ X$g4vis_build_openglxm_driver != X ] ; then
XMLIBS="$g4vis_xmlibs"
export XMLIBS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XMLIBS=\$XMLIBS"
fi
fi
#+
if [ X$g4ui_build_xm_session != X ] ; then
XMFLAGS="$g4vis_xmflags"
export XMFLAGS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XMFLAGS=\$XMFLAGS"
fi
fi
#+
if [ X$g4vis_build_xm_session != X ] ; then
XMLIBS="$g4vis_xmlibs"
export XMLIBS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XMLIBS=\$XMLIBS"
fi
fi
#+
if [ X$g4ui_build_xaw_session != X ] ; then
XAWFLAGS="$g4ui_xawflags"
export XAWFLAGS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XAWFLAGS=\$XAWFLAGS"
fi
fi
#+
if [ X$g4ui_build_xaw_session != X ] ; then
XAWLIBS="$g4ui_xawlibs"
export XAWLIBS
if [ X\$g4non_display = X ] ; then
echo "On this machine the XAWLIBS=\$XAWLIBS"
fi
fi
# Qt Flags and Libs, messy, but needed for backward compatibility
#+
if [ "X$g4ui_build_qt_session" = "Xy" -o "X$g4ui_use_qt" = "Xy" ] ; then
QTFLAGS="$g4_qt_cxxflags"
QTLIBS="$g4_qt_libs"
QTMOC="$g4_qt_moc"
export QTFLAGS
export QTLIBS
export QTMOC
if [ X\$g4non_display = X ] ; then
echo "On this machine the QTFLAGS=\$QTFLAGS"
echo "On this machine the QTLIBS=\$QTLIBS"
echo "On this machine the QTMOC=\$QTMOC"
fi
fi
if [ "X$g4vis_build_openglqt_driver" = "Xy" -o "X$g4vis_build_openglqt_driver" = "Xy" ] ; then
if [ "X\$QTFLAGS" = "X" ] ; then
QTFLAGS="$g4_qt_cxxflags $g4_qt_gl_cxxflags"
else
QTFLAGS="\$QTFLAGS $g4_qt_gl_cxxflags"
fi
if [ "X\$QTMOC" = "X" ] ; then
QTMOC="$g4_qt_moc"
fi
GLQTLIBS="$g4_qt_libs $g4_qt_gl_libs"
export QTFLAGS
export QTMOC
export GLQTLIBS
if [ X\$g4non_display = X ] ; then
echo "On this machine the QTFLAGS=\$QTFLAGS"
echo "On this machine the GLQTLIBS=\$GLQTLIBS"
echo "On this machine the QTMOC=\$QTMOC"
fi
fi
#
# Use GDML module
#
#+
if [ X$g4lib_build_gdml = Xy ] ; then
G4LIB_BUILD_GDML=1
export G4LIB_BUILD_GDML
echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
fi
if [ X$g4lib_build_gdml = Xy ] ; then
XERCESCROOT=$g4gdml_xercesc_root
export XERCESCROOT
echo "On this machine the XERCESCROOT=\$XERCESCROOT"
fi
#
# Use G3TOG4 module
#
#+
if [ X$g4wlib_build_g3tog4 = Xy ] ; then
G4LIB_BUILD_G3TOG4=1
export G4LIB_BUILD_G3TOG4
echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
fi
if [ X$g4w_use_g3tog4 = Xy ] ; then
G4LIB_USE_G3TOG4=1
export G4LIB_USE_G3TOG4
echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
fi
#
# Use ZLIB module
#
#+
if [ X$g4wlib_build_zlib = Xy ] ; then
G4LIB_BUILD_ZLIB=1
export G4LIB_BUILD_ZLIB
echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
fi
if [ X$g4w_use_zlib = Xy ] ; then
G4LIB_USE_ZLIB=1
export G4LIB_USE_ZLIB
echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
fi
#+
#
# g4shared
#
if [ X$g4lib_build_shared = Xy ] ; then
G4LIB_BUILD_SHARED=1
export G4LIB_BUILD_SHARED
echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
fi
if [ X$g4lib_build_static = Xy ] ; then
G4LIB_BUILD_STATIC=1
export G4LIB_BUILD_STATIC
echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
fi
#+
#
# g4granular
#
if [ X$g4lib_use_granular = Xy ] ; then
G4LIB_USE_GRANULAR=1
export G4LIB_USE_GRANULAR
echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
fi
#####################################################################
#####################################################################
# Create GNUmakefile.db to keep ALL GNUmakefile DB :)
if test -f \$G4INSTALL/config/scripts/GNUmakefile.db ; then
mv \$G4INSTALL/config/scripts/GNUmakefile.db \$G4LIB/\$G4SYSTEM/GNUmakefile.db.bac
fi
# Be careful: first time there is no $G4LIB!
mkdir -p \$G4LIB/\$G4SYSTEM
$g4make -n -p -f \$G4INSTALL/config/scripts/GNUmakefile > \$G4LIB/\$G4SYSTEM/GNUmakefile.db
echo ""
echo "Starting build..."
echo ""
echo "Cleaning up $g4conf/g4make.log"
rm -rf $g4conf/g4make.log
cd $g4install/source
if test $g4make_jobs -gt 1 ; then
$g4make obj -j $g4make_jobs
fi
# There is no env!
if [ X$g4global = Xy ] ; then
echo "Building global libraries..."
$g4make global 2>&1 | tee $g4conf/g4make.log
fi
# There is env for binaries - for User: should be set in env.[c]sh!
if [ X$g4granular = Xy ] ; then
echo "Building granular libraries..."
G4LIB_USE_GRANULAR=1
export G4LIB_USE_GRANULAR
$g4make 2>&1 | tee $g4conf/g4make.log
fi
if [ X$g4lib_build_dll = Xy ] ; then
echo "Building WIN32 DLLs..."
$g4make dll 2>&1 | tee $g4conf/g4make.log
fi
if [ X$g4lib_build_dyn = Xy ] ; then
echo ""
rm -rf $g4conf/g4make.log
$g4make global G4LIB_BUILD_SHARED=1 2>&1 | tee $g4conf/g4make.log
fi
# Check for errors in log file
if test -f \$g4conf/g4make.log ; then
# There are two (at least) shells 'sh' and 'bash' with
# different arithmetic expansion...So we are doing it by 'text'
# in two steps...
err=\`grep " Error " $g4conf/g4make.log | wc -w\`
int=\`grep " Interrupt " $g4conf/g4make.log | wc -w\`
stp=\`grep Stop\. $g4conf/g4make.log | wc -w\`
err2=\`echo \$err\`
int2=\`echo \$int\`
stp2=\`echo \$stp\`
if [ X\$err2 = X0 -a X\$int2 = X0 ] ; then
echo ""
echo "####################################################"
echo "# Your Geant4 installation seems to be successful! "
echo "# To be sure please have a look into the log file: "
echo "# $g4conf/g4make.log "
echo "####################################################"
echo ""
else
echo ""
echo "############################################################"
echo "# It looks like you had errors during Geant4 installation "
echo "# (or interrupted installation)! "
echo "# Please check log file: "
echo "# $g4conf/g4make.log "
echo "############################################################"
echo ""
fi
else
echo ""
echo "############################################################"
echo "# It looks like you had errors during Geant4 installation "
echo "# (or interrupted installation)! "
echo "# You have no log file: "
echo "# $g4conf/g4make.log "
echo "############################################################"
echo ""
fi
!GROK!THIS!
: In the following dollars and backticks do not need the extra backslash.
$spitshell >>install.sh <<'!NO!SUBS!'
!NO!SUBS!
chmod 755 install.sh
$eunicefix install.sh
-496
View File
@@ -1,496 +0,0 @@
case $CONFIG in
'')
if test -f config.sh; then TOP=.;
elif test -f ../config.sh; then TOP=..;
elif test -f ../../config.sh; then TOP=../..;
elif test -f ../../../config.sh; then TOP=../../..;
elif test -f ../../../../config.sh; then TOP=../../../..;
else
echo "Can't find config.sh."; exit 1
fi
. $TOP/config.sh
;;
esac
: This forces SH files to create target in same directory as SH file.
: This is so that make depend always knows where to find SH derivatives.
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
#echo "Extracting move.sh (with variable substitutions)"
: This section of the file will have variable substitutions done on it.
: Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
: Protect any dollar signs and backticks that you do not want interpreted
: by putting a backslash in front. You may delete these comments.
$spitshell >move.sh <<!GROK!THIS!
######################################
#
# g4system.U
#
#+
G4SYSTEM="$g4system"
export G4SYSTEM
echo "On this machine the G4SYSTEM=\$G4SYSTEM"
#
# g4dirs.U
#
#+
G4INSTALL="$g4install"
export G4INSTALL
echo "On this machine the G4INSTALL=\$G4INSTALL"
#+
if [ X$g4include != X -a X$g4include != Xn ] ; then
G4INCLUDE="$g4include"
export G4INCLUDE
echo "On this machine the G4INCLUDE=\$G4INCLUDE"
fi
#+
if [ X$g4tmp != X ] ; then
G4TMP="$g4tmp"
export G4TMP
echo "On this machine the G4TMP=\$G4TMP"
fi
#+
if [ X$g4lib != X ] ; then
G4LIB="$g4lib"
export G4LIB
echo "On this machine the G4LIB=\$G4LIB"
fi
#+
if [ X$g4lib != X ] ; then
G4BIN="$g4lib/../bin"
export G4BIN
fi
#+
if [ X$g4levelgammadata != X ] ; then
G4LEVELGAMMADATA="$g4levelgammadata"
export G4LEVELGAMMADATA
echo "On this machine the G4LEVELGAMMADATA=\$G4LEVELGAMMADATA"
fi
#+
if [ X$g4radioactivedata != X ] ; then
G4RADIOACTIVEDATA="$g4radioactivedata"
export G4RADIOACTIVEDATA
echo "On this machine the G4RADIOACTIVEDATA=\$G4RADIOACTIVEDATA"
fi
#+
if [ X$g4ledata != X ] ; then
G4LEDATA="$g4ledata"
export G4LEDATA
echo "On this machine the G4LEDATA=\$G4LEDATA"
fi
#+
if [ X$g4neutronhpcrosssections != X ] ; then
G4NEUTRONHPDATA="$g4neutronhpcrosssections"
export G4NEUTRONHPDATA
echo "On this machine the G4NEUTRONHPDATA=\$G4NEUTRONHPDATA"
fi
#+
if [ X$g4abladata != X ] ; then
G4ABLADATA="$g4abladata"
export G4ABLADATA
echo "On this machine the G4ABLADATA=\$G4ABLADATA"
fi
#+
#if [ X$g4elasticdata != X ] ; then
#G4ELASTICDATA="$g4elasticdata"
#export G4ELASTICDATA
#echo "On this machine the G4ELASTICDATA=\$G4ELASTICDATA"
#fi
#
# g4clhep.U
#
if [ X$g4clhep_base_dir != X/usr -o X$g4clhep_base_dir != X/usr/local ] ; then
CLHEP_BASE_DIR="$g4clhep_base_dir"
export CLHEP_BASE_DIR
echo "On this machine the CLHEP_BASE_DIR=\$CLHEP_BASE_DIR"
fi
#+
if [ X$g4clhep_include_dir != X ] ; then
CLHEP_INCLUDE_DIR="$g4clhep_include_dir"
export CLHEP_INCLUDE_DIR
echo "On this machine the CLHEP_INCLUDE_DIR=\$CLHEP_INCLUDE_DIR"
fi
#+
if [ X$g4clhep_lib_dir != X ] ; then
CLHEP_LIB_DIR="$g4clhep_lib_dir"
export CLHEP_LIB_DIR
echo "On this machine the CLHEP_LIB_DIR=\$CLHEP_LIB_DIR"
fi
#+
if [ X$g4clhep_lib != X ] ; then
CLHEP_LIB="$g4clhep_lib"
export CLHEP_LIB
echo "On this machine the CLHEP_LIB=\$CLHEP_LIB"
fi
#+
#
# g4debug
#
if [ X$g4debug = Xy ] ; then
G4DEBUG=1
export G4DEBUG
echo "On this machine the G4DEBUG=\$G4DEBUG"
fi
#
# g4ui
#
#+
if [ X$g4ui_build_xaw_session = Xy ] ; then
G4UI_BUILD_XAW_SESSION=1
export G4UI_BUILD_XAW_SESSION
echo "On this machine the G4UI_BUILD_XAW_SESSION=\$G4UI_BUILD_XAW_SESSION"
fi
#+
if [ X$g4ui_use_xaw = Xy ] ; then
G4UI_USE_XAW=1
export G4UI_USE_XAW
echo "On this machine the G4UI_USE_XAW=\$G4UI_USE_XAW"
fi
#+
if [ X$g4ui_build_xm_session = Xy ] ; then
G4UI_BUILD_XM_SESSION=1
export G4UI_BUILD_XM_SESSION
echo "On this machine the G4UI_BUILD_XM_SESSION=\$G4UI_BUILD_XM_SESSION"
fi
#+
if [ X$g4ui_use_xm = Xy ] ; then
G4UI_USE_XM=1
export G4UI_USE_XM
echo "On this machine the G4UI_USE_XM=\$G4UI_USE_XM"
fi
#+
if [ X$g4ui_build_win32_session = Xy ] ; then
G4UI_BUILD_WIN32_SESSION=1
export G4UI_BUILD_WIN32_SESSION
echo "On this machine the G4UI_BUILD_WIN32_SESSION=\$G4UI_BUILD_WIN32_SESSION"
fi
#+
if [ X$g4ui_use_win32 = Xy ] ; then
G4UI_USE_WIN32=1
export G4UI_USE_WIN32
echo "On this machine the G4UI_USE_WIN32=\$G4UI_USE_WIN32"
fi
#+
if [ X$g4ui_build_qt_session = Xy ] ; then
G4UI_BUILD_QT_SESSION=1
export G4UI_BUILD_QT_SESSION
echo "On this machine the G4UI_BUILD_QT_SESSION=\$G4UI_BUILD_QT_SESSION"
fi
#+
if [ X$g4ui_use_qt = Xy ] ; then
G4UI_USE_QT=1
export G4UI_USE_QT
echo "On this machine the G4UI_USE_QT=\$G4UI_USE_QT"
fi
#
# g4vis
#
#+
if [ X$g4vis_build_dawn_driver = Xy ] ; then
G4VIS_BUILD_DAWN_DRIVER=1
export G4VIS_BUILD_DAWN_DRIVER
echo "On this machine the G4VIS_BUILD_DAWN_DRIVER=\$G4VIS_BUILD_DAWN_DRIVER"
fi
#+
if [ X$g4vis_build_openglx_driver = Xy ] ; then
G4VIS_BUILD_OPENGLX_DRIVER=1
export G4VIS_BUILD_OPENGLX_DRIVER
echo "On this machine the G4VIS_BUILD_OPENGLX_DRIVER=\$G4VIS_BUILD_OPENGLX_DRIVER"
fi
#+
if [ X$g4vis_build_openglxm_driver = Xy ] ; then
G4VIS_BUILD_OPENGLXM_DRIVER=1
export G4VIS_BUILD_OPENGLXM_DRIVER
echo "On this machine the G4VIS_BUILD_OPENGLXM_DRIVER=\$G4VIS_BUILD_OPENGLXM_DRIVER"
fi
#+
if [ X$g4vis_build_openglwin32_driver = Xy ] ; then
G4VIS_BUILD_OPENGLWIN32_DRIVER=1
export G4VIS_BUILD_OPENGLWIN32_DRIVER
echo "On this machine the G4VIS_BUILD_OPENGLWIN32_DRIVER=\$G4VIS_BUILD_OPENGLWIN32_DRIVER"
fi
#+
if [ X$g4vis_build_oix_driver = Xy ] ; then
G4VIS_BUILD_OIX_DRIVER=1
export G4VIS_BUILD_OIX_DRIVER
echo "On this machine the G4VIS_BUILD_OIX_DRIVER=\$G4VIS_BUILD_OIX_DRIVER"
fi
#+
if [ X$g4vis_build_oiwin32_driver = Xy ] ; then
G4VIS_BUILD_OIWIN32_DRIVER=1
export G4VIS_BUILD_OIWIN32_DRIVER
echo "On this machine the G4VIS_BUILD_OIWIN32_DRIVER=\$G4VIS_BUILD_OIWIN32_DRIVER"
fi
#+
if [ X$g4vis_build_vrml_driver = Xy ] ; then
G4VIS_BUILD_VRML_DRIVER=1
export G4VIS_BUILD_VRML_DRIVER
echo "On this machine the G4VIS_BUILD_VRML_DRIVER=\$G4VIS_BUILD_VRML_DRIVER"
fi
#+
if [ X$g4vis_build_openglqt_driver = Xy ] ; then
G4VIS_BUILD_OPENGLQT_DRIVER=1
export G4VIS_BUILD_OPENGLQT_DRIVER
echo "On this machine the G4VIS_BUILD_OPENGLQT_DRIVER=\$G4VIS_BUILD_OPENGLQT_DRIVER"
fi
#+
if [ X$g4vis_use_dawn = Xy ] ; then
G4VIS_USE_DAWN=1
export G4VIS_USE_DAWN
echo "On this machine the G4VIS_USE_DAWN=\$G4VIS_USE_DAWN"
fi
#+
if [ X$g4vis_use_openglx = Xy ] ; then
G4VIS_USE_OPENGLX=1
export G4VIS_USE_OPENGLX
echo "On this machine the G4VIS_USE_OPENGLX=\$G4VIS_USE_OPENGLX"
fi
#+
if [ X$g4vis_use_openglxm = Xy ] ; then
G4VIS_USE_OPENGLXM=1
export G4VIS_USE_OPENGLXM
echo "On this machine the G4VIS_USE_OPENGLXM=\$G4VIS_USE_OPENGLXM"
fi
#+
if [ X$g4vis_use_openglwin32 = Xy ] ; then
G4VIS_USE_OPENGLWIN32=1
export G4VIS_USE_OPENGLWIN32
echo "On this machine the G4VIS_USE_OPENGLWIN32=\$G4VIS_USE_OPENGLWIN32"
fi
#+
if [ X$g4vis_use_oix = Xy ] ; then
G4VIS_USE_OIX=1
export G4VIS_USE_OIX
echo "On this machine the G4VIS_USE_OIX=\$G4VIS_USE_OIX"
fi
#+
if [ X$g4vis_use_oiwin32 = Xy ] ; then
G4VIS_USE_OIWIN32=1
export G4VIS_USE_OIWIN32
echo "On this machine the G4VIS_USE_OIWIN32=\$G4VIS_USE_OIWIN32"
fi
#+
if [ X$g4vis_use_vrml = Xy ] ; then
G4VIS_USE_VRML=1
export G4VIS_USE_VRML
echo "On this machine the G4VIS_USE_VRML=\$G4VIS_USE_VRML"
fi
#+
if [ X$g4vis_use_openglqt = Xy ] ; then
G4VIS_USE_OPENGLQT=1
export G4VIS_USE_OPENGLQT
echo "On this machine the G4VIS_USE_OPENGLQT=\$G4VIS_USE_OPENGLQT"
fi
#+
if [ X$g4vis_oglhome != X ] ; then
OGLHOME="$g4vis_oglhome"
export OGLHOME
echo "On this machine the OGLHOME=\$OGLHOME"
fi
#+
if [ X$g4_qthome != X ] ; then
QTHOME=$g4_qthome
export QTHOME
echo "On this machine the QTHOME=\$QTHOME"
fi
#
# Use GDML module
#
#+
if [ X$g4lib_build_gdml = Xy ] ; then
G4LIB_BUILD_GDML=1
export G4LIB_BUILD_GDML
echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML"
fi
if [ X$g4lib_build_gdml = Xy ] ; then
XERCESCROOT=$g4gdml_xercesc_root
export XERCESCROOT
echo "On this machine the XERCESCROOT=\$XERCESCROOT"
fi
#
# Use G3TOG4 module
#
#+
if [ X$g4wlib_build_g3tog4 = Xy ] ; then
G4LIB_BUILD_G3TOG4=1
export G4LIB_BUILD_G3TOG4
echo "On this machine the G4LIB_BUILD_G3TOG4=\$G4LIB_BUILD_G3TOG4"
fi
if [ X$g4w_use_g3tog4 = Xy ] ; then
G4LIB_USE_G3TOG4=1
export G4LIB_USE_G3TOG4
echo "On this machine the G4LIB_USE_G3TOG4=\$G4LIB_USE_G3TOG4"
fi
#
# Use ZLIB module
#
#+
if [ X$g4wlib_build_zlib = Xy ] ; then
G4LIB_BUILD_ZLIB=1
export G4LIB_BUILD_ZLIB
echo "On this machine the G4LIB_BUILD_ZLIB=\$G4LIB_BUILD_ZLIB"
fi
if [ X$g4w_use_zlib = Xy ] ; then
G4LIB_USE_ZLIB=1
export G4LIB_USE_ZLIB
echo "On this machine the G4LIB_USE_ZLIB=\$G4LIB_USE_ZLIB"
fi
#+
#
# g4shared
#
if [ X$g4lib_build_shared = Xy ] ; then
G4LIB_BUILD_SHARED=1
export G4LIB_BUILD_SHARED
echo "On this machine the G4LIB_BUILD_SHARED=\$G4LIB_BUILD_SHARED"
fi
if [ X$g4lib_build_static = Xy ] ; then
G4LIB_BUILD_STATIC=1
export G4LIB_BUILD_STATIC
echo "On this machine the G4LIB_BUILD_STATIC=\$G4LIB_BUILD_STATIC"
fi
#+
#
# g4granular
#
if [ X$g4lib_use_granular = Xy ] ; then
G4LIB_USE_GRANULAR=1
export G4LIB_USE_GRANULAR
echo "On this machine the G4LIB_USE_GRANULAR=\$G4LIB_USE_GRANULAR"
fi
#####################################################################
#####################################################################
echo ""
echo "Starting installation..."
echo ""
cd $g4install
#echo `pwd`
# Remove 'verbosity' in 'tar' command
# If not INCLUDE then install full tree in 'src' directory!
#
if [ X$g4includes_flag = Xn ] ; then
if [ X$g4install != X$g4final_install ] ; then
echo ""
echo "Installing sources and headers..."
echo ""
mkdir -p $g4final_install/src/geant4/
tar cf - Configure config/ source/ environments/ examples/ include/ |(cd $g4final_install/src/geant4/; tar xf -)
fi
fi
########################################
# There is no env!
if [ X$g4includes_flag = Xy ] ; then
if [ X$g4install != X$g4final_install ] ; then
echo ""
echo "Installing sources..."
echo ""
mkdir -p $g4final_install/src/geant4/
tar cf - Configure config/ source/ environments/ examples/ |(cd $g4final_install/src/geant4/; tar xf -)
fi
echo ""
echo "Installing headers..."
echo ""
cd $g4install/source
$g4make includes dependencies=""
fi
# Move libraries
if [ X$g4install != X$g4final_install ] ; then
echo ""
echo "Installing libraries..."
echo ""
mkdir -p $g4final_install/lib/geant4
cd $g4install/lib
tar cf - $g4system |(cd $g4final_install/lib/geant4; tar xf -)
fi
# For the reason of strange behaivior for DOTted directory...
mkdir -p $g4final_install/src/geant4/.config
cd $g4install/.config
tar cf - . |(cd $g4final_install/src/geant4/.config; tar xf -)
!GROK!THIS!
: In the following dollars and backticks do not need the extra backslash.
$spitshell >>move.sh <<'!NO!SUBS!'
!NO!SUBS!
chmod 755 move.sh
$eunicefix move.sh
+29 -9
View File
@@ -76,9 +76,10 @@ ifeq ($(G4SYSTEM),Darwin-g++)
# the following lines are for building on MacOSX 10.5 "Leopard"
OGLLIBS := -Wl,$(QTGLPATH)/Versions/A/Libraries/libGL.dylib -L$(OGLHOME)/lib -lGLU -lGL
else
ifeq ($(DARWIN_VERSION),10)
# the following lines are for building on MacOSX > 10.5
OGLLIBS := -F/System/Library/Frameworks -framework OpenGL -framework AGL -L$(OGLHOME)/lib -lGLU -lGL
# the following lines are for building on MacOSX > 10.5
OGLLIBS := -F/System/Library/Frameworks -framework OpenGL -framework AGL
ifeq ($(G4VIS_USE_OPENGLX),1)
OGLLIBS += -L$(OGLHOME)/lib -lGLU -lGL
endif
endif
else
@@ -86,7 +87,7 @@ ifeq ($(G4SYSTEM),Darwin-g++)
endif
endif
# ---- QT Setup block -------------------------------------------------------
# ---- Qt Setup block -------------------------------------------------------
ifndef QTHOME
QTHOME := /Library/Frameworks
@@ -111,20 +112,39 @@ ifeq ($(G4SYSTEM),Darwin-g++)
QTLIBPATH := -F$(QTHOME)/lib
endif
endif
QT_AS_FRAMEWORK := $(shell test -d $(QTHOME)/lib/QtCore.framework && echo yes)
ifndef QTLIBS
QTLIBS := $(QTLIBPATH) -framework QtCore -framework QtGui
ifdef QT_AS_FRAMEWORK
QTLIBS := $(QTLIBPATH) -framework QtCore -framework QtGui
else
QTLIBS := -L$(QTHOME)/lib -lQtCore -lQtGui
endif
endif
ifndef GLQTLIBS
GLQTLIBS := $(QTLIBPATH) -framework QtCore -framework QtGui
GLQTLIBS += -framework QtOpenGL
ifndef GLQTLIBS
ifdef QT_AS_FRAMEWORK
GLQTLIBS := $(QTLIBPATH) -framework QtCore -framework QtGui
GLQTLIBS += -framework QtOpenGL
else
GLQTLIBS := -L$(QTHOME)/lib -lQtCore -lQtGui -lQtOpenGL
endif
endif
#------ Wt Setup block ------------------------------------------------------
ifndef WTHOME
WTHOME := /usr
endif
WTFLAGS := -I$(WTHOME)/include/boost -I$(WTHOME)/include -DQT_NO_KEYWORDS
WTLIBS := -L$(WTHOME)/lib -lwt -lwtext -lwthttp -lboost_signals -L/usr/lib -lz -lssl -lcrypto
#----------------------------------------------------------------------------
define build-granular-shared-lib
@libdir=`(cd $(@D);/bin/pwd)`; \
cd $(G4TMPDIR); \
$(CXX) -dynamiclib -single_module -lgcov -undefined dynamic_lookup \
$(CXX) -dynamiclib -single_module -lgcov -undefined dynamic_lookup \
-o $$libdir/$(@F) $(INTYLIBS) *.o
endef
define build-global-shared-lib
+5 -2
View File
@@ -78,6 +78,9 @@ ifeq ($(G4SYSTEM),WIN32-VC)
# Note that a DLL must be fully linked. You should NOT have undefined
# symbols as output of the link command.
#
ifdef G4LIB_USE_CLHEP
GLOBLIBS += libG4clhep.lib
endif
define build-granular-shared-lib
@libdir=`(cd $(@D);/bin/pwd)`;\
cd $(G4TMP)/$(G4SYSTEM);\
@@ -97,7 +100,7 @@ ifeq ($(G4SYSTEM),WIN32-VC)
$(ECHO) "Building $(name).dll file ...";\
link.exe /nologo /dll /out:$(G4LIBDIR)/$(name).dll \
$(G4LIBDIR)/lib$(name).exp $(G4LIBDIR)/lib$(name).a \
/libpath:$(G4LIBDIR) $(GLOBLIBS) \
$(LIB_PATH)$(G4LIBDIR) $(GLOBLIBS) \
$(LIB_PATH)$(CLHEP_LIB_DIR) $(CLHEP_LIB) \
$(INTYLIBS) $(GDMLLIBS) $(ANALYSISLIBS) $(UI32LIBS)
endef
@@ -120,7 +123,7 @@ ifeq ($(G4SYSTEM),WIN32-VC)
$(ECHO) "Building $(name).dll ...";\
link.exe /nologo /dll /out:$(G4LIBDIR)/$(name).dll \
$(G4LIBDIR)/lib$(name).exp $(G4LIBDIR)/lib$(name).a \
/libpath:$(G4LIBDIR) $(GLOBLIBS) \
$(LIB_PATH)$(G4LIBDIR) $(GLOBLIBS) \
$(LIB_PATH)$(CLHEP_LIB_DIR) $(CLHEP_LIB) \
$(INTYLIBS) $(GDMLLIBS) $(ANALYSISLIBS) $(UI32LIBS)
endef
+1 -1
View File
@@ -1,4 +1,4 @@
/* $Id: win32def.c,v 1.3 2004/06/18 16:10:06 gcosmo Exp $ */
/* $Id: win32def.c,v 1.3 2004-06-18 16:10:06 gcosmo Exp $ */
/* +---------------------- Copyright notice -------------------------------+ */
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
/* | Permission to use, copy, modify, and distribute this software | */