source: trunk/config/G4UI_USE.gmk @ 1279

Last change on this file since 1279 was 1213, checked in by garnier, 15 years ago

Suppression de Xaw. Sauf dans Configure et les fichier G4UIXaw.hh et cc

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