Changeset 1045 for trunk/config
- Timestamp:
- May 15, 2009, 12:28:43 PM (15 years ago)
- Location:
- trunk/config
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/config/G4UI_USE.gmk
r850 r1045 1 # $Id: G4UI_USE.gmk,v 1.1 2 2008/05/14 09:48:19gbarrand Exp $1 # $Id: G4UI_USE.gmk,v 1.15 2009/03/05 09:19:37 gbarrand Exp $ 2 2 # ------------------------------------------------------------- 3 3 # GNUmakefile for CPPFLAGS for interfaces USE phase. 4 4 # John Allison, 6th July 1998. 5 5 6 ########################### interfaces/basic #######################7 ifndef G4UI_USE_INCLUDED8 G4UI_USE_INCLUDED = 19 10 6 ifndef G4UI_NONE 11 7 12 UILIBS := 8 ifndef G4UI_USE_INCLUDED 9 G4UI_USE_INCLUDED = 1 10 11 ifndef UILIBS 12 UILIBS := 13 endif 13 14 14 15 # Sessions not needing external packages or libraries. These … … 81 82 endif 82 83 83 ifdef G4UI_USE_OSC84 CPPFLAGS += -DG4UI_USE_OSC85 ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))86 # need a syntax that both g++ and CL.exe understand :87 G4OSC_TMP_1 := $(shell echo "`osc-config --g4lab_incs`")88 CPPFLAGS += $(patsubst /I%,-I"%",$(G4OSC_TMP_1))89 else90 CPPFLAGS += `osc-config --g4lab_incs`91 endif92 INTYLIBS += `osc-config --g4lab_libs`93 INTYLIBS += `osc-config --iv_libs`94 #95 ifndef G4ANALYSIS_AIDA_CONFIG_CFLAGS96 ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))97 # need a syntax that both g++ and CL.exe understand :98 G4OSC_TMP_2 := $(shell echo "`aida-config --include`")99 G4ANALYSIS_AIDA_CONFIG_CFLAGS := $(patsubst /I%,-I"%",$(G4OSC_TMP_2))100 endif101 endif102 endif103 104 ########################### interfaces/XVT - not currently implemented #####105 106 84 ##################### Default to TERMINAL if no environment variables set ## 107 ##################### (No need actually to use it - see above.) ############108 85 109 86 ifndef G4UI_USE 110 G4UI_USE = 1111 87 CPPFLAGS += -DG4UI_USE_TERMINAL 112 88 endif 113 89 114 endif #G4UI_NONE 90 ########################### and finally... ####################### 91 92 G4UI_USE = 1 93 CPPFLAGS += -DG4UI_USE 94 115 95 endif # G4UI_USE_INCLUDED 96 endif # G4UI_NONE -
trunk/config/G4VIS_USE.gmk
r921 r1045 77 77 INC_GL = 1 78 78 LOAD_GL = 1 79 LOAD_GL2PS= 180 79 endif 81 80 … … 104 103 INC_IV = 1 105 104 LOAD_IV = 1 106 LOAD_GL2PS= 1107 105 endif 108 106 -
trunk/config/History
r999 r1045 1 cvs log $Id: History,v 1.35 4 2009/04/20 10:10:25 lgarnierExp $1 cvs log $Id: History,v 1.355 2009/04/27 07:44:07 gcosmo Exp $ 2 2 ------------------------------------------------------------------- 3 3 … … 17 17 ---------------------------------------------------------- 18 18 19 2 0 April 2009 Laurent Garnier20 - sys/Linux-g++.gmk: Corrections to respect Standard location for include21 and lib paths for Qt. Try to find better if Qt is not located in a standard22 place 23 24 8 Mars 2009 Laurent Garnier 25 - sys/Darwin-g++.gmk: Bug fix for Qt non standard installation 26 - sys/Linux-g++.gmk: Change way to fing QtLib by default 27 - sys+Win32-VC.gmk: Bug fix for building GLQTLIBS 28 29 5 Mars 2009 Guy Barrand 30 - analysis.gmk: WIN32-VC : arrange so that what is returned31 by `aida-config --lib`, which may have the Windows LINK.exe syntax, 32 be understood by g++ which is in fact used on CYGWIN 33 to link applications. Then we transform /LIBPATH options to 34 -libpath options and change the path backslash syntax to35 a slash syntax. With that someone can use the AIDA implementation36 coming from an osc-batch or osc-vis binary kit built for37 Windows-VisualC++, in a G4 example using AIDA built from CYGWIN with38 a G4 built with the VisualC++ compiler (then having a WIN32-VC G4SYSTEM).39 - G4UI_USE.gmk: suppress the G4UI_USE_OSC logic. 40 From OpenScientist/16.8, the osc-g4-vis program can instrument41 directly the GNUmakefile of an example or of a user application 42 which is a clone of some G4 example. And then we let clean43 the G4 make files concerning OpenScientist.19 27th April 2009 Gabriele Cosmo (config-V09-02-05) 20 - Linux-icc.gmk: removed "-lcxa -lunwind" LOADLIBS addition, no longer 21 necessary since icc-11.0.83. 22 23 20th April 2009 Laurent Garnier 24 - Linux-g++.gmk: corrections to respect standard location for include 25 and lib paths for Qt. Improved setup for non-standard Qt3 location. 26 27 8th March 2009 Laurent Garnier 28 - Darwin-g++.gmk: bug fix for Qt non standard installation. 29 - Linux-g++.gmk: changed way to fing QtLib by default. 30 - WIN32-VC.gmk: bug fix for building GLQTLIBS. 31 32 5th March 2009 Guy Barrand 33 - analysis.gmk: arrange configuration for WIN32-VC so that what is returned 34 by `aida-config --lib` (which may have the Windows LINK.exe syntax) is 35 understood by g++ which is in fact used by CygWin for linking applications. 36 Then transforming /LIBPATH options to -libpath options and change the path 37 '\' syntax to a '/' syntax. Allowing now to use the AIDA implementation 38 coming from an osc-batch or osc-vis binary kit built for WIN32-VC, in a 39 example using AIDA built from CygWin with Geant4 built with the VisualC++ 40 compiler. 41 - G4UI_USE.gmk: suppressed G4UI_USE_OSC logic. From OpenScientist/16.8, the 42 osc-g4-vis program can instrument directly the GNUmakefile of an example or 43 of a user application which is a clone of some Geant4 example. 44 44 45 45 27th February 2009 Gabriele Cosmo (config-V09-02-04) -
trunk/config/analysis.gmk
r850 r1045 15 15 # Then we transform to use the -I syntax which is understood by 16 16 # both g++ and CL.exe compilers : 17 G4ANALYSIS_TMP := $(shell echo "`aida-config --include`")18 G4ANALYSIS_AIDA_CONFIG_CFLAGS := $(patsubst /I%,-I"%",$(G4ANALYSIS_TMP ))17 G4ANALYSIS_TMP_1 := $(shell echo "`aida-config --include`") 18 G4ANALYSIS_AIDA_CONFIG_CFLAGS := $(patsubst /I%,-I"%",$(G4ANALYSIS_TMP_1)) 19 19 else 20 20 G4ANALYSIS_AIDA_CONFIG_CFLAGS := `aida-config --include` … … 22 22 endif 23 23 ifndef G4ANALYSIS_AIDA_CONFIG_LIBS 24 G4ANALYSIS_AIDA_CONFIG_LIBS := `aida-config --lib` 24 ifneq (,$(findstring WIN32-VC,$(G4SYSTEM))) 25 # The "aida-config --lib" for VC may return information 26 # by using the Windows /LIBPATH syntax which is not understood 27 # by g++ used by the Geant4 make system to link applications. 28 G4ANALYSIS_TMP_2 := $(shell echo "`aida-config --lib`" | sed -e 's:\\:/:g') 29 G4ANALYSIS_AIDA_CONFIG_LIBS := $(patsubst /LIBPATH:%,'-libpath:'%,$(G4ANALYSIS_TMP_2)) 30 else 31 G4ANALYSIS_AIDA_CONFIG_LIBS := `aida-config --lib` 32 endif 25 33 endif 26 34 CPPFLAGS += $(G4ANALYSIS_AIDA_CONFIG_CFLAGS) -
trunk/config/architecture.gmk
r886 r1045 1 # $Id: architecture.gmk,v 1.1 16 2008/11/13 16:15:14gcosmo Exp $1 # $Id: architecture.gmk,v 1.120 2009/01/26 11:08:02 gcosmo Exp $ 2 2 # ------------------------------------------------------------------------ 3 3 # GEANT 4 - Architecture configuration script for GNU Make … … 270 270 ifndef GDMLLIBS 271 271 ifneq (,$(findstring WIN32-VC,$(G4SYSTEM))) 272 GDMLLIBS := $(LIB_PATH)$(XERCESCROOT)/lib xerces-c _2.lib272 GDMLLIBS := $(LIB_PATH)$(XERCESCROOT)/lib xerces-c.lib 273 273 else 274 274 GDMLLIBS := -L$(XERCESCROOT)/lib -lxerces-c … … 308 308 # 309 309 SED := sed 310 311 # Default find used with source/GNUmakefile. Changed for WIN32. 312 # 313 FIND := find 314 315 # Default sort used with source/GNUmakefile. Changed for WIN32. 316 # 317 SORT := sort 318 319 # Default touch used with source/GNUmakefile. Changed for WIN32. 320 # 321 TOUCH := touch 310 322 311 323 # Include architecture dependent setups... -
trunk/config/binmake.gmk
r921 r1045 1 # $Id: binmake.gmk,v 1.13 8 2008/11/14 19:58:19gcosmo Exp $1 # $Id: binmake.gmk,v 1.139 2008/12/03 13:35:36 gcosmo Exp $ 2 2 # ---------------------------------------------------------- 3 3 # Script defining rules and paths for making binaries. … … 34 34 # Verify the existance of granular shared libraries (Unix) or global DLLs (Windows) 35 35 # 36 ifndef SHAREDLIBS 37 SHAREDLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4globman.$(SHEXT) && echo yes) 38 endif 36 39 ifneq (,$(findstring WIN32-VC,$(G4SYSTEM))) 37 40 SHAREDLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/G4global.$(SHEXT) && echo yes) … … 273 276 # (why?) the user is not supposed to be able to define... 274 277 # 275 LDLIBS 5+= $(LOADLIBS)278 LDLIBS4 += $(LOADLIBS) 276 279 277 280 # Finally assemble libraries... … … 282 285 else 283 286 # Again, do not use := or +=. See note on LDLIBS2 above. 284 LDLIBS_PREFINAL = $(LDLIBS1) $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3) $(LDLIBS4)287 LDLIBS_PREFINAL = $(LDLIBS1) $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3) 285 288 # Version leaving out EXTRALIBS 286 LDLIBS_KERNEL = $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3) $(LDLIBS4)287 endif 288 LDLIBS_PREFINAL += $(LDLIBS 5)289 LDLIBS_KERNEL += $(LDLIBS 5)289 LDLIBS_KERNEL = $(LDLIBS2) $(LDLIBS2EXTRA) $(LDLIBS3) 290 endif 291 LDLIBS_PREFINAL += $(LDLIBS4) 292 LDLIBS_KERNEL += $(LDLIBS4) 290 293 291 294 ifneq (,$(findstring WIN32-VC,$(G4SYSTEM))) … … 351 354 ifdef CPPVERBOSE 352 355 $(CXX) $(CXXFLAGS) $(CPPFLAGS) \ 353 $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) 356 $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \ 354 357 $(LDLIBS) 355 358 else 356 359 @echo Linking $(G4TARGET) ... 357 360 @$(CXX) $(CXXFLAGS) $(CPPFLAGS) \ 358 $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \361 $(OUT)$(G4BINDIR)/$(G4TARGET) $(objects) $(LDFLAGS) \ 359 362 $(LDLIBS) 360 363 @if [ \( -f $(G4BINDIR)/$(G4TARGET) \) ]; then \ … … 368 371 $(G4TMPDIR)/exe/obj.last: $(objects) 369 372 endif 370 @ touch$@373 @$(TOUCH) $@ 371 374 372 375 # Make the $(G4TARGET).$(TARGOBJEXT) file. -
trunk/config/common.gmk
r790 r1045 1 # $Id: common.gmk,v 1.5 2 2008/04/30 10:40:12 lgarnierExp $1 # $Id: common.gmk,v 1.54 2009/02/26 16:29:08 gcosmo Exp $ 2 2 # ---------------------------------------------------------------- 3 3 # Common part of GNUmakefile for libraries. John Allison, 5/7/95. … … 89 89 # Touch the versioning file 90 90 $(G4TMPDIR)/obj.last: $(objects) 91 @ touch$@91 @$(TOUCH) $@ 92 92 93 93 # Make the .d file(s) and include it(them). … … 151 151 @rm -f $(G4LIBDIR)/lib$(name).$(SHEXT) 152 152 @rm -rf $(G4TMPDIR) 153 @rm -rf moc 153 154 endif 154 155 -
trunk/config/globlib.gmk
r472 r1045 1 # $Id: globlib.gmk,v 1.2 8 2005/12/07 09:53:46gcosmo Exp $1 # $Id: globlib.gmk,v 1.29 2009/02/26 16:40:40 gcosmo Exp $ 2 2 # -------------------------------------------------------------- 3 3 # Script for compound libraries. Gabriele Cosmo, 25/6/98. … … 116 116 rm -f $(G4LIBDIR)/*$$lib.$(SHEXT) );\ 117 117 done 118 @for dir in $(SUBDIRS); do (rm -rf $$dir/moc); done 118 119 @rm -f $(G4LIBDIR)/*$(name).a 119 120 @rm -f $(G4LIBDIR)/*$(name).lib -
trunk/config/moc.gmk
r893 r1045 1 # $Id: moc.gmk,v 1. 2 2008/11/24 14:19:44 lgarnierExp $1 # $Id: moc.gmk,v 1.3 2008/12/03 13:35:36 gcosmo Exp $ 2 2 # ---------------------------------------------------------------- 3 3 # Common part of GNUmakefile for libraries. John Allison, 5/7/95. … … 13 13 14 14 ifneq ($(G4INTY_BUILD_QT),) 15 moc_inc := $(shell ( grep-l "Q_OBJECT" include/*.hh))15 moc_inc := $(shell ($(GREP) -l "Q_OBJECT" include/*.hh)) 16 16 moc_sources := $(patsubst include/%.hh, moc/%_moc.cc, $(moc_inc)) 17 17 moc_objects := $(patsubst moc/%_moc.cc,$(G4TMPDIR)/%_moc.o,$(moc_sources)) … … 46 46 @echo Making moc file for $< ... 47 47 @if [ ! -d moc ] ; then mkdir -p moc ;fi 48 @if [ `$(QTMOC) -v 2>&1 | grep"Qt 3" | wc -l ` -gt 0 ]; then \48 @if [ `$(QTMOC) -v 2>&1 | $(GREP) "Qt 3" | wc -l ` -gt 0 ]; then \ 49 49 $(QTMOC) -o $@ $<;\ 50 50 else $(QTMOC) $(MOC_MACRO) -o $@ $<; \ -
trunk/config/scripts/env.csh.SH
r886 r1045 577 577 if ( ${?LD_LIBRARY_PATH} ) then 578 578 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM} 579 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_ BASE_DIR}/lib579 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR} 580 580 581 581 if ( ${?G4LIB_BUILD_GDML} ) then … … 585 585 else 586 586 setenv LD_LIBRARY_PATH ${G4LIB}/${G4SYSTEM} 587 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_ BASE_DIR}/lib587 setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR} 588 588 589 589 if ( ${?G4LIB_BUILD_GDML} ) then … … 602 602 if ( ${?DYLD_LIBRARY_PATH} ) then 603 603 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM} 604 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_ BASE_DIR}/lib604 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR} 605 605 606 606 if ( ${?G4LIB_BUILD_GDML} ) then … … 610 610 else 611 611 setenv DYLD_LIBRARY_PATH ${G4LIB}/${G4SYSTEM} 612 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_ BASE_DIR}/lib612 setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR} 613 613 614 614 if ( ${?G4LIB_BUILD_GDML} ) then -
trunk/config/scripts/env.sh.SH
r886 r1045 591 591 export QTLIBS 592 592 export QTMOC 593 if test "x\$g4non_display" = "x" ; then 593 594 echo "On this machine the QTFLAGS=\$QTFLAGS" 594 595 echo "On this machine the QTLIBS=\$QTLIBS" 595 596 echo "On this machine the QTMOC=\$QTMOC" 597 fi 596 598 fi 597 599 … … 609 611 export QTMOC 610 612 export GLQTLIBS 613 if test "x\$g4non_display" = "x" ; then 611 614 echo "On this machine the QTFLAGS=\$QTFLAGS" 612 615 echo "On this machine the GLQTLIBS=\$GLQTLIBS" 613 616 echo "On this machine the QTMOC=\$QTMOC" 614 617 fi 618 fi 615 619 616 620 … … 623 627 G4LIB_BUILD_GDML=1 624 628 export G4LIB_BUILD_GDML 629 if test "x\$g4non_display" = "x" ; then 625 630 echo "On this machine the G4LIB_BUILD_GDML=\$G4LIB_BUILD_GDML" 631 fi 626 632 fi 627 633 … … 629 635 XERCESCROOT=$g4gdml_xercesc_root 630 636 export XERCESCROOT 637 if test "x\$g4non_display" = "x" ; then 631 638 echo "On this machine the XERCESCROOT=\$XERCESCROOT" 639 fi 632 640 fi 633 641 … … 771 779 if [ $G4LIB_BUILD_SHARED ] ; then 772 780 # 773 # Warning about LD_LIBRARY_PATH 774 # 775 echo '' 776 echo 'LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. ' 777 echo '' 778 echo 'NOTE : verify that the correct path for the CLHEP library' 779 echo '- $CLHEP_BASE_DIR/lib - is included in the $LD_LIBRARY_PATH' 780 echo 'variable in your environment, and no other outdated installations' 781 echo 'of CLHEP are by chance referenced through $LD_LIBRARY_PATH and' 782 echo 'present in your system !' 783 echo '' 781 # Warning about LD_LIBRARY_PATH unless g4non_display is set! 782 # 783 if test "x\$g4non_display" = "x" ; then 784 echo '' 785 echo 'LD_LIBRARY_PATH is set to include CLHEP and Geant4 libraries. ' 786 echo '' 787 echo 'NOTE : verify that the correct path for the CLHEP library' 788 echo '- $CLHEP_BASE_DIR/lib - is included in the $LD_LIBRARY_PATH' 789 echo 'variable in your environment, and no other outdated installations' 790 echo 'of CLHEP are by chance referenced through $LD_LIBRARY_PATH and' 791 echo 'present in your system !' 792 echo '' 793 fi 784 794 785 795 if [ $LD_LIBRARY_PATH ] ; then 786 796 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM} 787 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_ BASE_DIR}/lib797 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR} 788 798 789 799 if [ $G4LIB_BUILD_GDML ] ; then … … 794 804 else 795 805 LD_LIBRARY_PATH=${G4LIB}/${G4SYSTEM} 796 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_ BASE_DIR}/lib806 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${CLHEP_LIB_DIR} 797 807 798 808 if [ $G4LIB_BUILD_GDML ] ; then … … 812 822 if [ $DYLD_LIBRARY_PATH ] ; then 813 823 DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${G4LIB}/${G4SYSTEM} 814 DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_ BASE_DIR}/lib824 DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR} 815 825 816 826 if [ $G4LIB_BUILD_GDML ] ; then … … 821 831 else 822 832 DYLD_LIBRARY_PATH=${G4LIB}/${G4SYSTEM} 823 DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_ BASE_DIR}/lib833 DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:${CLHEP_LIB_DIR} 824 834 825 835 if [ $G4LIB_BUILD_GDML ] ; then -
trunk/config/sys/Darwin-g++.gmk
r1017 r1045 13 13 CXX := g++ 14 14 CXXFLAGS := -Wall -ansi -pedantic -Wno-non-virtual-dtor -Wno-long-long 15 # CXXFLAGS += -Wunused-parameter -Winline -Wunreachable-code 16 CXXFLAGS += -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe15 CXXFLAGS += -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -pipe -Wextra 16 # CXXFLAGS := -Wall -Wextra -ansi -pedantic -Wuninitialized -Winline -Wunreachable-code 17 17 ifdef G4OPTIMISE 18 CXXFLAGS += -O219 FCFLAGS := -O220 CCFLAGS := -O218 # CXXFLAGS += -O2 19 # FCFLAGS := -O2 20 # CCFLAGS := -O2 21 21 else 22 22 ifdef G4DEBUG -
trunk/config/sys/Linux-icc.gmk
r1017 r1045 53 53 endif 54 54 DLDLIBS := -ldl 55 LOADLIBS += -lcxa -lunwind56 55 ifndef OGLFLAGS 57 56 OGLFLAGS := -I$(OGLHOME)/include
Note: See TracChangeset
for help on using the changeset viewer.