Rev | Line | |
---|
[940] | 1 | # $Id: GNUmakefile,v 1.23 2009/03/05 11:32:07 lgarnier 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 |
---|
[959] | 28 | CPPFLAGS += -DG4DEBUG_VIS_OGL |
---|
| 29 | CPPFLAGS += -DG4DEBUG_VIS_OI |
---|
| 30 | CPPFLAGS += -DG4DEBUG_VIS_MANAGEMENT |
---|
[931] | 31 | |
---|
[776] | 32 | # Libraries which can be used without external packages or libraries... |
---|
| 33 | ifdef G4VIS_BUILD |
---|
| 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 | |
---|
| 49 | ifdef G4VIS_BUILD_OPENGL_DRIVER |
---|
[921] | 50 | SUBDIRS += externals/gl2ps |
---|
[776] | 51 | SUBDIRS += OpenGL |
---|
| 52 | SUBLIBS += G4OpenGL |
---|
| 53 | endif |
---|
| 54 | ifdef G4VIS_BUILD_OI_DRIVER |
---|
[921] | 55 | SUBDIRS += externals/gl2ps |
---|
[776] | 56 | SUBDIRS += OpenInventor |
---|
| 57 | SUBLIBS += G4OpenInventor |
---|
| 58 | endif |
---|
| 59 | endif #G4VIS_BUILD |
---|
| 60 | |
---|
| 61 | .PHONY: granular glob global clean |
---|
| 62 | |
---|
| 63 | glob global: granular |
---|
| 64 | |
---|
| 65 | granular: |
---|
| 66 | @for dir in $(SUBDIRS); do (cd $$dir; $(MAKE)); done |
---|
| 67 | |
---|
| 68 | includes: |
---|
| 69 | @for dir in $(SUBDIRS); do (cd $$dir && $(MAKE) $@ ); done |
---|
| 70 | |
---|
| 71 | clean clean_libs: |
---|
| 72 | @for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) $@); done |
---|
Note: See
TracBrowser
for help on using the repository browser.