10 # Determine if libxml exist...
11 # we will uyse at the end of the file
12 #For linear collider detector description format LCDD (in development)
13 #xmltest=`which xml2-config`
14 #if [ ! -z "$xmltest" ]; then
15 #printf "You have libxml installed:\n"
16 #printf "Do you want to enable the GDML geometry description format ?\n"
17 #read -p "[y/n]" value
18 #if test "$value" == "y"; then
19 # USE_LCDD="-DUSE_LCDD"
20 # USE_LCDD_CFLAGS=`xml2-config --cflags`
21 # echo " BDSIM is able to read LCDD format...."
25 # USE_GDML="-DUSE_GDML" # not working at the moment :(
27 # copy from configure script...
30 #echo " ########################################### " > $Makefile
31 echo "# Makefile for BDSIM " >> $Makefile
32 echo "# Generated automatically " >> $Makefile
33 echo "# by ${USER} " >> $Makefile
34 echo "# on $(date) " >> $Makefile
35 #echo "# " >> $Makefile
36 #echo " ########################################### " >> $Makefile
39 cat Makefile.
in |
sed "
40 s%@G4INSTALL@%$G4INSTALL%g;
41 s%@G4LIBDIR@%$G4LIBDIR%g;
42 s%@ROOTSYS@%$ROOT_sys%g;
44 s%@G4VERSION@%$_G4ver%g;
45 s%@G4MINORVERSION@%$_G4minver%g;
46 s%@CLHEP_VERSION@%$_CLHEPweirdver%g;
47 s%@USE_ROOT@%$USE_ROOT%g;
48 s%@USE_GDML@%$USE_GDML%g;
49 s%@USE_LCDD@%$USE_LCDD%g;
50 s%@LCDD_CFLAGS@%$LCDD_CFLAGS%g;
51 s%@LCDD_LIBS@%$LCDD_LIBSS%g;
52 s%@OGLLIBS@%$opengllib%g; " >> $Makefile