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. |
---|
17 | ifdef INC_IV |
---|
18 | INC_GL = 1 |
---|
19 | CPPFLAGS += $(OIVFLAGS) |
---|
20 | endif |
---|
21 | ifdef LOAD_IV |
---|
22 | LOAD_GL = 1 |
---|
23 | INTYLIBS += $(OIVLIBS) |
---|
24 | endif |
---|
25 | |
---|
26 | ########################### Qt ############################### |
---|
27 | # Should be before X11. |
---|
28 | ifdef INC_QT |
---|
29 | CPPFLAGS += $(QTFLAGS) |
---|
30 | endif |
---|
31 | ifdef LOAD_QT |
---|
32 | INTYLIBS += $(QTLIBS) |
---|
33 | endif |
---|
34 | ifdef LOAD_GLQT |
---|
35 | INTYLIBS += $(GLQTLIBS) |
---|
36 | endif |
---|
37 | |
---|
38 | ########################### OpenGL ############################### |
---|
39 | |
---|
40 | ifdef INC_GL |
---|
41 | CPPFLAGS += $(OGLFLAGS) |
---|
42 | endif |
---|
43 | ifdef LOAD_GL |
---|
44 | INTYLIBS += $(OGLLIBS) |
---|
45 | endif |
---|
46 | |
---|
47 | ########################### Motif, Athena, X11 ################### |
---|
48 | # Motif raise X11 flags. |
---|
49 | |
---|
50 | # Should be before X11. |
---|
51 | ifdef INC_XM |
---|
52 | INC_X11 = 1 |
---|
53 | CPPFLAGS += $(XMFLAGS) |
---|
54 | endif |
---|
55 | ifdef LOAD_XM |
---|
56 | LOAD_X11 = 1 |
---|
57 | INTYLIBS += $(XMLIBS) |
---|
58 | endif |
---|
59 | |
---|
60 | ifdef INC_X11 |
---|
61 | CPPFLAGS += $(X11FLAGS) |
---|
62 | endif |
---|
63 | ifdef LOAD_X11 |
---|
64 | INTYLIBS += $(X11LIBS) |
---|
65 | endif |
---|
66 | |
---|
67 | |
---|
68 | ########################### and finally... ####################### |
---|
69 | |
---|
70 | ifdef G4INTY_BUILD_XT |
---|
71 | CPPFLAGS += -DG4INTY_BUILD_XT |
---|
72 | endif |
---|
73 | |
---|
74 | ifdef G4INTY_BUILD_QT |
---|
75 | CPPFLAGS += -DG4INTY_BUILD_QT |
---|
76 | endif |
---|
77 | |
---|
78 | ifdef G4INTY_USE_XT |
---|
79 | CPPFLAGS += -DG4INTY_USE_XT |
---|
80 | endif |
---|
81 | |
---|
82 | ifdef G4INTY_USE_QT |
---|
83 | CPPFLAGS += -DG4INTY_USE_QT |
---|
84 | endif |
---|
85 | |
---|
86 | ifdef G4INTY_BUILD_WIN32 |
---|
87 | CPPFLAGS += -DG4INTY_BUILD_WIN32 |
---|
88 | endif |
---|
89 | |
---|
90 | ifdef G4INTY_USE_WIN32 |
---|
91 | CPPFLAGS += -DG4INTY_USE_WIN32 |
---|
92 | INTYLIBS += $(UI32LIBS) |
---|
93 | endif |
---|
94 | |
---|