-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
35 lines (28 loc) · 946 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
G4VERSION := $(shell eval geant4-config --version)
all:
ifeq ($(G4VERSION), 10.1.2)
@echo 'Your geant4 version is $(G4VERSION). Using "scons" to build'
scons -j4
@echo 'You can run "scons" to build RAT'
else
ifeq ($(G4VERSION), 10.2.3)
@echo 'Your geant4 version is $(G4VERSION). Using "scons" with extra arguments to build'
scons -j4 -Q cppjailbreak="" -Q CXXFLAGS="-std=c++11 -w -O3 -lxerces-c"
@echo 'You can run "scons -Q cppjailbreak="" -Q CXXFLAGS="-std=c++11 -w -O3"" to build RAT'
else
@echo '**** Your geant4 version $(G4VERSION) is unsupported ****'
endif
endif
installdata:
scons installdata
@echo 'You can run "scons installdata" directly to copy neutron files.'
doc:
scons doc
@echo 'You can run "scons doc" directly to extract/generate docs.'
clean:
scons -c
@echo 'You can run "scons -c" directly to clean build.'
clean_log:
rm rat.*.log
@echo 'Cleaning the rat log files'
.PHONY: doc clean installdata all