-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathMakefile.in
73 lines (63 loc) · 2.33 KB
/
Makefile.in
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@ @top_srcdir@
SHELL = /bin/sh
CC = @CC@
CFLAGS = @CFLAGS@
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
DEFS = @DEFS@
LIBS = @LIBGSL@ @LIBS@ -lm
SQCLEVEL = 2
QUIET_SUBDIR0 = +${MAKE} -C #space separator after -c
QUIET_SUBDIR1 =
ifndef V
QUIET_CC = @echo ' ' CC $@;
QUIET_GEN = @echo ' ' GEN $@;
QUIET_AR = @echo ' ' AR $@;
QUIET_SUBDIR0 = +@subdir=
QUIET_SUBDIR1 = ; echo ' ' SUBDIR $$subdir; \
${MAKE} -s -C $$subdir
endif
.PHONY: check dcheck clean distclean
check:
@command -v python3 >/dev/null 2>&1 || { echo >&2 "python3 is required for 'make check', but is not in your PATH. Aborting."; exit 1; }
@echo
@echo Running Easel test suite...
@echo
@${srcdir}/../devkit/sqc ${SQCLEVEL} ${srcdir}/testsuite.sqc .. ${srcdir}/..
dcheck:
@command -v python3 >/dev/null 2>&1 || { echo >&2 "python3 is required for 'make dcheck', but is not in your PATH. Aborting."; exit 1; }
@echo
@echo Running developer testsuite...
@echo -n Compiling for unit tests and valgrind tests...
@(cd ..; make clean > /dev/null; testsuite/${top_srcdir}/configure --enable-debugging >/dev/null; make dev > /dev/null)
@echo done.
@echo -n Running unit tests...
@${srcdir}/../devkit/sqc ${SQCLEVEL} ${srcdir}/testsuite.sqc .. ${srcdir}/.. > utest.report
@echo done. [See utest.report]
@echo -n Looking for memory leaks...
@${srcdir}/valgrind_report.pl .. ${srcdir}/.. > valgrind.report
@echo done. [See valgrind.report]
@echo -n Recompiling for coverage tests...
@(cd ..; make clean > /dev/null; testsuite/${top_srcdir}/configure --enable-gcov > /dev/null; make tests > /dev/null)
@echo done.
@echo -n Measuring test code coverage...
@${top_srcdir}/testsuite/coverage_report.pl .. ${top_srcdir} > coverage.report
@echo done. [See coverage.report]
@cat coverage.report valgrind.report utest.report > dcheck.report
@echo
@echo Finished developer testsuite.
@echo For a complete report, see dcheck.report.
clean:
-rm -f *.gcno *.gcda *.gcov
-rm -f esltmp??????
-rm -f *.o *~
-rm -f ${PROGS}
ifndef V
@echo ' ' CLEAN testsuite
endif
distclean: clean
-rm -f coverage.report valgrind.report utest.report
-rm -f Makefile