source: trunk/examples/advanced/radiation_monitor/GNUmakefile @ 1282

Last change on this file since 1282 was 807, checked in by garnier, 16 years ago

update

File size: 1.1 KB
Line 
1# $Id: GNUmakefile,v 1.6 2005/11/24 02:34:48 capra Exp $
2# --------------------------------------------------------------
3# GNUmakefile for examples with internal subpackages
4# R. Capra, 09 Sep 2005
5# --------------------------------------------------------------
6
7name := Radmon
8G4TARGET := $(name)
9G4EXLIB := true
10SUBDIRS := userActions generalPurpose materials sensitivity detector physics generator
11
12ifdef G4ANALYSIS_USE
13 SUBDIRS += analysis
14endif
15
16SUBDIRS += application
17
18ifndef G4INSTALL
19  G4INSTALL = ../../..
20endif
21
22.PHONY: all bin makesub clean cleansub
23all: makesub lib bin
24
25include $(G4INSTALL)/config/binmake.gmk
26
27ifdef G4ANALYSIS_USE 
28 CPPFLAGS += `aida-config --include`
29 CPPFLAGS += -DG4ANALYSIS_USE
30 LDFLAGS  += `aida-config --lib`
31 LOADLIBS += `aida-config --lib`
32endif
33
34CPPFLAGS += -I./detector/include \
35            -I./generalPurpose/include \
36            -I./application/include
37
38makesub:
39        @for dir in $(SUBDIRS); do ( \
40                echo Entering $$dir ... ; \
41                cd $$dir; \
42                $(MAKE) obj );\
43        done
44       
45clean:: cleansub
46
47cleansub:
48        @for dir in $(SUBDIRS); do ( \
49                echo Entering $$dir ...; \
50                cd $$dir; \
51                $(MAKE) clean );\
52        done
Note: See TracBrowser for help on using the repository browser.