summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2026-01-16 19:46:47 +0100
committerJulian Weigt <juw@posteo.de>2026-02-04 16:05:20 +0100
commitd3c203e20f27bea8c0eaa50642b53e2b69d45392 (patch)
tree30cc0f424ceca340cd81650d95440d7d27ead63a /makefile
parent095f2207822cc4b12590eac636f2cd7fd6dc840b (diff)
Add misc.c to make recipe and list correct c files for compiler.
Diffstat (limited to 'makefile')
-rw-r--r--makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/makefile b/makefile
index f95b912..128ae25 100644
--- a/makefile
+++ b/makefile
@@ -2,11 +2,11 @@
all: charf_approx charf_exact charf_error
-charf_approx: charf.c double.h double.c
- gcc -o $@ -D MODE=0 $^ -lm -pthread
+charf_approx: charf.c misc.h misc.c double.h double.c
+ gcc -o $@ -D MODE=0 charf.c misc.c double.c -lm -pthread
-charf_error: charf.c double-error.h double-error.c
- gcc -o $@ -D MODE=1 $^ -lm -pthread
+charf_error: charf.c misc.h misc.c double-error.h double-error.c
+ gcc -o $@ -D MODE=1 charf.c misc.c double-error.c -lm -pthread
-charf_exact: charf.c ratio.h ratio.c
- gcc -o $@ -D MODE=2 $^ -lm -pthread
+charf_exact: charf.c misc.h misc.c ratio.h ratio.c
+ gcc -o $@ -D MODE=2 charf.c misc.c ratio.c -lm -pthread