| 1 | # $Id: GNUmakefile,v 1.27 2010/09/30 09:29:34 gcosmo Exp $
|
|---|
| 2 | # -----------------------------------------------------------------------
|
|---|
| 3 | # GNUmakefile for visualization and modeling. John Allison, 5/7/95.
|
|---|
| 4 | # Modeling is always made. Others by environment. John Allison 4/7/98.
|
|---|
| 5 | # -----------------------------------------------------------------------
|
|---|
| 6 |
|
|---|
| 7 | MAKEFLAGS= --no-print-directory
|
|---|
| 8 |
|
|---|
| 9 | name := G4visualization
|
|---|
| 10 |
|
|---|
| 11 | ifndef G4INSTALL
|
|---|
| 12 | G4INSTALL = ../..
|
|---|
| 13 | endif
|
|---|
| 14 |
|
|---|
| 15 | include $(G4INSTALL)/config/architecture.gmk
|
|---|
| 16 | include $(G4INSTALL)/config/G4VIS_BUILD.gmk
|
|---|
| 17 | include $(G4INSTALL)/config/interactivity.gmk
|
|---|
| 18 |
|
|---|
| 19 | SUBDIRS := modeling
|
|---|
| 20 | SUBLIBS := G4modeling
|
|---|
| 21 |
|
|---|
| 22 | ifdef G4LIB_BUILD_ZLIB
|
|---|
| 23 | SUBDIRS += externals/zlib
|
|---|
| 24 | SUBLIBS += G4zlib
|
|---|
| 25 | endif
|
|---|
| 26 |
|
|---|
| 27 | # For Debug mode
|
|---|
| 28 | # CPPFLAGS += -DG4DEBUG_VIS_OGL
|
|---|
| 29 | # CPPFLAGS += -DG4DEBUG_VIS_OI
|
|---|
| 30 | # CPPFLAGS += -DG4DEBUG_VIS_MANAGEMENT
|
|---|
| 31 |
|
|---|
| 32 | ifdef G4VIS_BUILD
|
|---|
| 33 | # Drivers that can be used without external libraries...
|
|---|
| 34 | SUBDIRS += management
|
|---|
| 35 | SUBLIBS += G4vis_management
|
|---|
| 36 | SUBDIRS += FukuiRenderer
|
|---|
| 37 | SUBLIBS += G4FR
|
|---|
| 38 | SUBDIRS += HepRep
|
|---|
| 39 | SUBLIBS += G4visHepRep
|
|---|
| 40 | SUBDIRS += RayTracer
|
|---|
| 41 | SUBLIBS += G4RayTracer
|
|---|
| 42 | SUBDIRS += VRML
|
|---|
| 43 | SUBLIBS += G4VRML
|
|---|
| 44 | SUBDIRS += Tree
|
|---|
| 45 | SUBLIBS += G4Tree
|
|---|
| 46 | SUBDIRS += XXX
|
|---|
| 47 | SUBLIBS += G4visXXX
|
|---|
| 48 | SUBDIRS += gMocren
|
|---|
| 49 | SUBLIBS += G4GMocren
|
|---|
| 50 | # Drivers needing external libraries...
|
|---|
| 51 | ifdef G4VIS_BUILD_OPENGL_DRIVER
|
|---|
| 52 | SUBDIRS += externals/gl2ps
|
|---|
| 53 | SUBDIRS += OpenGL
|
|---|
| 54 | SUBLIBS += G4OpenGL
|
|---|
| 55 | SUBLIBS += G4gl2ps
|
|---|
| 56 | endif
|
|---|
| 57 | ifdef G4VIS_BUILD_OI_DRIVER
|
|---|
| 58 | SUBDIRS += externals/gl2ps
|
|---|
| 59 | SUBDIRS += OpenInventor
|
|---|
| 60 | SUBLIBS += G4OpenInventor
|
|---|
| 61 | SUBLIBS += G4gl2ps
|
|---|
| 62 | endif
|
|---|
| 63 | endif #G4VIS_BUILD
|
|---|
| 64 |
|
|---|
| 65 | .PHONY: granular obj glob global clean
|
|---|
| 66 |
|
|---|
| 67 | glob global: granular
|
|---|
| 68 |
|
|---|
| 69 | obj:
|
|---|
| 70 | @for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) obj); done
|
|---|
| 71 |
|
|---|
| 72 | granular:
|
|---|
| 73 | @for dir in $(SUBDIRS); do (cd $$dir; $(MAKE)); done
|
|---|
| 74 |
|
|---|
| 75 | includes:
|
|---|
| 76 | @for dir in $(SUBDIRS); do (cd $$dir && $(MAKE) $@ ); done
|
|---|
| 77 |
|
|---|
| 78 | clean clean_libs:
|
|---|
| 79 | @for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) $@); done
|
|---|