Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/config/analysis.gmk is written in an unsupported language. File is not indexed.

0001 #   Guy Barrand, 20th Mai 2000
0002 #
0003 # Analysis variables...
0004 #
0005 
0006 ANALYSISLIBS := 
0007 
0008 ifdef G4ANALYSIS_USE
0009   CPPFLAGS += -DG4ANALYSIS_USE
0010   ifndef G4ANALYSIS_AIDA_CONFIG_CFLAGS
0011     ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
0012       # The "aida-config --include" for VC may return information
0013       # by using the Windows /I syntax which is not understood
0014       # by "g++ -M" used by the Geant4 make system to get dependencies.
0015       # Then we transform to use the -I syntax which is understood by 
0016       # both g++ and CL.exe compilers :
0017       G4ANALYSIS_TMP_1 := $(shell echo "`aida-config --include`")
0018       G4ANALYSIS_AIDA_CONFIG_CFLAGS := $(patsubst /I%,-I"%",$(G4ANALYSIS_TMP_1))
0019     else
0020       G4ANALYSIS_AIDA_CONFIG_CFLAGS := `aida-config --include`
0021     endif
0022   endif
0023   ifndef G4ANALYSIS_AIDA_CONFIG_LIBS
0024     ifneq (,$(findstring WIN32-VC,$(G4SYSTEM)))
0025       # The "aida-config --lib" for VC may return information
0026       # by using the Windows /LIBPATH syntax which is not understood
0027       # by g++ used by the Geant4 make system to link applications.
0028       G4ANALYSIS_TMP_2 := $(shell echo "`aida-config --lib`" | sed -e 's:\\:/:g')
0029       G4ANALYSIS_AIDA_CONFIG_LIBS := $(patsubst /LIBPATH:%,'-libpath:'%,$(G4ANALYSIS_TMP_2))
0030     else
0031       G4ANALYSIS_AIDA_CONFIG_LIBS := `aida-config --lib`
0032     endif
0033   endif
0034   CPPFLAGS += $(G4ANALYSIS_AIDA_CONFIG_CFLAGS)
0035   ANALYSISLIBS += $(G4ANALYSIS_AIDA_CONFIG_LIBS)
0036 endif
0037 
0038 
0039