about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-04-03 10:43:52 +0200
committervan Hauser <vh@thc.org>2020-04-03 10:43:52 +0200
commit3f2859ec1623b772bd5df39274946cfcc3c29e00 (patch)
treeeb50c29bac45baa8982f57aa02f640e08f637937 /GNUmakefile
parent5340f2f2eba643d43311eba207e8185723dd2f06 (diff)
downloadafl++-3f2859ec1623b772bd5df39274946cfcc3c29e00.tar.gz
unit tests cleaning
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index c03d635c..ff27e125 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -337,7 +337,10 @@ unit_preallocable: test/unittests/unit_preallocable.o
 	$(CC) $(CFLAGS) $(ASAN_CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf test/unittests/unit_preallocable.o -o test/unittests/unit_preallocable $(LDFLAGS) $(ASAN_LDFLAGS) -lcmocka
 	./test/unittests/unit_preallocable
 
-unit: unit_maybe_alloc unit_preallocable unit_list
+unit_clean:
+	@rm -f ./test/unittests/unit_preallocable ./test/unittests/unit_list ./test/unittests/unit_maybe_alloc test/unittests/*.o
+
+unit: unit_maybe_alloc unit_preallocable unit_list unit_clean
 
 code-format:
 	./.custom-format.py -i src/*.c