Geant4 Cross Reference |
1 # 1 # 2 # the makefile that will be used by the 'make' 2 # the makefile that will be used by the 'make' utility 3 # 3 # 4 4 5 #a variable which holds the name of the execut 5 #a variable which holds the name of the executable file to be created 6 name := exp_microdosimetry 6 name := exp_microdosimetry 7 7 8 #a variable that puts this into a variable tha 8 #a variable that puts this into a variable that is used in the binmake.gmk file 9 #(see below) 9 #(see below) 10 G4TARGET := $(name) 10 G4TARGET := $(name) 11 11 12 #variable, what does it do? 12 #variable, what does it do? 13 G4EXLIB := true 13 G4EXLIB := true 14 14 15 #define the target 'all' to be 'phony'; ie, is 15 #define the target 'all' to be 'phony'; ie, isn't a file 16 .PHONY: all 16 .PHONY: all 17 17 18 #target is all, dependencies are 'lib' and 'bi 18 #target is all, dependencies are 'lib' and 'bin', ie, will check to see if anything was changed in those sub-directories 19 all: lib bin 19 all: lib bin 20 20 21 CPPFLAGS += -I${ROOTSYS}/include 21 CPPFLAGS += -I${ROOTSYS}/include 22 EXTRALIBS = $(shell root-config --glibs) 22 EXTRALIBS = $(shell root-config --glibs) 23 23 24 24 25 #now, include the "geant4" makefile, builds th 25 #now, include the "geant4" makefile, builds the source code in a standard way 26 include $(G4INSTALL)/config/binmake.gmk 26 include $(G4INSTALL)/config/binmake.gmk