Geant4 Cross Reference |
1 # -------------------------------------------- 1 # -------------------------------------------------------------- >> 2 # $Id: GNUmakefile,v 1.2 2010/11/29 10:00:05 gcosmo Exp $ 2 # -------------------------------------------- 3 # -------------------------------------------------------------- 3 # GNUmakefile for examples module. Gabriele C 4 # GNUmakefile for examples module. Gabriele Cosmo, 06/04/98. 4 # -------------------------------------------- 5 # -------------------------------------------------------------- 5 6 6 7 7 name := eRosita 8 name := eRosita 8 9 9 G4TARGET := $(name) 10 G4TARGET := $(name) 10 G4EXLIB := true 11 G4EXLIB := true 11 SUBDIRS := application << 12 #SUBDIRS := physics application << 13 << 14 # ifdef G4ANALYSIS_USE << 15 # SUBDIRS += analysis << 16 # endif << 17 12 18 ifndef G4INSTALL 13 ifndef G4INSTALL 19 G4INSTALL = ../.. 14 G4INSTALL = ../.. 20 endif 15 endif 21 16 22 ifdef G4ANALYSIS_USE << 17 .PHONY: all 23 CPPFLAGS += `aida-config --include` << 18 all: lib bin 24 LDFLAGS += `aida-config --lib` << 25 LOADLIBS += `aida-config --lib` << 26 endif << 27 << 28 CPPFLAGS += -I./physics/include \ << 29 -I./application/include << 30 << 31 .PHONY: all makesub clean cleansub << 32 all: makesub lib bin << 33 19 34 include $(G4INSTALL)/config/binmake.gmk 20 include $(G4INSTALL)/config/binmake.gmk 35 21 36 makesub: << 22 ifdef G4ANALYSIS_USE 37 @for dir in $(SUBDIRS); do ( \ << 23 CPPFLAGS += `aida-config --include` 38 echo Entering $$dir ... ; \ << 24 LDFLAGS += `aida-config --lib` 39 cd $$dir; \ << 25 LOADLIBS += `aida-config --lib` 40 $(MAKE) obj );\ << 26 endif 41 done << 42 << 43 clean:: cleansub << 44 << 45 cleansub: << 46 @for dir in $(SUBDIRS); do ( \ << 47 echo Entering $$dir ...; \ << 48 cd $$dir; \ << 49 $(MAKE) clean );\ << 50 done <<