[790] | 1 | # $Id: G4VIS_USE.gmk,v 1.24 2008/04/30 10:40:12 lgarnier Exp $ |
---|
[472] | 2 | # ------------------------------------------------------------- |
---|
| 3 | # GNUmakefile for CPPFLAGS for visualization USE phase. |
---|
| 4 | # John Allison, 24th January 1998. |
---|
| 5 | |
---|
| 6 | ifndef G4VIS_NONE |
---|
| 7 | |
---|
| 8 | ifndef G4VIS_USE_INCLUDED |
---|
| 9 | G4VIS_USE_INCLUDED = 1 |
---|
| 10 | |
---|
| 11 | ifndef VISLIBS |
---|
| 12 | VISLIBS := |
---|
| 13 | endif |
---|
| 14 | |
---|
| 15 | # Not needing external packages or libraries... |
---|
| 16 | # Set old USE C-pre-processor flags for backwards compatibility of user code... |
---|
| 17 | |
---|
| 18 | CPPFLAGS += -DG4VIS_USE_DAWNFILE |
---|
| 19 | VISLIBS += -lG4FR |
---|
| 20 | |
---|
| 21 | CPPFLAGS += -DG4VIS_USE_HEPREPFILE |
---|
| 22 | VISLIBS += -lG4visHepRep |
---|
| 23 | |
---|
| 24 | CPPFLAGS += -DG4VIS_USE_RAYTRACER |
---|
| 25 | VISLIBS += -lG4RayTracer |
---|
| 26 | |
---|
| 27 | CPPFLAGS += -DG4VIS_USE_VRMLFILE |
---|
| 28 | VISLIBS += -lG4VRML |
---|
| 29 | |
---|
| 30 | CPPFLAGS += -DG4VIS_USE_ASCIITREE |
---|
| 31 | CPPFLAGS += -DG4VIS_USE_GAGTREE |
---|
| 32 | VISLIBS += -lG4Tree |
---|
| 33 | |
---|
| 34 | ifneq ($(G4INCLUDE_EXEC),1) |
---|
| 35 | CPPFLAGS += -I$(G4BASE)/visualization/FukuiRenderer/include |
---|
| 36 | CPPFLAGS += -I$(G4BASE)/visualization/HepRep/include |
---|
| 37 | CPPFLAGS += -I$(G4BASE)/visualization/RayTracer/include |
---|
| 38 | CPPFLAGS += -I$(G4BASE)/visualization/VRML/include |
---|
| 39 | CPPFLAGS += -I$(G4BASE)/visualization/Tree/include |
---|
[1144] | 40 | CPPFLAGS += -I$(G4BASE)/visualization/gMocren/include |
---|
[472] | 41 | endif |
---|
| 42 | |
---|
| 43 | ifdef G4VIS_USE_DAWN |
---|
| 44 | CPPFLAGS += -DG4VIS_USE_DAWN |
---|
| 45 | # CPPFLAGS += -I... and VISLIBS += set above. |
---|
| 46 | endif |
---|
| 47 | |
---|
| 48 | ifdef G4VIS_USE_OPENGLX |
---|
| 49 | G4VIS_USE_OPENGL = 1 |
---|
| 50 | CPPFLAGS += -DG4VIS_USE_OPENGLX |
---|
| 51 | INC_X11 = 1 |
---|
| 52 | LOAD_X11 = 1 |
---|
| 53 | endif |
---|
| 54 | ifdef G4VIS_USE_OPENGLXM |
---|
| 55 | G4VIS_USE_OPENGL = 1 |
---|
| 56 | CPPFLAGS += -DG4VIS_USE_OPENGLXM |
---|
| 57 | INC_XM = 1 |
---|
| 58 | LOAD_XM = 1 |
---|
| 59 | endif |
---|
[486] | 60 | ifdef G4VIS_USE_OPENGLQT |
---|
| 61 | G4VIS_USE_OPENGL = 1 |
---|
| 62 | CPPFLAGS += -DG4VIS_USE_OPENGLQT |
---|
[777] | 63 | VISLIBS += -lG4OpenGL |
---|
| 64 | INC_GL = 1 |
---|
[486] | 65 | INC_QT = 1 |
---|
[766] | 66 | LOAD_GLQT = 1 |
---|
[486] | 67 | endif |
---|
[472] | 68 | ifdef G4VIS_USE_OPENGLWIN32 |
---|
| 69 | G4VIS_USE_OPENGL = 1 |
---|
| 70 | CPPFLAGS += -DG4VIS_USE_OPENGLWIN32 |
---|
| 71 | endif |
---|
| 72 | ifdef G4VIS_USE_OPENGL |
---|
| 73 | CPPFLAGS += -DG4VIS_USE_OPENGL |
---|
| 74 | ifneq ($(G4INCLUDE_EXEC),1) |
---|
| 75 | CPPFLAGS += -I$(G4BASE)/visualization/OpenGL/include |
---|
| 76 | endif |
---|
[777] | 77 | VISLIBS += -lG4OpenGL |
---|
[472] | 78 | INC_GL = 1 |
---|
| 79 | LOAD_GL = 1 |
---|
| 80 | endif |
---|
| 81 | |
---|
| 82 | ifdef G4VIS_USE_OIX |
---|
| 83 | G4VIS_USE_OI = 1 |
---|
| 84 | CPPFLAGS += -DG4VIS_USE_OIX |
---|
| 85 | INC_XM = 1 |
---|
| 86 | LOAD_XM = 1 |
---|
| 87 | endif |
---|
[486] | 88 | ifdef G4VIS_USE_OIQT |
---|
| 89 | G4VIS_USE_OI = 1 |
---|
| 90 | CPPFLAGS += -DG4VIS_USE_OIQT |
---|
| 91 | INC_QT = 1 |
---|
[777] | 92 | LOAD_QT = 1 |
---|
[486] | 93 | endif |
---|
[472] | 94 | ifdef G4VIS_USE_OIWIN32 |
---|
| 95 | G4VIS_USE_OI = 1 |
---|
| 96 | CPPFLAGS += -DG4VIS_USE_OIWIN32 |
---|
| 97 | endif |
---|
| 98 | ifdef G4VIS_USE_OI |
---|
| 99 | CPPFLAGS += -DG4VIS_USE_OI |
---|
| 100 | ifneq ($(G4INCLUDE_EXEC),1) |
---|
| 101 | CPPFLAGS += -I$(G4BASE)/visualization/OpenInventor/include |
---|
| 102 | endif |
---|
| 103 | VISLIBS += -lG4OpenInventor |
---|
| 104 | INC_IV = 1 |
---|
| 105 | LOAD_IV = 1 |
---|
| 106 | endif |
---|
| 107 | |
---|
| 108 | ifdef G4VIS_USE_RAYTRACERX |
---|
| 109 | CPPFLAGS += -DG4VIS_USE_RAYTRACERX |
---|
| 110 | # CPPFLAGS += -I... and VISLIBS += set above. |
---|
| 111 | INC_X11 = 1 |
---|
| 112 | LOAD_X11 = 1 |
---|
| 113 | endif |
---|
| 114 | |
---|
| 115 | ifdef G4VIS_USE_VRML |
---|
| 116 | CPPFLAGS += -DG4VIS_USE_VRML |
---|
| 117 | # CPPFLAGS += -I... and VISLIBS += set above. |
---|
| 118 | endif |
---|
| 119 | |
---|
| 120 | ########################### and finally... ####################### |
---|
| 121 | |
---|
| 122 | G4VIS_USE = 1 |
---|
| 123 | CPPFLAGS += -DG4VIS_USE |
---|
| 124 | ifneq ($(G4INCLUDE_EXEC),1) |
---|
| 125 | CPPFLAGS += -I$(G4BASE)/visualization/management/include |
---|
| 126 | CPPFLAGS += -I$(G4BASE)/visualization/modeling/include |
---|
| 127 | endif |
---|
| 128 | VISLIBS += -lG4vis_management |
---|
| 129 | VISLIBS += -lG4modeling |
---|
| 130 | |
---|
| 131 | endif # G4VIS_USE_INCLUDED |
---|
| 132 | endif # G4VIS_NONE |
---|