source: trunk/geant4/config/G4UI_USE.gmk @ 483

Last change on this file since 483 was 483, checked in by garnier, 17 years ago

r569@mac-90108: laurentgarnier | 2007-06-05 15:53:34 +0200
version contre geant4.8.2.p01

File size: 2.3 KB
Line 
1# $Id: G4UI_USE.gmk,v 1.8 2003/10/17 10:17:10 gbarrand Exp $
2# -------------------------------------------------------------
3# GNUmakefile for CPPFLAGS for interfaces USE phase.
4#   John Allison, 6th July 1998.
5
6########################### interfaces/basic #######################
7ifndef G4UI_USE_INCLUDED
8  G4UI_USE_INCLUDED = 1
9 
10ifndef G4UI_NONE
11
12UILIBS :=
13
14# Sessions not needing external packages or libraries.  These
15# libraries are always built (see G4UI_BUILD.gmk) and linked so the
16# user can instantiate one of these sessions without rebuilding the
17# libraries.  For backwards compatibility with user code, as typified
18# by geant4/examples main programs, the C-pre-processor variables
19# corresponding to the original environment variables are set, but
20# there is no dependency in the Geant4 kernel; a user may instantiate
21# a session from this list without setting any environment variables.
22# However, if he/she sets no environment variables, then the
23# C-pre-processor variable G4UI_USE_TERMINAL is set by default, although
24# there is no need to use it.
25
26ifneq ($(G4INCLUDE_EXEC),1)
27  CPPFLAGS += -I$(G4BASE)/interfaces/basic/include
28  CPPFLAGS += -I$(G4BASE)/interfaces/common/include
29  CPPFLAGS += -I$(G4BASE)/interfaces/GAG/include
30endif
31UILIBS   += -lG4UIbasic
32UILIBS   += -lG4UIcommon
33UILIBS   += -lG4UIGAG
34
35ifdef G4UI_USE_TERMINAL
36  G4UI_USE  = 1
37  CPPFLAGS += -DG4UI_USE_TERMINAL
38endif
39
40ifdef G4UI_USE_TCSH
41  G4UI_USE  = 1
42  CPPFLAGS += -DG4UI_USE_TCSH
43endif
44
45ifdef G4UI_USE_GAG
46  G4UI_USE  = 1
47  CPPFLAGS += -DG4UI_USE_GAG
48endif
49
50# Other sessions: environment variables *must* be used to control the build
51# and the usage, becuase they need external packages or libraries.
52
53ifdef G4UI_USE_XM
54  G4UI_USE  = 1
55  G4INTY_USE_XT = 1
56  INC_XM    = 1
57  LOAD_XM   = 1
58  CPPFLAGS += -DG4UI_USE_XM
59endif
60
61ifdef G4UI_USE_XAW
62  G4UI_USE  = 1
63  G4INTY_USE_XT = 1
64  INC_XAW   = 1
65  LOAD_XAW  = 1
66  CPPFLAGS += -DG4UI_USE_XAW
67endif
68
69ifdef G4UI_USE_WIN32
70  G4UI_USE  = 1
71  G4INTY_USE_WIN32 = 1
72  CPPFLAGS    += -DG4UI_USE_WIN32
73endif
74
75########################### interfaces/XVT - not currently implemented #####
76
77##################### Default to TERMINAL if no environment variables set ##
78##################### (No need actually to use it - see above.) ############
79
80ifndef G4UI_USE
81  G4UI_USE  = 1
82  CPPFLAGS += -DG4UI_USE_TERMINAL
83endif
84
85endif #G4UI_NONE
86endif # G4UI_USE_INCLUDED
Note: See TracBrowser for help on using the repository browser.