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