# $Id: G4UI_USE.gmk,v 1.12 2008/05/14 09:48:19 gbarrand Exp $ # ------------------------------------------------------------- # GNUmakefile for CPPFLAGS for interfaces USE phase. # John Allison, 6th July 1998. ########################### interfaces/basic ####################### ifndef G4UI_USE_INCLUDED G4UI_USE_INCLUDED = 1 ifndef G4UI_NONE UILIBS := # Sessions not needing external packages or libraries. These # libraries are always built (see G4UI_BUILD.gmk) and linked so the # user can instantiate one of these sessions without rebuilding the # libraries. For backwards compatibility with user code, as typified # by geant4/examples main programs, the C-pre-processor variables # corresponding to the original environment variables are set, but # there is no dependency in the Geant4 kernel; a user may instantiate # a session from this list without setting any environment variables. # However, if he/she sets no environment variables, then the # C-pre-processor variable G4UI_USE_TERMINAL is set by default, although # there is no need to use it. ifneq ($(G4INCLUDE_EXEC),1) CPPFLAGS += -I$(G4BASE)/interfaces/basic/include CPPFLAGS += -I$(G4BASE)/interfaces/common/include CPPFLAGS += -I$(G4BASE)/interfaces/GAG/include endif UILIBS += -lG4UIbasic UILIBS += -lG4UIcommon UILIBS += -lG4UIGAG ifdef G4UI_USE_TERMINAL G4UI_USE = 1 CPPFLAGS += -DG4UI_USE_TERMINAL endif ifdef G4UI_USE_TCSH G4UI_USE = 1 CPPFLAGS += -DG4UI_USE_TCSH endif ifdef G4UI_USE_GAG G4UI_USE = 1 CPPFLAGS += -DG4UI_USE_GAG endif # Other sessions: environment variables *must* be used to control the build # and the usage, becuase they need external packages or libraries. ifdef G4UI_USE_XM G4UI_USE = 1 G4INTY_USE_XT = 1 INC_XM = 1 LOAD_XM = 1 CPPFLAGS += -DG4UI_USE_XM endif ifdef G4UI_USE_QT G4UI_USE = 1 G4INTY_USE_QT = 1 INC_QT = 1 LOAD_QT = 1 CPPFLAGS += -DG4UI_USE_QT endif ifdef G4UI_USE_XAW G4UI_USE = 1 G4INTY_USE_XT = 1 INC_XAW = 1 LOAD_XAW = 1 CPPFLAGS += -DG4UI_USE_XAW endif ifdef G4UI_USE_WIN32 G4UI_USE = 1 G4INTY_USE_WIN32 = 1 CPPFLAGS += -DG4UI_USE_WIN32 endif ifdef G4UI_USE_OSC CPPFLAGS += -DG4UI_USE_OSC ifneq (,$(findstring WIN32-VC,$(G4SYSTEM))) # need a syntax that both g++ and CL.exe understand : G4OSC_TMP_1 := $(shell echo "`osc-config --g4lab_incs`") CPPFLAGS += $(patsubst /I%,-I"%",$(G4OSC_TMP_1)) else CPPFLAGS += `osc-config --g4lab_incs` endif INTYLIBS += `osc-config --g4lab_libs` INTYLIBS += `osc-config --iv_libs` # ifndef G4ANALYSIS_AIDA_CONFIG_CFLAGS ifneq (,$(findstring WIN32-VC,$(G4SYSTEM))) # need a syntax that both g++ and CL.exe understand : G4OSC_TMP_2 := $(shell echo "`aida-config --include`") G4ANALYSIS_AIDA_CONFIG_CFLAGS := $(patsubst /I%,-I"%",$(G4OSC_TMP_2)) endif endif endif ########################### interfaces/XVT - not currently implemented ##### ##################### Default to TERMINAL if no environment variables set ## ##################### (No need actually to use it - see above.) ############ ifndef G4UI_USE G4UI_USE = 1 CPPFLAGS += -DG4UI_USE_TERMINAL endif endif #G4UI_NONE endif # G4UI_USE_INCLUDED