forked from MFlowCode/MFC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 857 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
35
36
37
38
39
40
41
42
43
include Makefile.user
default: all
include installers/Makefile.messages
all: pre_process simulation post_process
pre_process:
@$(MAKE) -C src/pre_process_code -f makefile
simulation:
ifneq ("$(wildcard $(fftw_include_dir)/fftw3.*)","")
ifneq ("$(wildcard $(fftw_lib_dir)/libfftw*.la)","")
@$(MAKE) -C src/simulation_code -f makefile
else
@echo "$$FFTW_LIB_ERR"
endif
else
@echo "$$FFTW_INC_ERR"
endif
post_process:
ifneq ("$(wildcard $(silo_include_dir)/silo*.inc)","")
ifneq ("$(wildcard $(silo_lib_dir)/libsilo*.*a)","")
@$(MAKE) -C src/post_process_code -f makefile
else
@echo "$$SILO_LIB_ERR"
endif
else
@echo "$$SILO_INC_ERR"
endif
test:
./tests/checks.sh
.PHONY: clean
clean:
@$(MAKE) -C src/pre_process_code -f makefile clean
@$(MAKE) -C src/simulation_code -f makefile clean
@$(MAKE) -C src/post_process_code -f makefile clean