-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
29 lines (23 loc) · 913 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
# wavy top-level Makefile for external dependencies
#
.PHONY: all clean
DATETIME = src/external/datetime-fortran
FUNCTIONAL = src/external/functional-fortran
JSON = src/external/json-fortran
all: datetime functional json
datetime:
mkdir $(DATETIME)/build
cd $(DATETIME)/build && FC=${FC} cmake .. && make && ctest
functional:
mkdir $(FUNCTIONAL)/build
cd $(FUNCTIONAL)/build && FC=${FC} cmake .. && make && ctest
json:
cp src/external/pickFortranCompilerFlags.cmake $(JSON)/cmake
mkdir $(JSON)/build_real32
mkdir $(JSON)/build_real64
mkdir $(JSON)/build_real128
cd $(JSON)/build_real32 && FC=${FC} cmake .. -DSKIP_DOC_GEN:BOOL=True -DREAL=32 && make
cd $(JSON)/build_real64 && FC=${FC} cmake .. -DSKIP_DOC_GEN:BOOL=True -DREAL=64 && make
cd $(JSON)/build_real128 && FC=${FC} cmake .. -DSKIP_DOC_GEN:BOOL=True -DREAL=128 && make
clean:
rm -r {$(DATETIME),$(FUNCTIONAL),$(JSON)}/build*