Back to home page

EIC code displayed by LXR

 
 

    


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

0001 # -------------------------------------------------------------
0002 # GNUmakefile for CPPFLAGS for interfaces USE phase.
0003 #   John Allison, 6th July 1998.
0004 
0005 ifndef G4UI_NONE
0006 
0007 ifndef G4UI_USE_INCLUDED
0008 G4UI_USE_INCLUDED = 1
0009   
0010 ifndef UILIBS
0011   UILIBS :=
0012 endif
0013 
0014 # Sessions not needing external packages or libraries.  These
0015 # libraries are always built (see G4UI_BUILD.gmk) and linked so the
0016 # user can instantiate one of these sessions without rebuilding the
0017 # libraries.  For backwards compatibility with user code, as typified
0018 # by geant4/examples main programs, the C-pre-processor variables
0019 # corresponding to the original environment variables are set, but
0020 # there is no dependency in the Geant4 kernel; a user may instantiate
0021 # a session from this list without setting any environment variables.
0022 # However, if he/she sets no environment variables, then the
0023 # C-pre-processor variable G4UI_USE_TERMINAL is set by default, although
0024 # there is no need to use it.
0025 
0026 ifneq ($(G4INCLUDE_EXEC),1)
0027   CPPFLAGS += -I$(G4BASE)/interfaces/core/include
0028   CPPFLAGS += -I$(G4BASE)/interfaces/implementation/include
0029 endif
0030 UILIBS   += -lG4UIcore
0031 UILIBS   += -lG4UIimplementation
0032 
0033 ifdef G4UI_USE_TERMINAL
0034   G4UI_USE  = 1
0035   CPPFLAGS += -DG4UI_USE_TERMINAL
0036 endif
0037 
0038 ifdef G4UI_USE_TCSH
0039   G4UI_USE  = 1
0040   CPPFLAGS += -DG4UI_USE_TCSH
0041 endif
0042 
0043 # Other sessions: environment variables *must* be used to control the build
0044 # and the usage, becuase they need external packages or libraries.
0045 
0046 ifdef G4UI_USE_XM
0047   G4UI_USE  = 1
0048   G4INTY_USE_XT = 1
0049   INC_XM    = 1
0050   LOAD_XM   = 1
0051   CPPFLAGS += -DG4UI_USE_XM
0052 endif
0053 
0054 ifdef G4UI_USE_QT
0055   G4UI_USE  = 1
0056   G4INTY_USE_QT = 1
0057   INC_QT   = 1
0058   LOAD_QT   = 1
0059   CPPFLAGS += -DG4UI_USE_QT
0060 endif
0061 
0062 ifdef G4UI_USE_WT
0063   G4UI_USE  = 1
0064   G4INTY_USE_WT = 1
0065   INC_WT   = 1
0066   LOAD_WT   = 1
0067   CPPFLAGS += -DG4UI_USE_WT
0068 endif
0069 
0070 ifdef G4UI_USE_XAW
0071   G4UI_USE  = 1
0072   G4INTY_USE_XT = 1
0073   INC_XAW   = 1
0074   LOAD_XAW  = 1
0075   CPPFLAGS += -DG4UI_USE_XAW
0076 endif
0077 
0078 ifdef G4UI_USE_WIN32
0079   G4UI_USE  = 1
0080   G4INTY_USE_WIN32 = 1
0081   CPPFLAGS    += -DG4UI_USE_WIN32
0082 endif
0083 
0084 ##################### Default to TERMINAL if no environment variables set ##
0085 
0086 ifndef G4UI_USE
0087   CPPFLAGS += -DG4UI_USE_TERMINAL
0088 endif
0089 
0090 ########################### and finally... #######################
0091 
0092 G4UI_USE  = 1
0093 CPPFLAGS += -DG4UI_USE
0094 
0095 endif # G4UI_USE_INCLUDED
0096 endif # G4UI_NONE