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

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

r785@wl-72126: garnier | 2008-04-17 11:30:37 +0200
une version qui marche avec les moc

File size: 2.1 KB
Line 
1#  GNUmakefile for CPPFLAGS, LDFLAGS for interactivy,
2# ie interfaces and visualization.
3#
4#  Here we really set the CCPFLAGS, LDFLAGS for X11, Motif,...
5# according various INC_xxx, LOAD_xxx flags setted in
6# G4[UI, VIS]_[USE, BUILD].gmk. With this logic the
7# flags for one product (X11, Motif,...) will appear once
8# in the compilation/load command line.
9#
10#   Guy Barrand, 7th July 1998.
11
12# Other libraries
13
14########################### Inventor ############
15
16# Should be before OpenGL.
17ifdef INC_IV
18  INC_GL    = 1
19  CPPFLAGS += $(OIVFLAGS)
20endif
21ifdef LOAD_IV
22  LOAD_GL  = 1
23  INTYLIBS += $(OIVLIBS)
24endif
25
26########################### Qt ###############################
27# Should be before X11.
28ifdef INC_QT
29  CPPFLAGS += $(QTFLAGS)
30endif
31ifdef LOAD_QT
32  INTYLIBS += $(QTLIBS)
33endif
34
35########################### Open GL Qt ###############################
36# Should be before X11.
37ifdef LOAD_GLQT
38  INTYLIBS += -D LOAD_GLQT $(GLQTLIBS) -D END_OF_LOAD_GLQT
39endif
40
41########################### OpenGL ###############################
42
43ifdef INC_GL
44  CPPFLAGS += $(OGLFLAGS)
45endif
46ifdef LOAD_GL
47  INTYLIBS += -D_LOAD_GL $(OGLLIBS) -D_LOAD_GL
48else
49  INTYLIBS += -D_NO_LOAD_GL
50endif
51
52########################### Motif, Athena, X11 ###################
53# Motif raise X11 flags.
54
55# Should be before X11.
56ifdef INC_XM
57  INC_X11   = 1
58  CPPFLAGS += $(XMFLAGS)
59endif
60ifdef LOAD_XM
61  LOAD_X11           = 1
62  INTYLIBS += $(XMLIBS)
63endif
64
65# Should be before X11.
66ifdef INC_XAW
67  INC_X11   = 1
68  CPPFLAGS += $(XAWFLAGS)
69endif
70ifdef LOAD_XAW
71  LOAD_X11           = 1
72  INTYLIBS += $(XAWLIBS)
73endif
74
75
76ifdef INC_X11
77  CPPFLAGS += $(X11FLAGS)
78endif
79ifdef LOAD_X11
80  INTYLIBS += $(X11LIBS)
81endif
82
83
84########################### and finally... #######################
85
86ifdef G4INTY_BUILD_XT
87  CPPFLAGS += -DG4INTY_BUILD_XT
88endif
89
90ifdef G4INTY_BUILD_QT
91  CPPFLAGS += -DG4INTY_BUILD_QT
92endif
93
94ifdef G4INTY_USE_XT
95  CPPFLAGS += -DG4INTY_USE_XT
96endif
97
98ifdef G4INTY_USE_QT
99  CPPFLAGS += -DG4INTY_USE_QT
100endif
101
102ifdef G4INTY_BUILD_WIN32
103  CPPFLAGS += -DG4INTY_BUILD_WIN32
104endif
105
106ifdef G4INTY_USE_WIN32
107  CPPFLAGS += -DG4INTY_USE_WIN32
108  INTYLIBS += $(UI32LIBS)
109endif
110
Note: See TracBrowser for help on using the repository browser.