aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2025-08-12 23:16:43 +0200
committerThorsten Töpper <atsutane@freethoughts.de>2025-08-12 23:16:43 +0200
commit84f5ff3cf53e150fccdb1b0074362c66d0ae41bb (patch)
tree4917cb8d5bcebcd59ee66100a7f88ee94b165d0c /Makefile
parent4904d77cca14c36090cf7a3eb4638fbdeaf28959 (diff)
downloadsmall-utils-84f5ff3cf53e150fccdb1b0074362c66d0ae41bb.tar.gz
small-utils-84f5ff3cf53e150fccdb1b0074362c66d0ae41bb.tar.bz2
tree_based_check: filter utility for hash lists
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4d8a55d..cbc5c99 100644
--- a/Makefile
+++ b/Makefile
@@ -4,13 +4,13 @@ CFLAGS += -Wall -Wextra -Wformat -Wformat=2 -Wconversion -Wimplicit-fallthrough
-Wbidi-chars=any -Werror=implicit -Werror=incompatible-pointer-types -Werror=int-conversion \
-fno-delete-null-pointer-checks -fstack-clash-protection -fstack-protector-strong -fstrict-flex-arrays=3
-DEBUG_CFLAGS = -DDEBUGBUILD -g -Werror -fsanitize=address
+DEBUG_CFLAGS = -DDEBUGBUILD -g -Werror -fsanitize=address -O0
PROD_CFLAGS = -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -FPIE -pie -Wl,-z,noexecstack -Wl,--as-needed -Wl,--no-copy-dt-needed-entries
CFLAGS += -I include
-all: out/split_for_sort
+all: out/split_for_sort out/tree_based_check
@@ -32,4 +32,11 @@ out/split_for_sort: out src/split_for_sort.c include/output.h
out/debug/split_for_sort_debug: out/debug src/split_for_sort.c include/output.h
${CC} -o $@ ${CFLAGS} ${DEBUG_CFLAGS} src/split_for_sort.c
+out/tree_based_check: out src/tree_based_check.c \
+ include/output.h include/hex_conversion.h
+ ${CC} -o $@ ${CFLAGS} ${PROD_CFLAGS} src/tree_based_check.c
+
+out/debug/tree_based_check: out/debug src/tree_based_check.c \
+ include/output.h include/hex_conversion.h
+ ${CC} -o $@ ${CFLAGS} ${DEBUG_CFLAGS} src/tree_based_check.c