Hash :
9916b9ec
Author :
Thomas de Grivel
Date :
2024-07-16T14:50:56
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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
## kc3
## Copyright 2022-2024 kmx.io <contact@kmx.io>
##
## Permission is hereby granted to use this software granted the above
## copyright notice and this permission paragraph are included in all
## copies and substantial portions of this software.
##
## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
## THIS SOFTWARE.
CLEANFILES = \
*.a \
*.css \
ekc3/*.diff \
ekc3/*.err \
ekc3/*.out \
ekc3/*.ret \
*.gcno \
*.html \
*.lo \
*.o \
.libs \
ikc3/*.diff \
ikc3/*.err \
ikc3/*.out \
ikc3/*.ret \
libkc3_test \
libkc3_test_asan \
libkc3_test_cov \
libkc3_test_debug
CLEANFILES_COV = \
*.css \
*.gcda \
*.html \
.libs/*.gcda
CLEANFILES += ${CLEANFILES_COV}
DISTCLEANFILES = ${CLEANFILES} config.mk
build: libkc3_test
all:
${MAKE} build
if ${HAVE_GCOV}; then ${MAKE} cov; fi
${MAKE} debug
if ${HAVE_ASAN}; then ${MAKE} asan; fi
asan: libkc3_test_asan
clean:
rm -rf ${CLEANFILES}
clean_cov:
rm -rf ${CLEANFILES_COV}
cov: libkc3_test_cov
debug: libkc3_test_debug
distclean:
rm -rf ${DISTCLEANFILES}
gcovr:
gcovr --gcov-executable ${GCOV} --html-details test.html
gdb_test: debug
if [ -f libkc3_test_debug.core ]; then gdb .libs/libkc3_test_debug libkc3_test_debug.core; else gdb .libs/libkc3_test_debug; fi
lldb_test: debug
if [ -f libkc3_test_debug.core ]; then lldb .libs/libkc3_test_debug libkc3_test_debug.core; else lldb .libs/libkc3_test_debug; fi
test: libkc3_test
time ./libkc3_test
IKC3=${SRC_TOP}/ikc3/ikc3 time ./ikc3_test
test_asan: libkc3_test_asan
time ./libkc3_test_asan
IKC3=${SRC_TOP}/ikc3/ikc3_asan time ./ikc3_test
test_cov:
time ./libkc3_test_cov
IKC3=${SRC_TOP}/ikc3/ikc3_cov time ./ikc3_test
test_debug: libkc3_test_debug
time ./libkc3_test_debug
IKC3=${SRC_TOP}/ikc3/ikc3_debug time ./ikc3_test
test_ikc3:
IKC3=${SRC_TOP}/ikc3/ikc3 time ./ikc3_test
test_ikc3_asan:
IKC3=${SRC_TOP}/ikc3/ikc3_asan time ./ikc3_test
test_ikc3_cov:
IKC3=${SRC_TOP}/ikc3/ikc3_cov time ./ikc3_test
test_ikc3_debug:
IKC3=${SRC_TOP}/ikc3/ikc3_debug time ./ikc3_test
test_libkc3: libkc3_test
time ./libkc3_test
test_libkc3_cov: libkc3_test_cov
time ./libkc3_test_cov
test_valgrind: libkc3_test
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./libkc3_test
.PHONY: all asan cov debug clean clean_cov distclean ikc3_test_cov libkc3_test_cov test test_asan test_cov test_debug test_ikc3 test_valgrind
include config.mk
include sources.mk