aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2025-09-11 21:58:03 +0200
committerThorsten Töpper <atsutane@freethoughts.de>2025-09-11 21:58:03 +0200
commitae3b1829f9731662b5e2b626655a619733101209 (patch)
tree32af93ec8facd3e7d96764b1ececffabd7d0dc9a /Makefile
parent3d4e2fc261d3471eac5e68c5905ab5980f0ff89f (diff)
downloadsmall-utils-ae3b1829f9731662b5e2b626655a619733101209.tar.gz
small-utils-ae3b1829f9731662b5e2b626655a619733101209.tar.bz2
Example code for libc qsort and bsearch
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 20 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b805715..63d5ff8 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,8 @@ CFLAGS += -I include
all: \
out/custom_uniq \
out/mem_internal_check \
+ out/remove_existing_lines \
+ out/sort_example \
out/split_for_sort \
out/tree_based_check
@@ -21,6 +23,8 @@ all: \
debug: \
out/debug/custom_uniq \
out/debug/mem_internal_check \
+ out/debug/remove_existing_lines \
+ out/debug/sort_example \
out/debug/split_for_sort \
out/debug/tree_based_check
@@ -47,13 +51,27 @@ out/debug/custom_uniq: out/debug src/custom_uniq.c include/trace_macros.h
${CC} -o $@ ${CFLAGS} ${DEBUG_CFLAGS} src/custom_uniq.c
out/mem_internal_check: out src/mem_internal_check.c \
- include/trace_macros.h include/hex_conversion.h
+ include/trace_macros.h include/hex_conversion.h include/time_utils.h
${CC} -o $@ ${CFLAGS} ${PROD_CFLAGS} src/mem_internal_check.c
out/debug/mem_internal_check: out/debug src/mem_internal_check.c \
- include/trace_macros.h include/hex_conversion.h
+ include/trace_macros.h include/hex_conversion.h include/time_utils.h
${CC} -o $@ ${CFLAGS} ${DEBUG_CFLAGS} src/mem_internal_check.c
+out/remove_existing_lines: out src/remove_existing_lines.c \
+ include/trace_macros.h include/time_utils.h
+ ${CC} -o $@ ${CFLAGS} ${PROD_CFLAGS} src/remove_existing_lines.c
+
+out/debug/remove_existing_lines: out/debug src/mem_internal_check.c \
+ include/trace_macros.h include/hex_conversion.h
+ ${CC} -o $@ ${CFLAGS} ${DEBUG_CFLAGS} src/remove_existing_lines.c
+
+out/sort_example: out src/sort_example.c
+ ${CC} -o $@ ${CFLAGS} ${PROD_CFLAGS} src/sort_example.c
+
+out/debug/sort_example: out src/sort_example.c
+ ${CC} -o $@ ${CFLAGS} ${DEBUG_CFLAGS} src/sort_example.c
+
out/split_for_sort: out src/split_for_sort.c include/trace_macros.h
${CC} -o $@ ${CFLAGS} ${PROD_CFLAGS} src/split_for_sort.c