Geant4 Cross Reference |
1 # -------------------------------------------- << 1 # $Id: GNUmakefile,v 1.2 2006-03-14 10:13:55 vnivanch Exp $ 2 # GNUmakefile for examples module << 2 # ---------------------------------------------------------------- 3 # with use of classes from common repository. << 4 # -------------------------------------------- << 5 3 6 name := clGeometry 4 name := clGeometry 7 << 8 G4TARGET := $(name) 5 G4TARGET := $(name) 9 G4EXLIB := true 6 G4EXLIB := true 10 SUBDIRS := common << 11 7 12 ifndef G4INSTALL 8 ifndef G4INSTALL 13 G4INSTALL = ../../../.. 9 G4INSTALL = ../../../.. 14 endif 10 endif 15 11 16 .PHONY: all makesub clean cleansub << 12 .PHONY: setup clean_setup all 17 all: makesub lib bin << 13 all: lib bin 18 14 19 include $(G4INSTALL)/config/binmake.gmk << 15 setup: >> 16 @echo "Copying files from common" >> 17 @$(G4INSTALL)/examples/extended/common/scripts/copy_files.sh >> 18 >> 19 clean_setup: >> 20 @echo "Removing files copied from common" >> 21 @$(G4INSTALL)/examples/extended/common/scripts/clean_files.sh 20 22 21 CPPFLAGS += -I./common/include << 23 include $(G4INSTALL)/config/architecture.gmk 22 24 23 makesub: << 25 include $(G4INSTALL)/config/binmake.gmk 24 @for dir in $(SUBDIRS); do ( \ << 25 echo Entering $$dir ... ; \ << 26 cd $$dir; \ << 27 $(MAKE) obj name=clGeometry );\ << 28 done << 29 << 30 clean:: cleansub << 31 << 32 cleansub: << 33 @for dir in $(SUBDIRS); do ( \ << 34 echo Entering $$dir ...; \ << 35 cd $$dir; \ << 36 $(MAKE) clean );\ << 37 done <<