Geant4 Cross Reference |
>> 1 # $Id: GNUmakefile 85903 2014-11-06 08:47:08Z gcosmo $ 1 # -------------------------------------------- 2 # -------------------------------------------------------------- 2 # GNUmakefile for examples module 3 # GNUmakefile for examples module 3 # with use of classes from common repository. 4 # with use of classes from common repository. 4 # -------------------------------------------- 5 # -------------------------------------------------------------- 5 6 6 name := clGeometry 7 name := clGeometry 7 8 8 G4TARGET := $(name) 9 G4TARGET := $(name) 9 G4EXLIB := true 10 G4EXLIB := true 10 SUBDIRS := common 11 SUBDIRS := common 11 12 12 ifndef G4INSTALL 13 ifndef G4INSTALL 13 G4INSTALL = ../../../.. 14 G4INSTALL = ../../../.. 14 endif 15 endif 15 16 16 .PHONY: all makesub clean cleansub 17 .PHONY: all makesub clean cleansub 17 all: makesub lib bin 18 all: makesub lib bin 18 19 19 include $(G4INSTALL)/config/binmake.gmk 20 include $(G4INSTALL)/config/binmake.gmk 20 21 21 CPPFLAGS += -I./common/include 22 CPPFLAGS += -I./common/include 22 23 23 makesub: 24 makesub: 24 @for dir in $(SUBDIRS); do ( \ 25 @for dir in $(SUBDIRS); do ( \ 25 echo Entering $$dir ... ; \ 26 echo Entering $$dir ... ; \ 26 cd $$dir; \ 27 cd $$dir; \ 27 $(MAKE) obj name=clGeometry );\ 28 $(MAKE) obj name=clGeometry );\ 28 done 29 done 29 30 30 clean:: cleansub 31 clean:: cleansub 31 32 32 cleansub: 33 cleansub: 33 @for dir in $(SUBDIRS); do ( \ 34 @for dir in $(SUBDIRS); do ( \ 34 echo Entering $$dir ...; \ 35 echo Entering $$dir ...; \ 35 cd $$dir; \ 36 cd $$dir; \ 36 $(MAKE) clean );\ 37 $(MAKE) clean );\ 37 done 38 done