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: all 17 all: makesub lib bin << 13 all: lib bin 18 << 19 include $(G4INSTALL)/config/binmake.gmk << 20 << 21 CPPFLAGS += -I./common/include << 22 << 23 makesub: << 24 @for dir in $(SUBDIRS); do ( \ << 25 echo Entering $$dir ... ; \ << 26 cd $$dir; \ << 27 $(MAKE) obj name=clGeometry );\ << 28 done << 29 14 30 clean:: cleansub << 15 include $(G4INSTALL)/config/architecture.gmk 31 16 32 cleansub: << 17 include $(G4INSTALL)/config/binmake.gmk 33 @for dir in $(SUBDIRS); do ( \ << 34 echo Entering $$dir ...; \ << 35 cd $$dir; \ << 36 $(MAKE) clean );\ << 37 done <<