-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (26 loc) · 802 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
##
## Copyright (c) 2018-2025 Stéphane Micheloud
##
## Licensed under the MIT License.
##
##############################################################################
include ../Makefile.inc
##############################################################################
## main rules
all: aunit
"$(GPRBUILD)" -p -Pharness
aunit:
@[ -d "$(AUNIT_DIR)" ] || "$(TAR)" xzf "$(AUNIT_DIR).tar.gz" -C "$(ROOT_DIR)"
coverage:
"$(GPRBUILD)" -p -f -Pharness -XCOVERAGE=yes
./test_math
cd obj; "$(GCOV)" ../tested_lib/obj/*.gcda
clean:
-"$(GPRCLEAN)" -Pharness
-"$(GPRCLEAN)" -Ptested_lib/testlib
"$(RM)" -rf obj tested_lib/obj
##############################################################################
## phony
.PHONY: all aunit coverage clean
.SUFFIXES:
.SUFFIXES: .adb .ads .ali .exe .o