source: trunk/source/visualization/GNUmakefile@ 1044

Last change on this file since 1044 was 959, checked in by garnier, 17 years ago

after maj on CVS good-HEAD

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