source: trunk/source/visualization/GNUmakefile @ 1242

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

bugged version

File size: 1.8 KB
Line 
1# $Id: GNUmakefile,v 1.26 2009/11/17 11:31:20 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
7MAKEFLAGS= --no-print-directory
8
9name := G4visualization
10
11ifndef G4INSTALL
12  G4INSTALL = ../..
13endif
14
15include $(G4INSTALL)/config/architecture.gmk
16include $(G4INSTALL)/config/G4VIS_BUILD.gmk
17include $(G4INSTALL)/config/interactivity.gmk
18
19SUBDIRS := modeling
20SUBLIBS := G4modeling
21
22ifdef G4LIB_BUILD_ZLIB
23  SUBDIRS += externals/zlib
24  SUBLIBS += G4zlib
25endif
26
27# For Debug mode
28 CPPFLAGS += -DG4DEBUG_VIS_OGL
29# CPPFLAGS += -DG4DEBUG_VIS_OI
30# CPPFLAGS += -DG4DEBUG_VIS_MANAGEMENT
31
32
33ifdef G4VIS_BUILD
34# Drivers that can be used without external libraries...
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
49  SUBDIRS += gMocren
50  SUBLIBS += G4GMocren
51# Drivers needing external libraries...
52ifdef G4VIS_BUILD_OPENGL_DRIVER
53  SUBDIRS += externals/gl2ps
54  SUBDIRS += OpenGL
55  SUBLIBS += G4OpenGL
56  SUBLIBS += G4gl2ps
57endif
58ifdef G4VIS_BUILD_OI_DRIVER
59  SUBDIRS += externals/gl2ps
60  SUBDIRS += OpenInventor
61  SUBLIBS += G4OpenInventor
62  SUBLIBS += G4gl2ps
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.