summaryrefslogtreecommitdiff
path: root/tests/Makefile
diff options
context:
space:
mode:
authorjvoisin2023-08-20 23:37:08 +0200
committerjvoisin2023-08-20 23:39:59 +0200
commita9abb9fa5b9124174e9a7ddeec95c8323f4b16af (patch)
treeeb50de61813f7911447c7757a81f4ee40d5800b5 /tests/Makefile
parent0f19089c58fb940791659e1c4b4e98795240df4e (diff)
Split build and run
Both in the CI, and in the Makefile
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/Makefile b/tests/Makefile
index 8db2853..96dfe2d 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -96,8 +96,7 @@ TARGETS= \
96.SILENT: 96.SILENT:
97 97
98gcc: CC=../x86_64-linux-musl-native/bin/gcc 98gcc: CC=../x86_64-linux-musl-native/bin/gcc
99gcc: GCOV=../x86_64-linux-musl-native/bin/gcov 99gcc: $(TARGETS)
100gcc: clean all
101 100
102clang: CC=clang 101clang: CC=clang
103clang: GCOV=gcov 102clang: GCOV=gcov
@@ -105,15 +104,14 @@ clang: CFLAGS+=-I/usr/include/x86_64-linux-musl
105clang: CFLAGS+=-I../x86_64-linux-musl-native/include/ 104clang: CFLAGS+=-I../x86_64-linux-musl-native/include/
106clang: CFLAGS+=-Ix86_64-linux-musl-native/include/ 105clang: CFLAGS+=-Ix86_64-linux-musl-native/include/
107clang: CFLAGS+=-nostdinc 106clang: CFLAGS+=-nostdinc
108clang: clean all 107clang: $(TARGETS)
109 108
110 109all: gcc
111all: $(TARGETS) run
112 110
113coverage: CFLAGS += -fprofile-arcs -ftest-coverage 111coverage: CFLAGS += -fprofile-arcs -ftest-coverage
114coverage: CC=../x86_64-linux-musl-native/bin/gcc 112coverage: CC=../x86_64-linux-musl-native/bin/gcc
115coverage: GCOV=../x86_64-linux-musl-native/bin/gcov 113coverage: GCOV=../x86_64-linux-musl-native/bin/gcov
116coverage: all 114coverage: $(TARGETS) run
117 $(GCOV) *.c 115 $(GCOV) *.c
118 lcov --capture --directory . --output-file coverage.info 116 lcov --capture --directory . --output-file coverage.info
119 genhtml coverage.info --output-directory coverage 117 genhtml coverage.info --output-directory coverage