-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 857 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 857 Bytes
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
CMAKE_TESTS_OPTS=-DENABLE_TESTS=on -DENABLE_FFTW=on \
-DENABLE_NAYUKI_PORTABLE=on -DENABLE_NAYUKI_AVX=on \
-DENABLE_SPQLIOS_AVX=on -DENABLE_SPQLIOS_FMA=on
CMAKE_DTESTS_OPTS=-DCMAKE_BUILD_TYPE=debug ${CMAKE_TESTS_OPTS}
CMAKE_OTESTS_OPTS=-DCMAKE_BUILD_TYPE=optim ${CMAKE_TESTS_OPTS}
all: build
make -C build
clean: build
make -C build clean
distclean:
rm -rf build builddtests buildotests; true
test: builddtests buildotests
make -C builddtests
make -C buildotests
make -C builddtests test
make -C buildotests test
build:
mkdir build; cd build; cmake ../src; cd ..
builddtests:
rm -rf $@; true; mkdir $@;
cd $@; cmake ../src ${CMAKE_DTESTS_OPTS};
cd $@; cmake ../src ${CMAKE_DTESTS_OPTS};
cd ..
buildotests:
rm -rf $@; true; mkdir $@;
cd $@; cmake ../src ${CMAKE_OTESTS_OPTS};
cd $@; cmake ../src ${CMAKE_OTESTS_OPTS};
cd ..