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

Last change on this file since 780 was 766, checked in by garnier, 16 years ago

remise à jour de config

File size: 2.5 KB
Line 
1# $Id: G4UI_USE.gmk,v 1.9 2007/10/03 12:15:05 lgarnier 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_QT
62  G4UI_USE  = 1
63  G4INTY_USE_QT = 1
64  INC_QT   = 1
65  LOAD_QT   = 1
66  CPPFLAGS += -DG4UI_USE_QT
67  INTYLIBS += -DG4UI_USE_QT
68else
69  INTYLIBS += -DNO_G4VIS_USE_OIQT
70endif
71
72ifdef G4UI_USE_XAW
73  G4UI_USE  = 1
74  G4INTY_USE_XT = 1
75  INC_XAW   = 1
76  LOAD_XAW  = 1
77  CPPFLAGS += -DG4UI_USE_XAW
78endif
79
80ifdef G4UI_USE_WIN32
81  G4UI_USE  = 1
82  G4INTY_USE_WIN32 = 1
83  CPPFLAGS    += -DG4UI_USE_WIN32
84endif
85
86########################### interfaces/XVT - not currently implemented #####
87
88##################### Default to TERMINAL if no environment variables set ##
89##################### (No need actually to use it - see above.) ############
90
91ifndef G4UI_USE
92  G4UI_USE  = 1
93  CPPFLAGS += -DG4UI_USE_TERMINAL
94endif
95
96endif #G4UI_NONE
97endif # G4UI_USE_INCLUDED
Note: See TracBrowser for help on using the repository browser.