source: trunk/source/visualization/GNUmakefile @ 1295

Last change on this file since 1295 was 1242, checked in by garnier, 14 years ago

bugged version

File size: 1.8 KB
RevLine 
[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]7MAKEFLAGS= --no-print-directory
[562]8
[776]9name := G4visualization
10
[562]11ifndef G4INSTALL
[776]12  G4INSTALL = ../..
[562]13endif
14
15include $(G4INSTALL)/config/architecture.gmk
16include $(G4INSTALL)/config/G4VIS_BUILD.gmk
17include $(G4INSTALL)/config/interactivity.gmk
18
[776]19SUBDIRS := modeling
20SUBLIBS := G4modeling
[562]21
[776]22ifdef G4LIB_BUILD_ZLIB
23  SUBDIRS += externals/zlib
24  SUBLIBS += G4zlib
25endif
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]33ifdef 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]52ifdef G4VIS_BUILD_OPENGL_DRIVER
[921]53  SUBDIRS += externals/gl2ps
[776]54  SUBDIRS += OpenGL
55  SUBLIBS += G4OpenGL
[1228]56  SUBLIBS += G4gl2ps
[776]57endif
58ifdef G4VIS_BUILD_OI_DRIVER
[921]59  SUBDIRS += externals/gl2ps
[776]60  SUBDIRS += OpenInventor
61  SUBLIBS += G4OpenInventor
[1228]62  SUBLIBS += G4gl2ps
[776]63endif
64endif #G4VIS_BUILD
65
66.PHONY: granular glob global clean
67
68glob global: granular
69
70granular:
71        @for dir in $(SUBDIRS); do (cd $$dir; $(MAKE)); done
72
73includes:
74        @for dir in $(SUBDIRS); do (cd $$dir && $(MAKE) $@ ); done
75
76clean clean_libs:
77        @for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) $@); done
Note: See TracBrowser for help on using the repository browser.