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