Hash :
f990b98e
Author :
Thomas de Grivel
Date :
2022-12-06T13:37:43
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
## c3
## Copyright 2022 kmx.io <contact@kmx.io>
##
## Permission is hereby granted to use this software excepted
## on Apple computers 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 *.gcno *.la libc3.la .libs *.lo *.o
CLEANFILES_COV = *.css *.gcda *.html .libs/*.gcda
CLEANFILES += ${CLEANFILES_COV}
DISTCLEANFILES = ${CLEANFILES} config.mk
build: libc3.la libc3.a
all:
${MAKE} build
${MAKE} cov
${MAKE} debug
if ${HAVE_ASAN}; then ${MAKE} asan; fi
asan: libc3.asan.la libc3.asan.a
clean:
rm -rf ${CLEANFILES}
clean_cov:
rm -rf ${CLEANFILES_COV}
cov: libc3.cov.la libc3.cov.a
debug: libc3.debug.la libc3.debug.a
distclean:
rm -rf ${DISTCLEANFILES}
gcovr:
gcovr --gcov-executable ${GCOV} --html-details libc3.html
libc3.a: libc3.la
cp .libs/libc3.a ./
libc3.asan.a: libc3.asan.la
cp .libs/libc3.asan.a ./
libc3.cov.a: libc3.cov.la
cp .libs/libc3.cov.a ./
libc3.debug.a: libc3.debug.la
cp .libs/libc3.debug.a ./
SED_FACT = sed -e 's/_NAME[$$]/fact/g' -e 's/_TYPE[$$]/s_fact/g'
set_cursor__fact.h: set_cursor.h.in Makefile
${SED_FACT} < set_cursor.h.in > set_cursor__fact.h
set_cursor__fact.c: set_cursor.c.in Makefile
${SED_FACT} < set_cursor.c.in > set_cursor__fact.c
set__fact.h: set.h.in Makefile
${SED_FACT} < set.h.in > set__fact.h
set__fact.c: set.c.in Makefile
${SED_FACT} < set.c.in > set__fact.c
set_item__fact.h: set_item.h.in Makefile
${SED_FACT} < set_item.h.in > set_item__fact.h
set_item__fact.c: set_item.c.in Makefile
${SED_FACT} < set_item.c.in > set_item__fact.c
SED_FACT_P = sed -e 's/_NAME[$$]/fact/g' -e 's/_TYPE[$$]/s_fact */g'
skiplist__fact.h: skiplist.h.in Makefile
${SED_FACT_P} < skiplist.h.in > skiplist__fact.h
skiplist__fact.c: skiplist.c.in Makefile
${SED_FACT_P} < skiplist.c.in > skiplist__fact.c
skiplist_node__fact.h: skiplist_node.h.in Makefile
${SED_FACT_P} < skiplist_node.h.in > skiplist_node__fact.h
skiplist_node__fact.c: skiplist_node.c.in Makefile
${SED_FACT_P} < skiplist_node.c.in > skiplist_node__fact.c
SED_TAG = sed -e 's/_NAME[$$]/tag/g' -e 's/_TYPE[$$]/s_tag/g'
set_cursor__tag.h: set_cursor.h.in Makefile
${SED_TAG} < set_cursor.h.in > set_cursor__tag.h
set_cursor__tag.c: set_cursor.c.in Makefile
${SED_TAG} < set_cursor.c.in > set_cursor__tag.c
set_item__tag.h: set_item.h.in Makefile
${SED_TAG} < set_item.h.in > set_item__tag.h
set_item__tag.c: set_item.c.in Makefile
${SED_TAG} < set_item.c.in > set_item__tag.c
set__tag.h: set.h.in Makefile
${SED_TAG} < set.h.in > set__tag.h
set__tag.c: set.c.in Makefile
${SED_TAG} < set.c.in > set__tag.c
test:
.PHONY: all asan build clean cov debug distclean test
include config.mk