[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 |
---|
| 34 | |
---|
[766] | 35 | ########################### Open GL Qt ############################### |
---|
| 36 | # Should be before X11. |
---|
| 37 | ifdef LOAD_GLQT |
---|
[787] | 38 | INTYLIBS += $(GLQTLIBS) |
---|
[766] | 39 | endif |
---|
| 40 | |
---|
[472] | 41 | ########################### OpenGL ############################### |
---|
| 42 | |
---|
| 43 | ifdef INC_GL |
---|
| 44 | CPPFLAGS += $(OGLFLAGS) |
---|
| 45 | endif |
---|
| 46 | ifdef LOAD_GL |
---|
[787] | 47 | INTYLIBS += $(OGLLIBS) |
---|
[472] | 48 | endif |
---|
| 49 | |
---|
| 50 | ########################### Motif, Athena, X11 ################### |
---|
| 51 | # Motif raise X11 flags. |
---|
| 52 | |
---|
| 53 | # Should be before X11. |
---|
| 54 | ifdef INC_XM |
---|
| 55 | INC_X11 = 1 |
---|
| 56 | CPPFLAGS += $(XMFLAGS) |
---|
| 57 | endif |
---|
| 58 | ifdef LOAD_XM |
---|
| 59 | LOAD_X11 = 1 |
---|
| 60 | INTYLIBS += $(XMLIBS) |
---|
| 61 | endif |
---|
| 62 | |
---|
| 63 | # Should be before X11. |
---|
| 64 | ifdef INC_XAW |
---|
| 65 | INC_X11 = 1 |
---|
| 66 | CPPFLAGS += $(XAWFLAGS) |
---|
| 67 | endif |
---|
| 68 | ifdef LOAD_XAW |
---|
| 69 | LOAD_X11 = 1 |
---|
| 70 | INTYLIBS += $(XAWLIBS) |
---|
| 71 | endif |
---|
| 72 | |
---|
[758] | 73 | |
---|
[472] | 74 | ifdef INC_X11 |
---|
| 75 | CPPFLAGS += $(X11FLAGS) |
---|
| 76 | endif |
---|
| 77 | ifdef LOAD_X11 |
---|
| 78 | INTYLIBS += $(X11LIBS) |
---|
| 79 | endif |
---|
| 80 | |
---|
[486] | 81 | |
---|
[472] | 82 | ########################### and finally... ####################### |
---|
| 83 | |
---|
| 84 | ifdef G4INTY_BUILD_XT |
---|
| 85 | CPPFLAGS += -DG4INTY_BUILD_XT |
---|
| 86 | endif |
---|
| 87 | |
---|
[486] | 88 | ifdef G4INTY_BUILD_QT |
---|
| 89 | CPPFLAGS += -DG4INTY_BUILD_QT |
---|
| 90 | endif |
---|
| 91 | |
---|
[472] | 92 | ifdef G4INTY_USE_XT |
---|
| 93 | CPPFLAGS += -DG4INTY_USE_XT |
---|
| 94 | endif |
---|
| 95 | |
---|
[486] | 96 | ifdef G4INTY_USE_QT |
---|
| 97 | CPPFLAGS += -DG4INTY_USE_QT |
---|
| 98 | endif |
---|
| 99 | |
---|
[472] | 100 | ifdef G4INTY_BUILD_WIN32 |
---|
| 101 | CPPFLAGS += -DG4INTY_BUILD_WIN32 |
---|
| 102 | endif |
---|
| 103 | |
---|
| 104 | ifdef G4INTY_USE_WIN32 |
---|
| 105 | CPPFLAGS += -DG4INTY_USE_WIN32 |
---|
| 106 | INTYLIBS += $(UI32LIBS) |
---|
| 107 | endif |
---|
| 108 | |
---|