[472] | 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 | |
---|
[758] | 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 |
---|
[766] | 34 | ifdef LOAD_GLQT |
---|
[855] | 35 | INTYLIBS += $(GLQTLIBS) |
---|
[766] | 36 | endif |
---|
| 37 | |
---|
[472] | 38 | ########################### OpenGL ############################### |
---|
| 39 | |
---|
| 40 | ifdef INC_GL |
---|
| 41 | CPPFLAGS += $(OGLFLAGS) |
---|
| 42 | endif |
---|
| 43 | ifdef LOAD_GL |
---|
[787] | 44 | INTYLIBS += $(OGLLIBS) |
---|
[472] | 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 | # Should be before X11. |
---|
| 61 | ifdef INC_XAW |
---|
| 62 | INC_X11 = 1 |
---|
| 63 | CPPFLAGS += $(XAWFLAGS) |
---|
| 64 | endif |
---|
| 65 | ifdef LOAD_XAW |
---|
| 66 | LOAD_X11 = 1 |
---|
| 67 | INTYLIBS += $(XAWLIBS) |
---|
| 68 | endif |
---|
| 69 | |
---|
[758] | 70 | |
---|
[472] | 71 | ifdef INC_X11 |
---|
| 72 | CPPFLAGS += $(X11FLAGS) |
---|
| 73 | endif |
---|
| 74 | ifdef LOAD_X11 |
---|
| 75 | INTYLIBS += $(X11LIBS) |
---|
| 76 | endif |
---|
| 77 | |
---|
[486] | 78 | |
---|
[472] | 79 | ########################### and finally... ####################### |
---|
| 80 | |
---|
| 81 | ifdef G4INTY_BUILD_XT |
---|
| 82 | CPPFLAGS += -DG4INTY_BUILD_XT |
---|
| 83 | endif |
---|
| 84 | |
---|
[486] | 85 | ifdef G4INTY_BUILD_QT |
---|
| 86 | CPPFLAGS += -DG4INTY_BUILD_QT |
---|
| 87 | endif |
---|
| 88 | |
---|
[472] | 89 | ifdef G4INTY_USE_XT |
---|
| 90 | CPPFLAGS += -DG4INTY_USE_XT |
---|
| 91 | endif |
---|
| 92 | |
---|
[486] | 93 | ifdef G4INTY_USE_QT |
---|
| 94 | CPPFLAGS += -DG4INTY_USE_QT |
---|
| 95 | endif |
---|
| 96 | |
---|
[472] | 97 | ifdef G4INTY_BUILD_WIN32 |
---|
| 98 | CPPFLAGS += -DG4INTY_BUILD_WIN32 |
---|
| 99 | endif |
---|
| 100 | |
---|
| 101 | ifdef G4INTY_USE_WIN32 |
---|
| 102 | CPPFLAGS += -DG4INTY_USE_WIN32 |
---|
| 103 | INTYLIBS += $(UI32LIBS) |
---|
| 104 | endif |
---|
| 105 | |
---|